Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
35e94c68
Commit
35e94c68
authored
Sep 30, 2020
by
Lysandre
Browse files
Number of GPUs
parent
056723ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+2
-1
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+3
-1
No files found.
.github/workflows/self-push.yml
View file @
35e94c68
...
...
@@ -51,7 +51,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 @
35e94c68
...
...
@@ -48,7 +48,9 @@ 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