feat: add MMBench static evaluation mode (no OpenAI API needed)#1276
Open
feat: add MMBench static evaluation mode (no OpenAI API needed)#1276
Conversation
Add a static evaluation variant for MMBench EN Dev that uses regex/substring MCQ extraction instead of GPT API calls. This enables offline evaluation without API costs. Changes: - New `mmbench_en_dev_static` task config - New `mmbench_aggregate_dev_results_static` aggregation function - Extended `eval_sub_data` and `eval_result` to support `static` eval method - Includes shared `mcq_extract.py` utility for robust answer extraction
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.
Summary
Add a static evaluation variant for MMBench EN Dev that uses regex-based MCQ answer extraction instead of GPT API calls, enabling fully offline evaluation without API costs.
Changes
mmbench_en_dev_statictask configmmbench_aggregate_dev_results_staticfunction inen_utils.pyeval_sub_dataandeval_resultinmmbench_evals.pyto supportstaticeval method_task_utils/mcq_extract.pyutility for robust answer extraction across 10+ answer formatsUsage
Note
mcq_extract.pyis also included in #1272 (physics benchmarks PR). Both PRs can merge independently — the file is identical.Test plan
mmbench_en_dev_staticand compare accuracy with GPT-based evalmmbench_en_devtask still works unchanged