You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"You are trying to run an evaluation requiring multilingual capabilities. Please install the required extra: `pip install lighteval[multilingual]`"
68
-
elifpackage_name==Extras.EXTENDED.value:
106
+
elifpackage==Extra.EXTENDED.value:
69
107
return"You are trying to run an evaluation requiring additional extensions. Please install the required extra: `pip install lighteval[extended] "
70
-
elifpackage_name=="text_generation":
108
+
elifpackage=="text_generation":
71
109
return"You are trying to start a text generation inference endpoint, but TGI is not present in your local environment. Please install it using pip."
72
-
elifpackage_namein ["bitsandbytes", "auto-gptq"]:
73
-
returnf"You are trying to load a model quantized with `{package_name}`, which is not available in your local environment. Please install it using pip."
74
-
elifpackage_name=="peft":
110
+
elifpackage=="peft":
75
111
return"You are trying to use adapter weights models, for which you need `peft`, which is not available in your environment. Please install it using pip."
76
-
elifpackage_name=="openai":
112
+
elifpackage=="openai":
77
113
return"You are trying to use an Open AI LLM as a judge, for which you need `openai`, which is not available in your environment. Please install it using pip."
78
114
79
-
returnf"You requested the use of `{package_name}` for this evaluation, but it is not available in your current environment. Please install it using pip."
115
+
ifisinstance(package, Extra):
116
+
returnf"You are trying to run an evaluation requiring {package.value} capabilities. Please install the required extra: `pip install lighteval[{package.value}]`"
117
+
else:
118
+
returnf"You requested the use of `{package}` for this evaluation, but it is not available in your current environment. Please install it using pip."
match="Through the use of get_multilingual_normalizer, you are trying to run an evaluation requiring multilingual capabilities. Please install the required extra: `pip install lighteval[multilingual]`",
78
+
match="Through the use of get_multilingual_normalizer, you are trying to run an evaluation requiring multilingual capabilities.",
match="You requested the use of `vllm` for this evaluation, but it is not available in your current environment. Please install it using pip.'",
89
+
match="Through the use of VLLMModel, you requested the use of `vllm<0.10.2,>=0.10.0` for this evaluation, but it is not available in your current environment. Please install it using pip.",
0 commit comments