huggingface-community-evals

Run local GPU evaluations of Hugging Face Hub models using inspect-ai and lighteval.

507|40|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/waybarrios/opencode-power-pack --skill huggingface-community-evals-waybarrios
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: huggingface-community-evals
Source: https://github.com/waybarrios/opencode-power-pack/tree/main/skills/huggingface-community-evals
Command: npx skills add https://github.com/waybarrios/opencode-power-pack --skill huggingface-community-evals-waybarrios

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires inspect-ai, inspect-evals, lighteval, vllm, torch, transformers, accelerate, openai, and includes scripts (resource) components.

What problem does it solve? Benchmarking Hugging Face Hub models locally requires choosing between evaluation frameworks (inspect-ai vs lighteval) and inference backends (vLLM, Transformers, accelerate), each with different flags, task formats, and failure modes. This Skill provides ready-to-run scripts and decision guidance so you can execute smoke tests and full evals on local hardware without assembling the toolchain yourself. ## Core Features & Use Cases - inspect-ai evaluations: Run tasks like mmlu, gsm8k, and humaneval via inference providers or local GPU with vLLM/Transformers backends. - lighteval evaluations: Execute leaderboard-style task strings (e.g., "leaderboard|mmlu|5") with vLLM or accelerate backends, including chat template support. - Backend fallback strategy: Automatically guides switching from vLLM to Transformers or accelerate when a model architecture is unsupported, plus OOM troubleshooting steps. - Use Case: You want to compare Llama-3.2-3B-Instruct against phi-2 on MMLU and GSM8K before deployment. Run a 20-sample smoke test locally with vLLM, fall back to accelerate for phi-2, then hand off larger runs to Hugging Face Jobs. ## Quick Start Ask the AI to run an MMLU smoke test on meta-llama/Llama-3.2-1B locally with a limit of 20 samples using the inspect-ai vLLM script.

Frequently Asked Questions about huggingface-community-evals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run MMLU evaluation on a Hugging Face model locally?▼

Run the inspect_vllm_uv.py script with uv, passing --model with the Hub model ID, --task mmlu, and --limit for a smoke test. It uses vLLM by default for fast local GPU inference, with a Transformers fallback via --backend hf.

vLLM vs Transformers vs accelerate: which backend for local model evals?▼

Prefer vLLM for throughput on supported architectures. Use the Transformers backend (--backend hf) in inspect-ai or accelerate in lighteval when vLLM does not support the model architecture, accepting slower inference for broader compatibility.

How do I evaluate gated or private Hugging Face models?▼

Set the HF_TOKEN environment variable before running any script. The scripts propagate it to HUGGING_FACE_HUB_TOKEN and HF_HUB_TOKEN so downstream libraries can authenticate against gated repositories.

Why does my vLLM evaluation run out of GPU memory?▼

CUDA or vLLM OOM happens with large models or high memory utilization. Reduce --batch-size, lower --gpu-memory-utilization below 0.8, or smoke test with a smaller model; for 13B+ models, submit the run to Hugging Face Jobs instead.

Can I use this for Hugging Face Jobs or publishing eval results?▼

No, this Skill intentionally stops at local execution and backend selection. For remote GPU runs, submit the same scripts via hf jobs uv run or the hf_jobs() MCP tool, and hand result publication to the community-evals workflow.