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
7cd004c4
Unverified
Commit
7cd004c4
authored
Feb 27, 2024
by
Zehan Li
Committed by
GitHub
Feb 27, 2024
Browse files
add multilingual mmlu eval (#1484)
parent
5ccd65d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
lm_eval/tasks/okapi/mmlu_multilingual/_generate_configs.py
lm_eval/tasks/okapi/mmlu_multilingual/_generate_configs.py
+1
-11
lm_eval/tasks/okapi/mmlu_multilingual/m_mmlu_hy.yaml
lm_eval/tasks/okapi/mmlu_multilingual/m_mmlu_hy.yaml
+4
-0
lm_eval/tasks/okapi/mmlu_multilingual/m_mmlu_sk.yaml
lm_eval/tasks/okapi/mmlu_multilingual/m_mmlu_sk.yaml
+4
-0
No files found.
lm_eval/tasks/okapi/mmlu_multilingual/_generate_configs.py
View file @
7cd004c4
...
...
@@ -6,17 +6,7 @@ from tqdm import tqdm
def
main
()
->
None
:
dataset_path
=
"alexandrainst/m_mmlu"
# Removed hy and sk subdataset because the original dataset is broken
# I created this PR https://huggingface.co/datasets/alexandrainst/m_mmlu/discussions/3
# on the dataset for the authors, in case it will be accepeted the filter can be removed
keys_without_hy_sk
=
list
(
# noqa: F841
filter
(
lambda
k
:
(
"hy"
not
in
k
and
"sk"
not
in
k
),
datasets
.
get_dataset_infos
(
dataset_path
).
keys
(),
)
)
for
task
in
tqdm
():
for
task
in
tqdm
(
datasets
.
get_dataset_infos
(
dataset_path
).
keys
()):
file_name
=
f
"m_mmlu_
{
task
}
.yaml"
try
:
with
open
(
f
"
{
file_name
}
"
,
"w"
)
as
f
:
...
...
lm_eval/tasks/okapi/mmlu_multilingual/m_mmlu_hy.yaml
0 → 100644
View file @
7cd004c4
# Generated by _generate_configs.py
dataset_name
:
hy
include
:
_default_yaml
task
:
m_mmlu_hy
lm_eval/tasks/okapi/mmlu_multilingual/m_mmlu_sk.yaml
0 → 100644
View file @
7cd004c4
# Generated by _generate_configs.py
dataset_name
:
sk
include
:
_default_yaml
task
:
m_mmlu_sk
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