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
a5b65c9b
Commit
a5b65c9b
authored
Nov 24, 2023
by
lintangsutawika
Browse files
udate
parent
b64e592d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+4
-1
No files found.
lm_eval/evaluator.py
View file @
a5b65c9b
...
@@ -90,6 +90,9 @@ def simple_evaluate(
...
@@ -90,6 +90,9 @@ def simple_evaluate(
if
gen_kwargs
is
not
None
:
if
gen_kwargs
is
not
None
:
gen_kwargs
=
simple_parse_args_string
(
gen_kwargs
)
gen_kwargs
=
simple_parse_args_string
(
gen_kwargs
)
eval_logger
.
warning
(
f
"generation_kwargs specified through cli, these settings will be used over set parameters in yaml tasks."
)
if
gen_kwargs
==
""
:
if
gen_kwargs
==
""
:
gen_kwargs
=
None
gen_kwargs
=
None
...
@@ -127,7 +130,7 @@ def simple_evaluate(
...
@@ -127,7 +130,7 @@ def simple_evaluate(
continue
continue
config
=
task_obj
.
_config
config
=
task_obj
.
_config
if
config
[
"output_type"
]
==
"g
reedy
_until"
and
gen_kwargs
is
not
None
:
if
config
[
"output_type"
]
==
"g
enerate
_until"
and
gen_kwargs
is
not
None
:
config
[
"generation_kwargs"
].
update
(
gen_kwargs
)
config
[
"generation_kwargs"
].
update
(
gen_kwargs
)
if
num_fewshot
is
not
None
:
if
num_fewshot
is
not
None
:
...
...
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