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

Could not initialize the JudgeOpenAI model and openi import error #166

Open
lewtun opened this issue Apr 22, 2024 · 1 comment
Open

Could not initialize the JudgeOpenAI model and openi import error #166

lewtun opened this issue Apr 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lewtun
Copy link
Member

lewtun commented Apr 22, 2024

FYI I'm seeing a lot of these "errors" in my logs when running lighteval

Could not initialize the JudgeOpenAI model:
[Errno 2] No such file or directory: 'src/lighteval/tasks/extended/mt_bench/judge_prompts.jsonl'

This doesn't cause an exception, but maybe good to clean up from the logs?

I also learned that you need the openai dep even if you don't run mt_bench due to an import error from this line:

from openai import OpenAI

I would recommend either promoting the openai dep to a core dep or having a checker like is_openai_available() then only importing the method if it is

@NathanHB
Copy link
Member

thanks for the catch ! Did not pay attention to those on my local install, I will solve this asap :)

@NathanHB NathanHB self-assigned this Apr 22, 2024
@NathanHB NathanHB added the bug Something isn't working label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants