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
86b71954
Commit
86b71954
authored
Jun 20, 2023
by
haileyschoelkopf
Committed by
lintangsutawika
Jun 22, 2023
Browse files
add start of docstring to HFLM
parent
0e4f5361
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lm_eval/models/hf_merged.py
lm_eval/models/hf_merged.py
+7
-0
No files found.
lm_eval/models/hf_merged.py
View file @
86b71954
...
@@ -19,6 +19,13 @@ from accelerate import Accelerator
...
@@ -19,6 +19,13 @@ from accelerate import Accelerator
@
register_model
(
"hf-auto"
)
@
register_model
(
"hf-auto"
)
class
HFLM
(
LM
):
class
HFLM
(
LM
):
"""
An abstracted Huggingface model class. Enables usage with both models of
`transformers.AutoModelForCausalLM` and `transformers.AutoModelForSeq2SeqLM` classes.
Supports data-parallel multi-GPU with HF Accelerate.
"""
AUTO_MODEL_CLASS
=
None
AUTO_MODEL_CLASS
=
None
def
__init__
(
def
__init__
(
self
,
self
,
...
...
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