huggingface-community-evals

huggingface-community-evals is a skill for Codex from PracticalSwan/agent-skills. It costs 71 tokens per session (2,318 once invoked), scanned C, a copy of huggingface-community-evals, MIT.

A guide to evaluating machine-learning models from the Hugging Face Hub on local computers. It uses Inspect AI and lighteval and explains when to use local GPUs, vLLM, Transformers, or Accelerate.

In plain words
What is it for?
Use it to run local evaluations, select evaluation tasks, test Hugging Face models, choose an inference backend, and compare models on local hardware.
Why use it?
It provides a defined way to compare models and choose an inference setup before relying on results. It also helps diagnose backend problems with smoke tests and fallback choices.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to run local evaluations, select evaluation tasks, test Hugging Face models, choose an inference backend, and compare models on local hardware.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/huggingface-community-evals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PracticalSwan/agent-skills --skill huggingface-community-evals
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huggingface-community-evals

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/huggingface-community-evals/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/huggingface-community-evals)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/huggingface-community-evals"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/huggingface-community-evals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for huggingface-community-evals

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/huggingface-community-evals"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/huggingface-community-evals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,318 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02318
Opus 5 $0.00036 $0.01159
Sonnet 5 $0.00014 $0.00464
Haiku 4.5 $0.00007 $0.00232

Measured 4d ago against content hash 4716a4ca6c43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

huggingface-community-evals scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/inspect_eval_uv.py, scripts/inspect_vllm_uv.py, scripts/lighteval_vllm_uv.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

printenv HF_TOKEN >/dev/null
Origin

This is a copy

86% identical to huggingface-community-evals — 55 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

huggingface-community-evals/SKILL.md · 259 lines

How it starts

The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

This skill is for running evaluations against models on the Hugging Face Hub on local hardware.

It covers:

  • inspect-ai with local inference
  • lighteval with local inference
  • choosing between vllm, Hugging Face Transformers, and accelerate
  • smoke tests, task selection, and backend fallback strategy

It does not cover:

  • Hugging Face Jobs orchestration
  • model-card or model-index edits
  • README table extraction
  • Artificial Analysis imports
  • .eval_results generation or publishing
  • PR creation or community-evals automation

If 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.

When To Use Which Script

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

Prerequisites

  • Prefer uv run for local execution.
  • Set HF_TOKEN for gated/private models.
  • For local GPU runs, verify GPU access before starting:
uv --version
printenv HF_TOKEN >/dev/null
nvidia-smi

If nvidia-smi is unavailable, either:

  • use scripts/inspect_eval_uv.py for lighter provider-backed evaluation, or
  • hand off to the hugging-face-jobs skill if the user wants remote compute.

Core Workflow

  1. Choose the evaluation framework.
    • Use inspect-ai when you want explicit task control and inspect-native flows.
    • Use lighteval when the benchmark is naturally expressed as a lighteval task string, especially leaderboard-style tasks.
  2. Choose the inference backend.
    • Prefer vllm for throughput on supported architectures.
    • Use Hugging Face Transformers (--backend hf) or accelerate as compatibility fallbacks.
  3. Start with a smoke test.
    • inspect-ai: add --limit 10 or similar.
    • lighteval: add --max-samples 10.
  4. Scale up only after the smoke test passes.
  5. If the user wants remote execution, hand off to hugging-face-jobs with the same script + args.

Read the full file on GitHub · 259 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed 4716a4ca6c43
  2. 6d ago Changed 63aa36614d78
  3. 9d ago First seen · 259 lines · 71 tokens per session scan C 184fa0e260bb

Subscribe to this mod's changes

huggingface-community-evals is a skill published in the GitHub repository PracticalSwan/agent-skills (14 stars, last pushed 4d ago), licensed MIT. It adds 71 tokens to every session and 2,318 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). It is 86% identical to huggingface-community-evals, differing in 55 lines, and is treated as a copy.