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
44a93c98
Unverified
Commit
44a93c98
authored
Sep 30, 2020
by
Lysandre Debut
Committed by
GitHub
Sep 30, 2020
Browse files
Number of GPUs for multi-gpu (#7472)
parent
886ef35c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+2
-1
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+2
-1
No files found.
.github/workflows/self-push.yml
View file @
44a93c98
...
...
@@ -102,7 +102,8 @@ jobs:
-
name
:
Are GPUs recognized by our DL frameworks
run
:
|
source .env/bin/activate
python -c "import torch; print(torch.cuda.is_available())"
python -c "import torch; print('Cuda available:', torch.cuda.is_available())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
-
name
:
Run all non-slow tests on GPU
env
:
...
...
.github/workflows/self-scheduled.yml
View file @
44a93c98
...
...
@@ -112,7 +112,8 @@ jobs:
-
name
:
Are GPUs recognized by our DL frameworks
run
:
|
source .env/bin/activate
python -c "import torch; print(torch.cuda.is_available())"
python -c "import torch; print('Cuda available:', torch.cuda.is_available())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
-
name
:
Run all tests on GPU
env
:
...
...
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