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
a2bc6240
Commit
a2bc6240
authored
Feb 20, 2025
by
Baber
Browse files
fix metadata
parent
09509b10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lm_eval/__main__.py
lm_eval/__main__.py
+3
-2
lm_eval/evaluator.py
lm_eval/evaluator.py
+2
-0
No files found.
lm_eval/__main__.py
View file @
a2bc6240
...
@@ -320,8 +320,9 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
...
@@ -320,8 +320,9 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
metadata
=
(
metadata
=
(
simple_parse_args_string
(
args
.
model_args
)
simple_parse_args_string
(
args
.
model_args
)
if
isinstance
(
args
.
model_args
,
str
)
if
isinstance
(
args
.
model_args
,
str
)
else
{}
|
parse_keyed_list_string
(
args
.
metadata
)
else
{}
)
)
|
parse_keyed_list_string
(
args
.
metadata
)
task_manager
=
TaskManager
(
task_manager
=
TaskManager
(
args
.
verbosity
,
include_path
=
args
.
include_path
,
metadata
=
metadata
args
.
verbosity
,
include_path
=
args
.
include_path
,
metadata
=
metadata
)
)
...
...
lm_eval/evaluator.py
View file @
a2bc6240
...
@@ -134,6 +134,8 @@ def simple_evaluate(
...
@@ -134,6 +134,8 @@ def simple_evaluate(
Random seed for torch. If set to None, the seed will not be set.
Random seed for torch. If set to None, the seed will not be set.
:param fewshot_random_seed: int
:param fewshot_random_seed: int
Random seed for fewshot sampler random generator. If set to None, the seed of generator will be set to None.
Random seed for fewshot sampler random generator. If set to None, the seed of generator will be set to None.
:param metadata: dict
Additional metadata to be added to the task manager. Will get passed to the download function of the task.
return
return
Dictionary of results
Dictionary of results
...
...
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