Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Run local evaluations for Hugging Face Hub models with inspect-ai or lighteval.
.claude/skills/lingxling-hugging-face-community-evals/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 55% | 0% |
Use this skill for local model evaluation, backend selection, and GPU smoke tests outside the Hugging Face Jobs workflow.
This skill is for running evaluations against models on the Hugging Face Hub on local hardware.
It covers:
inspect-ai with local inferencelighteval with local inferencevllm, Hugging Face Transformers, and accelerateIt does not cover:
model-index edits.eval_results generation or publishingIf the user wants to run the same eval remotely on Hugging Face Jobs, hand off to the hugging-face-jobs skill and pass it one of the local scripts in this skill.
If the user wants to publish results into the community evals workflow, stop after generating the evaluation run and hand off that publishing step to ~/code/community-evals.
> All paths below are relative to the directory containing this SKILL.md.
| Use case | Script | |---|---| | Local inspect-ai eval on a Hub model via inference providers | scripts/inspect_eval_uv.py | | Local GPU eval with inspect-ai using vllm or Transformers | scripts/inspect_vllm_uv.py | | Local GPU eval with lighteval using vllm or accelerate | scripts/lighteval_vllm_uv.py | | Extra command patterns | examples/USAGE_EXAMPLES.md |
uv run for local execution.HF_TOKEN for gated/private models.bashuv --version printenv HF_TOKEN >/dev/null nvidia-smi
If nvidia-smi is unavailable, either:
scripts/inspect_eval_uv.py for lighter provider-backed evaluation, orhugging-face-jobs skill if the user wants remote compute.inspect-ai when you want explicit task control and inspect-native flows.lighteval when the benchmark is naturally expressed as a lighteval task string, especially leaderboard-style tasks.vllm for throughput on supported architectures.--backend hf) or accelerate as compatibility fallbacks.inspect-ai: add --limit 10 or similar.lighteval: add --max-samples 10.hugging-face-jobs with the same script + args.Best when the model is already supported by Hugging Face Inference Providers and you want the lowest local setup overhead.
bashuv run scripts/inspect_eval_uv.py \ --model meta-llama/Llama-3.2-1B \ --task mmlu \ --limit 20
Use this path when:
inspect-evalsBest when you need to load the Hub model directly, use vllm, or fall back to Transformers for unsupported architectures.
Local GPU:
bashuv run scripts/inspect_vllm_uv.py \ --model meta-llama/Llama-3.2-1B \ --task gsm8k \ --limit 20
Transformers fallback:
bashuv run scripts/inspect_vllm_uv.py \ --model microsoft/phi-2 \ --task mmlu \ --backend hf \ --trust-remote-code \ --limit 20
Best when the task is naturally expressed as a lighteval task string, especially Open LLM Leaderboard style benchmarks.
Local GPU:
bashuv run scripts/lighteval_vllm_uv.py \ --model meta-llama/Llama-3.2-3B-Instruct \ --tasks "leaderboard|mmlu|5,leaderboard|gsm8k|5" \ --max-samples 20 \ --use-chat-template
accelerate fallback:
bashuv run scripts/lighteval_vllm_uv.py \ --model microsoft/phi-2 \ --tasks "leaderboard|mmlu|5" \ --backend accelerate \ --trust-remote-code \ --max-samples 20
This skill intentionally stops at local execution and backend selection.
If the user wants to:
then switch to the hugging-face-jobs skill and pass it one of these scripts plus the chosen arguments.
inspect-ai examples:
mmlugsm8khellaswagarc_challengetruthfulqawinograndehumanevallighteval task strings use suite|task|num_fewshot:
leaderboard|mmlu|5leaderboard|gsm8k|5leaderboard|arc_challenge|25lighteval|hellaswag|0Multiple lighteval tasks can be comma-separated in --tasks.
inspect_vllm_uv.py --backend vllm for fast GPU inference on supported architectures.inspect_vllm_uv.py --backend hf when vllm does not support the model.lighteval_vllm_uv.py --backend vllm for throughput on supported models.lighteval_vllm_uv.py --backend accelerate as the compatibility fallback.inspect_eval_uv.py when Inference Providers already cover the model and you do not need direct GPU control.| Model size | Suggested local hardware | |---|---| | < 3B | consumer GPU / Apple Silicon / small dev GPU | | 3B - 13B | stronger local GPU | | 13B+ | high-memory local GPU or hand off to hugging-face-jobs |
For smoke tests, prefer cheaper local runs plus --limit or --max-samples.
--batch-size--gpu-memory-utilizationhugging-face-jobsvllm:--backend hf for inspect-ai--backend accelerate for lightevalHF_TOKEN--trust-remote-codeSee:
examples/USAGE_EXAMPLES.md for local command patternsscripts/inspect_eval_uv.pyscripts/inspect_vllm_uv.pyscripts/lighteval_vllm_uv.py| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-12 | fail→pass | 12,310 | 4,848 | -61% | 1 | 1 | 0% | 2,214 | 2,810 | +27% | 0 | 0 | — |
case-01 | fail→pass | 13,401 | 7,721 | -42% | 1 | 1 | 0% | 2,404 | 2,638 | +10% | 0 | 0 | — |
case-02 | fail→pass | 11,977 | 5,823 | -51% | 1 | 1 | 0% | 2,365 | 3,002 | +27% | 0 | 0 | — |
case-03 | fail→pass | 28,855 | 5,731 | -80% | 1 | 1 | 0% | 2,543 | 3,053 | +20% | 0 | 0 | — |
case-04 | fail→pass | 23,894 | 4,335 | -82% | 1 | 1 | 0% | 1,784 | 2,759 | +55% | 0 | 0 | — |
case-05 | fail→pass | 6,656 | 3,201 | -52% | 1 | 1 | 0% | 1,235 | 2,389 | +93% | 0 | 0 | — |
case-06 | fail→pass | 26,023 | 2,986 | -89% | 1 | 1 | 0% | 2,455 | 2,493 | +2% | 0 | 0 | — |
case-07 | fail→pass | 8,741 | 3,004 | -66% | 1 | 1 | 0% | 1,543 | 2,501 | +62% | 0 | 0 | — |
case-08 | fail→pass | 13,325 | 2,529 | -81% | 1 | 1 | 0% | 2,450 | 2,328 | -5% | 0 | 0 | — |
case-09 | pass→pass | 3,128 | 2,943 | -6% | 1 | 1 | 0% | 550 | 2,488 | +352% | 0 | 0 | — |
case-10 | fail→pass | 6,094 | 2,109 | -65% | 1 | 1 | 0% | 966 | 2,281 | +136% | 0 | 0 | — |
case-11 | fail→pass | 12,934 | 5,397 | -58% | 1 | 1 | 0% | 2,252 | 3,000 | +33% | 0 | 0 | — |
case-13 | pass→pass | 14,027 | 6,256 | -55% | 1 | 1 | 0% | 2,353 | 2,551 | +8% | 0 | 0 | — |
case-14 | pass→pass | 8,348 | 3,267 | -61% | 1 | 1 | 0% | 1,423 | 2,447 | +72% | 0 | 0 | — |
case-15 | fail→pass | 14,328 | 5,826 | -59% | 1 | 1 | 0% | 2,467 | 3,022 | +22% | 0 | 0 | — |
case-16 | fail→pass | 12,852 | 3,274 | -75% | 1 | 1 | 0% | 2,238 | 2,523 | +13% | 0 | 0 | — |
case-17 | fail→pass | 8,545 | 2,322 | -73% | 1 | 1 | 0% | 1,560 | 2,402 | +54% | 0 | 0 | — |
case-18 | fail→pass | 5,946 | 2,570 | -57% | 1 | 1 | 0% | 1,102 | 2,413 | +119% | 0 | 0 | — |
case-19 | fail→pass | 12,219 | 4,716 | -61% | 1 | 1 | 0% | 2,234 | 2,810 | +26% | 0 | 0 | — |
case-20 | fail→pass | 14,975 | 5,209 | -65% | 1 | 1 | 0% | 2,566 | 2,820 | +10% | 0 | 0 | — |
case-21 | fail→fail | 14,816 | 5,060 | -66% | 1 | 1 | 0% | 2,925 | 2,750 | -6% | 0 | 0 | — |
case-22 | fail→pass | 12,629 | 2,427 | -81% | 1 | 1 | 0% | 2,209 | 2,399 | +9% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 20 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +82 percentage points is the difference between those two pass rates over the 20 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.