Skip to content

Conversation

JoelNiklaus
Copy link
Contributor

The metric computation fails when a result is None. Therefore retry and otherwise return an error ModelResponse.

Copy link
Member

@clefourrier clefourrier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Side note: We should add an error flag in the ModelResponse if we want to use it to also report these kind of problems - otherwise, if we implement caching, we won't re-run these even though they are incorrect.
Can you also add a failed attribute to the ModelResponse, False by default, and True here?

You'll be able to use it in #480

Copy link
Member

@clefourrier clefourrier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@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.

@clefourrier clefourrier merged commit fdb12f4 into huggingface:main Jan 7, 2025
3 checks passed
JoelNiklaus added a commit to JoelNiklaus/lighteval that referenced this pull request Jan 7, 2025
hynky1999 pushed a commit that referenced this pull request May 22, 2025
* Made litellm judge backend more robust.

* Added failed flag to ModelResponse.

---------

Co-authored-by: Clémentine Fourrier <[email protected]>
NathanHB pushed a commit that referenced this pull request Sep 19, 2025
* Made litellm judge backend more robust.

* Added failed flag to ModelResponse.

---------

Co-authored-by: Clémentine Fourrier <[email protected]>
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.

3 participants