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
1dd1eae0
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "ab653aff2a793f04442579940f113dc2debe55ac"
Commit
1dd1eae0
authored
Jul 04, 2025
by
Baber
Browse files
fix metric name/fn mixup
parent
b7b0f92e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/config/task.py
lm_eval/config/task.py
+2
-1
No files found.
lm_eval/config/task.py
View file @
1dd1eae0
...
@@ -281,7 +281,8 @@ class TaskConfig(dict):
...
@@ -281,7 +281,8 @@ class TaskConfig(dict):
_metric_fn
=
metric_name
.
__call__
_metric_fn
=
metric_name
.
__call__
else
:
else
:
# Normal: look up by name
# Normal: look up by name
_metric_name
=
get_metric
(
metric_name
,
_hf_evaluate_metric
)
_metric_name
=
metric_name
_metric_fn
=
get_metric
(
metric_name
,
_hf_evaluate_metric
)
# ---------- 3. Decide how to aggregate examples ----------
# ---------- 3. Decide how to aggregate examples ----------
if
"aggregation"
in
metric_config
:
if
"aggregation"
in
metric_config
:
...
...
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