Skip to content

Conversation

rolshoven
Copy link
Contributor

As part of a community task I have been collaborating on, I am planning to add multiple PRs to add functionality to lighteval that was required for our evaluations. This PR fixes a bug in the apply_metric function that prevented mixing batched and non-batched metrics in the same evaluation.

Related issue: #957

The fix separates batched and non-batched metrics into distinct groups, processes them appropriately, and correctly combines their results into a unified output structure where each sample receives results from all metrics regardless of their batching behavior.

@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@NathanHB NathanHB added the bug label Sep 15, 2025
@NathanHB NathanHB merged commit 96a6882 into huggingface:main Sep 15, 2025
4 checks passed
NathanHB added a commit that referenced this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants