huggingface/lighteval

[BUG] Optimize tokenization

Offen

#732 geöffnet am 15.05.2025

 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)Python (514 Forks)auto 404
buggood first issuehelp wantedscience-team

Repository-Metriken

Stars
 (2.496 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Describe the bug

For now tokenization is bing made in a for loop, making the whole process very expensive for large benchmarks.

To Reproduce

run any big benchmarks

Expected behavior

Use batch tokenize to speed it up.

Version info

Please provide your operating system, lighteval version or commit if you installed from main, and pip/conda environment if your problem concerns dependencies.

Contributor Guide