L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

lm-evaluation-harness

lm-evaluation-harness

Use EleutherAI LM Evaluation Harness for language-model evaluation runs, YAML task authoring, model backend setup, result logging, decontamination hygiene, and maintainer workflows.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: lm-evaluation-harness description: "Use EleutherAI LM Evaluation Harness for language-model evaluation runs, YAML task authoring, model backend setup, result logging, decontamination hygiene, and maintainer workflows." disable-model-invocation: true metadata: disco-role: operating license: MIT

LM Evaluation Harness

Use this skill when a user asks for help with EleutherAI's lm-evaluation-harness / lm_eval: running evaluations, writing tasks, choosing model backends, interpreting results, or maintaining evaluation hygiene.

First Checks

  • Install the base package with Python >=3.10; model backends are optional extras and are not included in the base package.
  • Verify the CLI with lm-eval --help; the current command surface is run, ls, and validate, with legacy no-subcommand usage mapped to run.
  • Use references/repo-provenance.md before refreshing this skill against a checkout; changed commits, dirty paths, metadata, or entry points mean the skill may be stale.
  • Use references/troubleshooting.md for cross-cutting install/import, optional dependency, credential, network, and unsafe-code issues.
  • Run scripts/check_lm_eval_install.py for a local, safe package/CLI/registry check before deeper debugging.

Route By User Intent

User requestUse this route
Run an evaluation, build an lm-eval run command, use YAML config, call simple_evaluate(), debug seeds/cache/chat flagssub-skills/evaluation-runs/
Create or repair YAML tasks, groups, tags, filters, metrics, Jinja prompts, !function helpers, external task dirssub-skills/task-authoring/
Choose/install/configure hf, vllm, API, local server, custom LM, chat-template, or thinking-token backendssub-skills/model-backends/
Read result JSON, sample logs, schemas, W&B/Trackio/HF Hub args, local summaries, result comparisonssub-skills/result-logging/
Review decontamination fields, request caches, clean-training-data safety, maintainer tests, advanced hygienesub-skills/decontamination-maintenance/

Minimal Patterns

lm-eval ls tasks
lm-eval validate --tasks hellaswag,arc_easy
lm-eval run --model hf --model_args pretrained=gpt2,dtype=float32 --tasks hellaswag --limit 10
import lm_eval

results = lm_eval.simple_evaluate(
    model="hf",
    model_args="pretrained=gpt2,dtype=float32",
    tasks=["hellaswag"],
    limit=10,
)

Important Boundaries

  • Do not assume a base install can import every model backend; install the narrow extra for the chosen backend, such as lm_eval[hf], lm_eval[vllm], lm_eval[api], or lm_eval[litellm].
  • Do not run model downloads, dataset downloads, API calls, service uploads, GPU-heavy evaluations, or multi-day decontamination scripts unless the user explicitly approves the cost and credentials/hardware are available.
  • Do not copy or depend on original checkout docs, scripts, notebooks, or tests at runtime; this skill bundles distilled references and safe helper scripts.
  • Treat native tests/examples named in references as maintainer guidance for a live checkout, not as required runtime dependencies of this exported skill.

Repo-Level Files

  • references/repo-provenance.md records the source snapshot and refresh criteria.
  • references/troubleshooting.md covers cross-cutting failures before routing into sub-skills.
  • scripts/check_lm_eval_install.py checks import metadata, CLI help, and lazy model registry behavior without importing heavy backend classes.
Skills enregistrées