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
e6b1581f
Commit
e6b1581f
authored
Jun 07, 2024
by
lintangsutawika
Browse files
formatting
parent
5032ebaf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+6
-2
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml
+23
-7
No files found.
lm_eval/api/task.py
View file @
e6b1581f
lm_eval/tasks/__init__.py
View file @
e6b1581f
...
@@ -196,9 +196,13 @@ class TaskManager:
...
@@ -196,9 +196,13 @@ class TaskManager:
if
self
.
_name_is_tag
(
name_or_config
):
if
self
.
_name_is_tag
(
name_or_config
):
fn
=
partial
(
fn
=
partial
(
self
.
_load_individual_task_or_group
,
self
.
_load_individual_task_or_group
,
update_config
=
name_or_config
if
isinstance
(
name_or_config
,
dict
)
else
None
,
update_config
=
name_or_config
if
isinstance
(
name_or_config
,
dict
)
else
None
,
)
return
dict
(
collections
.
ChainMap
(
*
map
(
fn
,
reversed
(
subtask_list
)))
)
)
return
dict
(
collections
.
ChainMap
(
*
map
(
fn
,
reversed
(
subtask_list
))))
else
:
else
:
group_name
=
ConfigurableGroup
(
group_name
=
ConfigurableGroup
(
config
=
{
"group"
:
name_or_config
,
"task"
:
subtask_list
}
config
=
{
"group"
:
name_or_config
,
"task"
:
subtask_list
}
...
...
lm_eval/tasks/mmlu/flan_n_shot/loglikelihood/_mmlu.yaml
View file @
e6b1581f
group
:
mmlu_flan_n_shot_loglikelihood
group
:
mmlu_flan_n_shot_loglikelihood
group_alias
:
mmlu (flan style)
task
:
task
:
-
group
:
stem
task
:
-
mmlu_flan_n_shot_loglikelihood_stem
-
mmlu_flan_n_shot_loglikelihood_stem
aggregate_metric
:
True
weight_by_size
:
True
-
group
:
other
task
:
-
mmlu_flan_n_shot_loglikelihood_other
-
mmlu_flan_n_shot_loglikelihood_other
aggregate_metric
:
True
weight_by_size
:
True
-
group
:
social sciences
task
:
-
mmlu_flan_n_shot_loglikelihood_social_sciences
-
mmlu_flan_n_shot_loglikelihood_social_sciences
aggregate_metric
:
True
weight_by_size
:
True
-
group
:
social sciences
task
:
-
mmlu_flan_n_shot_loglikelihood_humanities
-
mmlu_flan_n_shot_loglikelihood_humanities
group_config
:
aggregate_metric
:
True
aggregate_metric
:
True
weight_by_size
:
True
weight_by_size
:
True
aggregate_metric
:
True
weight_by_size
:
True
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