Closed lewtun closed 3 months ago
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: https://github.com/huggingface/lighteval/blob/fc428f600c40b214b4d784540d1a0db5ed193d30/src/lighteval/metrics/llm_as_judge.py#L30
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
is_openai_available()
thanks for the catch ! Did not pay attention to those on my local install, I will solve this asap :)
Fixed by #223.
FYI I'm seeing a lot of these "errors" in my logs when running lighteval
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: https://github.com/huggingface/lighteval/blob/fc428f600c40b214b4d784540d1a0db5ed193d30/src/lighteval/metrics/llm_as_judge.py#L30I would recommend either promoting the
openai
dep to a core dep or having a checker likeis_openai_available()
then only importing the method if it is