mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 22:27:10 +00:00
678 B
678 B
LM-Evaluation Harness with TGI
Evaluate LLMs 20x faster with TGI via litellm proxy's /completions endpoint.
This tutorial assumes you're using the big-refactor branch of lm-evaluation-harness
Step 1: Start the local proxy
$ litellm --model huggingface/bigcode/starcoder
OpenAI Compatible Endpoint at http://0.0.0.0:8000
Step 2: Set OpenAI API Base
$ export OPENAI_API_BASE="http://0.0.0.0:8000"
Step 3: Run LM-Eval-Harness
python3 -m lm_eval \
--model openai-completions \
--model_args engine=davinci \
--task crows_pairs_english_age