Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic MMLU Task #7

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions llm_eval_test/benchmarks/catalog/cards/mmlu/all.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "cais/mmlu",
"name": "all"
},
"preprocess_steps": [
{
"__type__": "rename_splits",
"mapper": {
"dev": "train"
}
},
{
"__type__": "set",
"fields": {
"topic": "multiple"
}
}
],
"task": "tasks.qa.multiple_choice.with_topic",
"templates": "templates.qa.multiple_choice.with_topic.all",
"__tags__": {
"annotations_creators": "no-annotation",
"arxiv": [
"2009.03300",
"2005.00700",
"2005.14165",
"2008.02275"
],
"language": "en",
"language_creators": "expert-generated",
"license": "mit",
"multilinguality": "monolingual",
"region": "us",
"size_categories": "10K<n<100K",
"source_datasets": "original",
"task_categories": "question-answering",
"task_ids": "multiple-choice-qa"
},
"__description__": "Measuring Massive Multitask Language Understanding by Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt (ICLR 2021). \nThis is a massive multitask test consisting of multiple-choice questions from various branches of knowledge. The test spans subjects in the humanities, social sciences, hard sciences, and other areas that are important for some people to learn. This covers 57… See the full description on the dataset page: https://huggingface.co/datasets/cais/mmlu."
}
12 changes: 12 additions & 0 deletions llm_eval_test/benchmarks/tasks/_common/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Common files for Unitxt tasks

Symlink these files into each task that requires Unitxt.
Ensure that the symlinks are relative to the task directory.

```sh
mkdir new_task
cd new_task

ln -s ../_common/task.py ./
ln -s ../_common/unitxt ./
```
3 changes: 3 additions & 0 deletions llm_eval_test/benchmarks/tasks/mmlu/mmlu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
task: mmlu_all
include: unitxt
recipe: card=cards.mmlu.all,template=templates.qa.multiple_choice.with_topic.lm_eval_harness
1 change: 1 addition & 0 deletions llm_eval_test/benchmarks/tasks/mmlu/task.py
1 change: 1 addition & 0 deletions llm_eval_test/benchmarks/tasks/mmlu/unitxt
1 change: 1 addition & 0 deletions llm_eval_test/benchmarks/tasks/mmlu_pro/task.py
1 change: 1 addition & 0 deletions llm_eval_test/benchmarks/tasks/mmlu_pro/unitxt
Loading