Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
9d0a11a6
Commit
9d0a11a6
authored
Sep 05, 2019
by
thomwolf
Browse files
update dependencies and circle-ci
parent
24a20483
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
8 deletions
+35
-8
.circleci/config.yml
.circleci/config.yml
+34
-4
requirements.txt
requirements.txt
+0
-2
setup.py
setup.py
+1
-2
No files found.
.circleci/config.yml
View file @
9d0a11a6
version
:
2
version
:
2
jobs
:
jobs
:
build_py3
:
build_py3
_torch
:
working_directory
:
~/pytorch-transformers
working_directory
:
~/pytorch-transformers
docker
:
docker
:
-
image
:
circleci/python:3.5
-
image
:
circleci/python:3.5
...
@@ -8,14 +8,29 @@ jobs:
...
@@ -8,14 +8,29 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install torch
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install pytest codecov pytest-cov
-
run
:
sudo pip install pytest codecov pytest-cov
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
python -m pytest -sv ./pytorch_transformers/tests/ --cov
-
run
:
python -m pytest -sv ./examples/
-
run
:
codecov
build_py3_tf
:
working_directory
:
~/pytorch-transformers
docker
:
-
image
:
circleci/python:3.5
resource_class
:
xlarge
parallelism
:
1
steps
:
-
checkout
-
run
:
sudo pip install tensorflow==2.0.0-rc0
-
run
:
sudo pip install tensorflow==2.0.0-rc0
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install pytest codecov pytest-cov
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
python -m pytest -sv ./pytorch_transformers/tests/ --cov
-
run
:
python -m pytest -sv ./pytorch_transformers/tests/ --cov
-
run
:
python -m pytest -sv ./examples/
-
run
:
python -m pytest -sv ./examples/
-
run
:
codecov
-
run
:
codecov
build_py2
:
build_py2
_torch
:
working_directory
:
~/pytorch-transformers
working_directory
:
~/pytorch-transformers
resource_class
:
large
resource_class
:
large
parallelism
:
1
parallelism
:
1
...
@@ -23,9 +38,22 @@ jobs:
...
@@ -23,9 +38,22 @@ jobs:
-
image
:
circleci/python:2.7
-
image
:
circleci/python:2.7
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install torch
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install pytest codecov pytest-cov
-
run
:
sudo pip install pytest codecov pytest-cov
-
run
:
python -m pytest -sv ./pytorch_transformers/tests/ --cov
-
run
:
codecov
build_py2_tf
:
working_directory
:
~/pytorch-transformers
resource_class
:
large
parallelism
:
1
docker
:
-
image
:
circleci/python:2.7
steps
:
-
checkout
-
run
:
sudo pip install tensorflow==2.0.0-rc0
-
run
:
sudo pip install tensorflow==2.0.0-rc0
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install pytest codecov pytest-cov
-
run
:
python -m pytest -sv ./pytorch_transformers/tests/ --cov
-
run
:
python -m pytest -sv ./pytorch_transformers/tests/ --cov
-
run
:
codecov
-
run
:
codecov
deploy_doc
:
deploy_doc
:
...
@@ -49,6 +77,8 @@ workflows:
...
@@ -49,6 +77,8 @@ workflows:
version
:
2
version
:
2
build_and_test
:
build_and_test
:
jobs
:
jobs
:
-
build_py3
-
build_py3_torch
-
build_py2
-
build_py3_tf
-
build_py2_torch
-
build_py2_tf
-
deploy_doc
:
*workflow_filters
-
deploy_doc
:
*workflow_filters
\ No newline at end of file
requirements.txt
View file @
9d0a11a6
# PyTorch
torch
>=1.0.0
# progress bars in model download and training scripts
# progress bars in model download and training scripts
tqdm
tqdm
# Accessing files from S3 directly.
# Accessing files from S3 directly.
...
...
setup.py
View file @
9d0a11a6
...
@@ -49,8 +49,7 @@ setup(
...
@@ -49,8 +49,7 @@ setup(
url
=
"https://github.com/huggingface/pytorch-transformers"
,
url
=
"https://github.com/huggingface/pytorch-transformers"
,
packages
=
find_packages
(
exclude
=
[
"*.tests"
,
"*.tests.*"
,
packages
=
find_packages
(
exclude
=
[
"*.tests"
,
"*.tests.*"
,
"tests.*"
,
"tests"
]),
"tests.*"
,
"tests"
]),
install_requires
=
[
'torch>=1.0.0'
,
install_requires
=
[
'numpy'
,
'numpy'
,
'boto3'
,
'boto3'
,
'requests'
,
'requests'
,
'tqdm'
,
'tqdm'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment