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
700e0cd6
Unverified
Commit
700e0cd6
authored
Nov 17, 2022
by
Yih-Dar
Committed by
GitHub
Nov 17, 2022
Browse files
Add missing report button for Example test (#20293)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
6b217c52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+9
-5
No files found.
.github/workflows/self-scheduled.yml
View file @
700e0cd6
...
@@ -204,7 +204,11 @@ jobs:
...
@@ -204,7 +204,11 @@ jobs:
run_examples_gpu
:
run_examples_gpu
:
name
:
Examples directory
name
:
Examples directory
runs-on
:
[
self-hosted
,
single-gpu-docker
]
strategy
:
fail-fast
:
false
matrix
:
machine_type
:
[
single-gpu
]
runs-on
:
${{ format('{0}-{1}', matrix.machine_type, 'docker') }}
container
:
container
:
image
:
huggingface/transformers-all-latest-gpu
image
:
huggingface/transformers-all-latest-gpu
options
:
--gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
options
:
--gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
...
@@ -231,19 +235,19 @@ jobs:
...
@@ -231,19 +235,19 @@ jobs:
working-directory
:
/transformers
working-directory
:
/transformers
run
:
|
run
:
|
pip install -r examples/pytorch/_tests_requirements.txt
pip install -r examples/pytorch/_tests_requirements.txt
python3 -m pytest -v --make-reports=
single-gpu
_examples_gpu examples/pytorch
python3 -m pytest -v --make-reports=
${{ matrix.machine_type }}
_examples_gpu examples/pytorch
-
name
:
Failure short reports
-
name
:
Failure short reports
if
:
${{ failure() }}
if
:
${{ failure() }}
continue-on-error
:
true
continue-on-error
:
true
run
:
cat /transformers/reports/
single-gpu
_examples_gpu/failures_short.txt
run
:
cat /transformers/reports/
${{ matrix.machine_type }}
_examples_gpu/failures_short.txt
-
name
:
Test suite reports artifacts
-
name
:
Test suite reports artifacts
if
:
${{ always() }}
if
:
${{ always() }}
uses
:
actions/upload-artifact@v2
uses
:
actions/upload-artifact@v2
with
:
with
:
name
:
single-gpu
_run_examples_gpu
name
:
${{ matrix.machine_type }}
_run_examples_gpu
path
:
/transformers/reports/
single-gpu
_examples_gpu
path
:
/transformers/reports/
${{ matrix.machine_type }}
_examples_gpu
run_pipelines_torch_gpu
:
run_pipelines_torch_gpu
:
name
:
PyTorch pipelines
name
:
PyTorch pipelines
...
...
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