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
d5195462
Commit
d5195462
authored
Jul 01, 2024
by
haileyschoelkopf
Browse files
add warning re: _get_backend behavior
parent
dffce65e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+2
-0
No files found.
lm_eval/models/huggingface.py
View file @
d5195462
...
@@ -444,6 +444,8 @@ class HFLM(TemplateLM):
...
@@ -444,6 +444,8 @@ class HFLM(TemplateLM):
# escape hatch: if we're using a subclass that shouldn't follow
# escape hatch: if we're using a subclass that shouldn't follow
# the default _get_backend logic,
# the default _get_backend logic,
# then skip over the method.
# then skip over the method.
# TODO: this seems very much undesirable in some cases--our code in HFLM
# references AutoModelForCausalLM at times to check for equality
if
self
.
AUTO_MODEL_CLASS
is
not
None
:
if
self
.
AUTO_MODEL_CLASS
is
not
None
:
return
return
...
...
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