Skip to content

Porting BenCzechMark lm-eval-harness configuration from HPLT-e - #131

Open
varisd wants to merge 4 commits into
OpenEuroLLM:mainfrom
varisd:benczechmark
Open

varisd wants to merge 4 commits into
OpenEuroLLM:mainfrom
varisd:benczechmark

Conversation

@varisd

@varisd varisd commented Oct 7, 2026

Copy link
Copy Markdown

This PR moves the BenCzechMark task configs from the HPLT-e project.

The directory structure and filenames has been adjusted to reflect the naming in custom_lm_eval_tasks/.

Furthermore, it adds the benczechmark-* task groups and oellm-benczechmark super_group.

varisd and others added 4 commits October 6, 2026 13:38
…ields

The branch carried an older copy of task-groups.yaml, which reverted
OpenEuroLLM#114, OpenEuroLLM#122, OpenEuroLLM#123, OpenEuroLLM#124 and the FLORES/Global-MMLU/INCLUDE changes on
main and failed 8 tests. Keep main's file and add only the four
benczechmark-* groups and the oellm-benczechmark super group.

Every task now declares its HF dataset (and the umimeto subject
subset), so `oellm-eval schedule` pre-downloads them for air-gapped
compute nodes and tests/test_datasets.py covers them.
transformers 5 removed transformers.data.metrics, so importing utils.py
failed and every BenCzechMark task failed to load with the [eval] extra
or the UFAL requirements (transformers 5.5.4). Vendor the SQuAD
exact-match/F1 helpers verbatim instead, so cs_sqad32 scores are
unchanged. Also fix the ruff errors that failed the CI lint job and a
SyntaxWarning from an un-escaped backslash in a docstring.
The ported tasks reference only _n_shot.yaml, qa/_qa_template.yaml and
metrics/_qa_metrics.yaml. The other templates (multichoice/*, the
classification metrics, summarization, CNEC NER) came along from
HPLT-e for tasks that were not ported; _cnec_ner_template.yaml even
points at a utils.process_docs_cs_nec that does not exist. Dropping
them also removes the MC-AUROC/ROUGE helpers and with them the
runtime dependency on evaluate.load(), which needs network access.
@haideraltahan haideraltahan self-assigned this Oct 17, 2026
@haideraltahan

haideraltahan commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks for porting this. I tried running it and hit a few things that block it on current main, so I pushed three commits on top:

  1. task-groups.yaml rebased onto main. The branch carried an older copy of the file
  2. utils.py loads with transformers 5. transformers.data.metrics was removed in v5, which the [eval] extra, the containers and the UFAL requirements all install, so every task failed at import.
  3. Removed the HPLT-e templates and helpers nothing references (the multichoice templates, classification metrics, summarization, CNEC NER, which points at a missing process_docs_cs_nec).

With these, all 80 tasks load with Qwen3-0.6B-Base.

@varisd the groups are 0-shot while the ported _n_shot.yaml still says 3, is that intended?

@haideraltahan

Copy link
Copy Markdown
Collaborator

here is a results with Qwen3-0.6B-Base, there might be a bug with CERMAT czech open

Family Metric Mean Min Max Chance
CERMAT math MC acc 0.248 0.190 0.286 0.20-0.25
CERMAT math open exact match 0.019 0.009 0.028
CERMAT czech MC acc 0.265 0.242 0.293 0.25
CERMAT czech TF acc 0.422 0.397 0.457 0.50
CERMAT czech open exact match 0.000 0.000 0.000
SQAD 3.2 F1 0.369 0.320 0.409
Sentiment CSFD macro F1 0.251 0.171 0.396 0.33
Sentiment Facebook macro F1 0.289 0.168 0.457 0.33
Sentiment Mall macro F1 0.266 0.171 0.384 0.33
UmimeTo biology acc 0.656 0.630 0.690 0.50
UmimeTo chemistry acc 0.640 0.630 0.650 0.50
UmimeTo czech acc 0.518 0.450 0.560 0.50
UmimeTo history acc 0.624 0.600 0.650 0.50
UmimeTo informatics acc 0.680 0.630 0.740 0.50
UmimeTo math acc 0.564 0.530 0.580 0.50
UmimeTo physics acc 0.716 0.660 0.780 0.50

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.

2 participants