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
9bca36a9
Commit
9bca36a9
authored
Sep 05, 2023
by
lintangsutawika
Browse files
pre-commit
parent
a7286607
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+3
-3
No files found.
lm_eval/models/huggingface.py
View file @
9bca36a9
...
@@ -297,7 +297,7 @@ class HFLM(LM):
...
@@ -297,7 +297,7 @@ class HFLM(LM):
else
:
else
:
assert
accelerator
.
distributed_type
in
[
assert
accelerator
.
distributed_type
in
[
DistributedType
.
FSDP
,
DistributedType
.
FSDP
,
DistributedType
.
MULTI_GPU
DistributedType
.
MULTI_GPU
,
],
"Unsupported distributed type provided. Only DDP and FSDP are supported."
],
"Unsupported distributed type provided. Only DDP and FSDP are supported."
if
accelerator
.
distributed_type
==
DistributedType
.
FSDP
:
if
accelerator
.
distributed_type
==
DistributedType
.
FSDP
:
self
.
_model
=
accelerator
.
prepare
(
self
.
model
)
self
.
_model
=
accelerator
.
prepare
(
self
.
model
)
...
...
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