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
dd16a113
Unverified
Commit
dd16a113
authored
May 05, 2022
by
Sylvain Gugger
Committed by
GitHub
May 05, 2022
Browse files
Remove torchhub test (#17097)
parent
c849a61e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
.github/workflows/github-torch-hub.yml
.github/workflows/github-torch-hub.yml
+0
-52
No files found.
.github/workflows/github-torch-hub.yml
deleted
100644 → 0
View file @
c849a61e
name
:
Torch hub integration
on
:
push
:
branches
:
-
"
*"
jobs
:
torch_hub_integration
:
runs-on
:
ubuntu-latest
env
:
# TODO quickfix but may need more investigation
ACTIONS_ALLOW_UNSECURE_COMMANDS
:
True
steps
:
# no checkout necessary here.
-
name
:
Extract branch name
run
:
echo "::set-env name=BRANCH::${GITHUB_REF#refs/heads/}"
-
name
:
Check branch name
run
:
echo $BRANCH
-
name
:
Set up Python
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Load cached virtual environment
uses
:
actions/cache@v2
id
:
cache
with
:
path
:
~/venv/
key
:
v1-torch_hub-${{ hashFiles('setup.py') }}
-
name
:
Create virtual environment on cache miss
if
:
steps.cache.outputs.cache-hit != 'true'
run
:
|
python -m venv ~/venv && . ~/venv/bin/activate
pip install --upgrade pip
-
name
:
Install dependencies
run
:
|
. ~/venv/bin/activate
# install torch-hub specific dependencies
pip install -e git+https://github.com/huggingface/transformers.git#egg=transformers[torchhub]
# no longer needed
pip uninstall -y transformers
#- name: Torch hub list
# run: |
# python -c "import torch; print(torch.hub.list('huggingface/transformers:$BRANCH'))"
#- name: Torch hub help
# run: |
# python -c "import torch; print(torch.hub.help('huggingface/transformers:$BRANCH', 'modelForSequenceClassification'))"
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