Files
Ruilin Gao d6de816439 fix(basqueglue): load the f1 metric with evaluate (#4076)
datasets.load_metric was removed in datasets 3.0 and the unit-test job
resolves datasets==5.0.1, so the module-level

    from datasets import load_metric

makes lm_eval/tasks/basqueglue/utils.py unimportable. Five of the six
BasqueGLUE tasks resolve a !function from that module, so they now fail to
load at all, not just at scoring time:

    bec.yaml    bec2016eu        utils.micro_f1_score
    bhtc.yaml   bhtc_v2          utils.micro_f1_score
    coref.yaml  epec_koref_bin   utils.coref_doc_to_text
    vaxx.yaml   vaxx_stance      utils.vaxx_f1_score
    wic.yaml    wiceu            utils.process_wic_docs

Load the metric with evaluate instead, the same move #2351 made for
squadv2, with the import inside the function as that fix and
kobest/utils.py do. The metric and the compute() arguments are unchanged.
2026-09-14 15:51:05 +05:00
..
2025-12-02 19:39:16 +05:00
2026-02-14 02:32:45 +05:00