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
gaoqiong
lm-evaluation-harness
Commits
a7d6cb2d
"tests/pipelines/test_pipelines_flax.py" did not exist on "af279434d03e6e3be7808ecd15c652338b31024b"
Commit
a7d6cb2d
authored
May 06, 2023
by
Benjamin Fattori
Browse files
record _rank/_world_size for single GPU
parent
eddd627a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lm_eval/models/gpt2.py
lm_eval/models/gpt2.py
+2
-0
No files found.
lm_eval/models/gpt2.py
View file @
a7d6cb2d
...
...
@@ -44,6 +44,8 @@ class HFLM(LM):
if
torch
.
cuda
.
is_available
()
else
torch
.
device
(
"cpu"
)
)
self
.
_rank
=
0
self
.
_world_size
=
1
else
:
self
.
_device
=
'cpu'
...
...
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