huggingface/lighteval

[BUG] Optimize tokenization

Open

#732 opened on May 15, 2025

 (1 comment) (0 reactions) (1 assignee)Python (514 forks)auto 404
buggood first issuehelp wantedscience-team

Repository metrics

Stars
 (2,496 stars)
PR merge metrics
 (PR metrics pending)

Description

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