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
e3677848
Unverified
Commit
e3677848
authored
Jun 02, 2023
by
Lintang Sutawika
Committed by
GitHub
Jun 02, 2023
Browse files
Update gpt2.py
parent
b698048d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
lm_eval/models/gpt2.py
lm_eval/models/gpt2.py
+0
-1
No files found.
lm_eval/models/gpt2.py
View file @
e3677848
...
...
@@ -83,7 +83,6 @@ class HFLM(LM):
print
(
warning
)
self
.
_rank
=
accelerator
.
local_process_index
self
.
_world_size
=
accelerator
.
num_processes
else
:
self
.
gpt2
=
accelerator
.
prepare
(
self
.
gpt2
)
self
.
_device
=
torch
.
device
(
f
"cuda:
{
accelerator
.
local_process_index
}
"
)
...
...
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