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
4221d30f
"vscode:/vscode.git/clone" did not exist on "a9c1e3a31dd7025e3e4dab9003f091424706d770"
Commit
4221d30f
authored
Jun 27, 2023
by
haileyschoelkopf
Browse files
switch to using get_model()
parent
d362dfee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-1
No files found.
lm_eval/evaluator.py
View file @
4221d30f
...
...
@@ -77,7 +77,7 @@ def simple_evaluate(
model_args
,
{
"batch_size"
:
batch_size
,
"max_batch_size"
:
max_batch_size
,
"device"
:
device
}
)
elif
isinstance
(
model
,
transformers
.
PreTrainedModel
):
lm
=
HFLM
(
lm
=
lm_eval
.
models
.
get_model
(
"hf-causal"
)
(
pretrained
=
model
,
batch_size
=
batch_size
,
)
...
...
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