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

Multilingual Hellaswag tasks #332

Merged
merged 60 commits into from
Oct 1, 2024
Merged

Multilingual Hellaswag tasks #332

merged 60 commits into from
Oct 1, 2024

Conversation

hynky1999
Copy link
Collaborator

Goal

Add Hellaswag tasks supporting about 36 unique languages.

Since it uses template it support all 3 types of formulation out of the box :)

How to test:

lighteval accelerate --output_dir=./tmp --custom_tasks="lighteval.tasks.multilingual.tasks" --tasks="custom|{task}|0|0" --model_args=pretrained=gpt2 --override_batch_size=1 --max_samples=100 --save_details

where task in hellaswag_tel_cf|0|0 hellaswag_tur_cf|0|0 hellaswag_tha_cf|0|0

Comments

  • We talked about removing the suite all together. Since right now we use suite I decided to use custom suite. I can switch to multilingual or whatever

hynky1999 and others added 15 commits September 30, 2024 18:21
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
@hynky1999 hynky1999 changed the base branch from multilang_copa_task to main September 30, 2024 18:16
@hynky1999 hynky1999 changed the title Multilingual Hellaswg tasks Multilingual Hellaswag tasks Oct 1, 2024
@@ -349,4 +349,5 @@ def __getattribute__(self, name: str) -> str:
Language.SORANI: TranslationLiterals(language=Language.SORANI),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, would be nice to sort this one alphabetically to avoid duplicates

@hynky1999 hynky1999 merged commit 994fe73 into main Oct 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants