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
ModelZoo
UMT5_pytorch
Commits
b44ea8db
Commit
b44ea8db
authored
Aug 26, 2024
by
wanglch
Browse files
Update umt5_summary.py
parent
109633be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
umt5_summary.py
umt5_summary.py
+1
-1
No files found.
umt5_summary.py
View file @
b44ea8db
...
...
@@ -4,7 +4,7 @@ from transformers import AutoModelForSeq2SeqLM
from
torch
import
nn
import
os
os
.
environ
[
"HIP_VISIBLE_DEVICES"
]
=
"
4,5
"
os
.
environ
[
"HIP_VISIBLE_DEVICES"
]
=
"
0
"
device
=
'cuda'
if
torch
.
cuda
.
is_available
()
else
'cpu'
print
(
f
'Using
{
device
}
device'
)
...
...
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