[Feature] Support eval for C-Eval test split #2218
Open
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.
Motivation
As the author of C-Eval benchmark, I have recently released the test split answers that were previously hidden. The current OpenCompass implementation only supports evaluation on the validation split because test set ground truth was not available. This PR aims to enable C-Eval test split evaluation to provide more comprehensive assessment capabilities for large language models.
The link for the C-Eval is https://huggingface.co/datasets/ceval/ceval-exam
Modification
This PR makes the following modifications to enable C-Eval test split evaluation:
- opencompass/configs/datasets/ceval/ceval_gen_5f30c7.py
- opencompass/configs/datasets/ceval/ceval_ppl_578f8d.py
- opencompass/configs/datasets/ceval/ceval_zero_shot_gen_bd40ef.py
BC-breaking
This modification does not introduce breaking changes. The existing validation split evaluation functionality remains identical. The PR only adds new test split evaluation capabilities, so downstream projects can continue using C-Eval validation split without any code changes.
Checklist
Before PR:
After PR: