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
b2dfcc56
Unverified
Commit
b2dfcc56
authored
Jan 13, 2021
by
Stas Bekman
Committed by
GitHub
Jan 13, 2021
Browse files
use correct deps for torchhub (#9552)
parent
eabad8fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
.github/workflows/github-torch-hub.yml
.github/workflows/github-torch-hub.yml
+5
-3
setup.py
setup.py
+2
-0
No files found.
.github/workflows/github-torch-hub.yml
View file @
b2dfcc56
name
:
Torch hub integration
name
:
Torch hub integration
on
:
on
:
push
:
push
:
branches
:
branches
:
-
"
*"
-
"
*"
...
@@ -32,8 +32,10 @@ jobs:
...
@@ -32,8 +32,10 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
pip install --upgrade pip
pip install --upgrade pip
pip install torch
# install torch-hub specific dependencies
pip install numpy filelock protobuf requests tqdm regex sentencepiece sacremoses tokenizers==0.9.4 packaging importlib_metadata
pip install -e git+https://github.com/huggingface/transformers.git#egg=transformers[torchhub]
# no longer needed
pip uninstall -y transformers
-
name
:
Torch hub list
-
name
:
Torch hub list
run
:
|
run
:
|
...
...
setup.py
View file @
b2dfcc56
...
@@ -229,6 +229,8 @@ extras["dev"] = (
...
@@ -229,6 +229,8 @@ extras["dev"] = (
+
extras
[
"modelcreation"
]
+
extras
[
"modelcreation"
]
)
)
extras
[
"torchhub"
]
=
deps_list
(
"filelock"
,
"importlib_metadata"
,
"numpy"
,
"packaging"
,
"protobuf"
,
"regex"
,
"requests"
,
"sacremoses"
,
"sentencepiece"
,
"torch"
,
"tokenizers"
,
"tqdm"
)
# when modifying the following list, make sure to update src/transformers/dependency_versions_check.py
# when modifying the following list, make sure to update src/transformers/dependency_versions_check.py
install_requires
=
[
install_requires
=
[
...
...
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