Add Lifescience Sub-set Support for MMLU & SciEval (datasets + configs + loader)#2059
Merged
MaiziXiao merged 4 commits intoopen-compass:mainfrom May 9, 2025
Merged
Conversation
…ets + configs + loader)
Contributor
|
针对 MMLU的不同配置,直接在 MMLU的文件夹中创建一个新的配置,不要重新创建 Dataset |
Contributor
MaiziXiao
reviewed
May 7, 2025
Contributor
There was a problem hiding this comment.
不要随意更新 pre-commit-config 中的内容
MaiziXiao
added a commit
that referenced
this pull request
May 9, 2025
MaiziXiao
reviewed
May 9, 2025
Comment on lines
+1
to
+3
| SciEval_lifescience_subsets = [ | ||
| 'biology', # 大学生物学 | ||
| ] |
MaiziXiao
reviewed
May 9, 2025
Comment on lines
+36
to
+45
| examples: List[dict] = [] | ||
| for ex in raw_iter: | ||
| if (ex.get('category') != 'biology' | ||
| or ex.get('type') != 'multiple-choice'): | ||
| continue | ||
|
|
||
| ans_list = ex.get('answer') or ex.get('answers') or [] | ||
| if not ans_list: | ||
| continue | ||
| target = ans_list[0] |
Contributor
There was a problem hiding this comment.
该数据集 load 方式是否针对 SciEval 的所有子维度均生效?不要将子维度写死在读取逻辑中
stephen-nju
pushed a commit
to stephen-nju/opencompass
that referenced
this pull request
May 14, 2025
) * style: pass all formatting hooks (yapf & quote fixer) * revise name:Add Lifescience Sub-set Support for MMLU & SciEval (datasets + configs + loader) * revise name:Add Lifescience SciEval (datasets + configs + loader+dataset-index.yml) * Add Lifescience SciEval (datasets + configs + loader+dataset-index.yml) --------- Co-authored-by: root <[email protected]>
stephen-nju
pushed a commit
to stephen-nju/opencompass
that referenced
this pull request
May 14, 2025
…) (open-compass#2087) This reverts commit c5048bf.
zyc140345
pushed a commit
to zyc140345/opencompass
that referenced
this pull request
Oct 23, 2025
) * style: pass all formatting hooks (yapf & quote fixer) * revise name:Add Lifescience Sub-set Support for MMLU & SciEval (datasets + configs + loader) * revise name:Add Lifescience SciEval (datasets + configs + loader+dataset-index.yml) * Add Lifescience SciEval (datasets + configs + loader+dataset-index.yml) --------- Co-authored-by: root <[email protected]>
zyc140345
pushed a commit
to zyc140345/opencompass
that referenced
this pull request
Oct 23, 2025
…) (open-compass#2087) This reverts commit c5048bf.
iamkaia
pushed a commit
to iamkaia/opencompass
that referenced
this pull request
Feb 4, 2026
) * style: pass all formatting hooks (yapf & quote fixer) * revise name:Add Lifescience Sub-set Support for MMLU & SciEval (datasets + configs + loader) * revise name:Add Lifescience SciEval (datasets + configs + loader+dataset-index.yml) * Add Lifescience SciEval (datasets + configs + loader+dataset-index.yml) --------- Co-authored-by: root <[email protected]>
iamkaia
pushed a commit
to iamkaia/opencompass
that referenced
this pull request
Feb 4, 2026
…) (open-compass#2087) This reverts commit 16c034a.
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.
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
OpenCompass currently lacks out-of-the-box support for evaluating models on the lifescience / biology sub-sets of the MMLU and SciEval benchmarks. These slices are critical for biomedical and healthcare LLM research. This PR introduces native loaders and config files so users can run evaluations with a single command.
Modification
Dataset loader
• opencompass/datasets/SciEval_lifescience.py — parses the biology + multiple-choice sub-set of SciEval and returns a DatasetDict.
Configs – SciEval
• opencompass/configs/datasets/SciEval_lifscience/SciEval_lifescience_gen.py
• opencompass/configs/datasets/SciEval_lifscience/SciEval_lifescience_llmjudge_gen.py
Configs – MMLU
• opencompass/configs/datasets/mmlu_lifescience/* — evaluation configs for the MMLU lifescience sub-set.
Registry
• opencompass/datasets/init.py — explicitly imports SciEvalDataset; removes wildcard import.
Code quality
All new/modified files formatted with isort, yapf, docformatter; flake8 passes with zero errors.
BC-breaking (Optional)
Does the modification introduce changes that break the backward compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here and update the documentation.
Checklist
Before PR:
After PR: