Repository navigation
Conversation
CY-HYUN
added a commit
to CY-HYUN/kmmlu-lighteval
that referenced
this pull request
Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds KMMLU (HAERAE-HUB/KMMLU), a Korean multiple-choice benchmark built from original Korean exams: 35,030 questions in 45 subjects (arXiv 2402.11548). This follows the proposal in #1424.
What it adds
One file,
src/lighteval/tasks/tasks/kmmlu.py: 45 tasks namedkmmlu:<subject>(for examplekmmlu:accounting), one per HF config, test split,loglikelihood_acc.The prompt copies the default
kmmlutask of lm-evaluation-harness (v0.4.13), so scores from the two tools can be compared: the question, the four options asA.toD., then정답:(full-width colon), choices" A"to" D", goldanswer - 1. The dataset revision is pinned (d61b3f1). In #1424 I asked whether you'd rather have the multilingual template style (get_mcq_prompt_function, likecmmlu). Happy to switch if you prefer it.How I checked it
I ran this task as a
--custom-tasksfile with lighteval 0.13.0, ran lm-eval 0.4.13 on the same model, and compared each question. Setup:Qwen/Qwen2.5-0.5B-Instruct(revision7ae5576), float32, CPU, batch size 1, 0-shot, chat template off.All 700 questions got the same prompt, tokens and predicted choice. Code and a
reproduce.pythat prints this table: https://github.com/CY-HYUN/kmmlu-lightevalOn
main(7fa19dc) I checked that the config fields andMetrics.loglikelihood_accthe file uses are unchanged, and ranruff checkandruff formatwith the repo's config (ruff 0.11.10). I haven't run it from a source install ofmain.Limits
kmmlu_direct,kmmlu_hardand chain-of-thought variants.I used an AI coding assistant (Claude Code) to write and check this.