Lighteval documentation
Inference Providers as backend
Getting started
Guides
Save and read resultsUse the Python APIAdd a custom taskAdd a custom metricUse HF's inference providers as backendUse litellm as backendUse vllm as backendUse SGLang as backendEvaluate on ServerContributing to multilingual evaluations
API
Reference
You are viewing v0.8.0 version. A newer version v0.13.0 is available.
Inference Providers as backend
Lighteval allows to use Hugging Face’s Inference Providers to evaluate llms on supported providers such as Black Forest Labs, Cerebras, Fireworks AI, Nebius, Together AI and many more.
Quick use
Do not forget to set your HuggingFace API key.
You can set it using the HF_TOKEN environment variable or by using the huggingface-cli command.
lighteval endpoint inference-providers \
"model=deepseek-ai/DeepSeek-R1,provider=hf-inference" \
"lighteval|gsm8k|0|0"Using a config file
You can use config files to define the model and the provider to use.
lighteval endpoint inference-providers \
examples/model_configs/inference_providers.yaml \
"lighteval|gsm8k|0|0"with the following config file:
model:
model_name: "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B"
provider: "novita"
timeout: null
proxies: null
parallel_calls_count: 10
generation:
temperature: 0.8
top_k: 10
max_new_tokens: 10000