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
06eb4e1b
"profiler/vscode:/vscode.git/clone" did not exist on "42facfc6b7433595e052c6c0b53138dae84530d7"
Commit
06eb4e1b
authored
Jun 07, 2023
by
lintangsutawika
Browse files
changed origin of get_model
parent
c75ce009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+2
-1
No files found.
lm_eval/evaluator.py
View file @
06eb4e1b
...
...
@@ -10,6 +10,7 @@ import lm_eval.api
import
lm_eval.tasks
import
lm_eval.models
import
lm_eval.api.metrics
import
lm_eval.api.registry
from
lm_eval.utils
import
(
positional_deprecated
,
...
...
@@ -71,7 +72,7 @@ def simple_evaluate(
if
isinstance
(
model
,
str
):
if
model_args
is
None
:
model_args
=
""
lm
=
lm_eval
.
api
.
model
.
get_model
(
model
).
create_from_arg_string
(
lm
=
lm_eval
.
api
.
registry
.
get_model
(
model
).
create_from_arg_string
(
model_args
,
{
"batch_size"
:
batch_size
,
"device"
:
device
}
)
else
:
...
...
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