Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix llm as judge warnings #173

Merged
merged 10 commits into from
Jul 4, 2024
Merged

Conversation

NathanHB
Copy link
Member

No description provided.

@NathanHB
Copy link
Member Author

Now loads openai lazily. the dep is no linger required when using lighteval

@clefourrier
Copy link
Member

You could add a warning/error when loading metrics at the task level, to check there the deps if needed.

@NathanHB
Copy link
Member Author

NathanHB commented May 31, 2024

You could add a warning/error when loading metrics at the task level, to check there the deps if needed.

you mean like I did in task.py to check that the token is set ?

@clefourrier
Copy link
Member

And for both of these, I mean using the same checks as for all the other optional deps :) (using new functions defined in utils)

@clefourrier
Copy link
Member

clefourrier commented Jul 3, 2024

@NathanHB I added the import testing I was thinking about - I'll let you review and if it works for you you can merge

@clefourrier clefourrier merged commit 3a80833 into main Jul 4, 2024
2 checks passed
hynky1999 pushed a commit to hynky1999/lighteval that referenced this pull request Jul 12, 2024
* commit

* fixes

* fix style

* fixes

* make style

* Fix import error detection for open ai package (llm as a judge metric)

---------

Co-authored-by: Nathan Habib <nathan.habib@huggingface.com>
Co-authored-by: Clémentine Fourrier <22726840+clefourrier@users.noreply.github.com>
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.

None yet

2 participants