AGENT SKILL

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.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
lm-evaluation-harness
license
MIT
metadata
{ "disco-role": "operating" }
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

02 资源文件 4

03 SKILL.md 正文

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 request Use this route
Run an evaluation, build an lm-eval run command, use YAML config, call simple_evaluate(), debug seeds/cache/chat flags sub-skills/evaluation-runs/
Create or repair YAML tasks, groups, tags, filters, metrics, Jinja prompts, !function helpers, external task dirs sub-skills/task-authoring/
Choose/install/configure hf, vllm, API, local server, custom LM, chat-template, or thinking-token backends sub-skills/model-backends/
Read result JSON, sample logs, schemas, W&B/Trackio/HF Hub args, local summaries, result comparisons sub-skills/result-logging/
Review decontamination fields, request caches, clean-training-data safety, maintainer tests, advanced hygiene sub-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.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351