Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.04 KB

use-inference-providers-as-backend.mdx

File metadata and controls

41 lines (31 loc) · 1.04 KB

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

Warning

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_name=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_parameters:
  model_name: "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B"
  provider: "novita"
  timeout: null
  proxies: null
  parallel_calls_count: 10
  generation_parameters:
    temperature: 0.8
    top_k: 10
    max_new_tokens: 10000