AGENT SKILL

evaluation

Configure and run LLM Foundry offline and in-training ICL evaluation, custom tasks, Eval Gauntlet aggregation, API-wrapper evaluation, and result interpretation.

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

01 前言 Front Matter

name
evaluation
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Configure and run LLM Foundry offline and in-training ICL evaluation, custom tasks, Eval Gauntlet aggregation, API-wrapper evaluation, and result interpretation.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

evaluation

Use this sub-skill when the user wants to evaluate an LLM Foundry model with in-context-learning (ICL) tasks, add ICL evaluation hooks to training, build custom JSONL eval datasets, aggregate Eval Gauntlet scores, evaluate API-wrapper models, or interpret evaluation output.

Route

  • In scope: the public llmfoundry eval YAML_PATH [overrides...] CLI; offline eval YAMLs; EvalConfig required and optional fields; ICL task schemas; custom task JSONL validation; Eval Gauntlet categories and composite-score math; OpenAI/FMAPI API-wrapper evaluation; result tables and metric names.
  • Route to ../training-finetuning/: full training-loop YAML design, optimizer/scheduler/checkpointing choices, or training runtime debugging beyond the eval hook keys listed here.
  • Route to ../inference-conversion/: standalone Hugging Face generation/chat scripts, checkpoint export, ONNX/FasterTransformer conversion, and non-eval inference serving.
  • Route to ../package-apis-configuration/: model registry internals, creating new registry entries, MPT/HF model class configuration internals, and package extension mechanics.

Start here

  1. Identify the eval mode: offline installed CLI, in-training ICL hooks, custom task/schema work, Eval Gauntlet aggregation, or API-wrapper eval.

  2. Read references/workflows.md for the matching workflow and minimal YAML shapes.

  3. For custom or modified task configs, read references/task-schemas.md before running anything.

  4. Run the bundled static linter before launching models:

    python scripts/llmfoundry_eval_config_lint.py path/to/eval.yaml
    

    The linter parses YAML and optional local task/Gauntlet files, checks required fields and likely metric/task mismatches, and never loads models or downloads data.

  5. Launch offline evaluation only after the config, local data paths, credentials, and model/cache situation are known:

    llmfoundry eval path/to/eval.yaml key=value another.nested.key=value
    

Operating rules

  • Canonical offline EvalConfig requires models, max_seq_len, and device_eval_batch_size. Use a models: list with per-model model_name, model, optional load_path, and tokenizer blocks.
  • Important optional eval fields include icl_tasks, eval_gauntlet, loggers, callbacks, fsdp_config, precision, seed, eval_subset_num_batches, and icl_subset_num_batches. If someone says “subsets”, map that request to the explicit subset fields; do not invent a generic subsets key unless their installed version documents it.
  • device_eval_batch_size must be an integer for ICL tasks. Lower it first for OOMs; MC/schema tasks expand each logical example into one row per choice/context option.
  • Supported task families for this sub-skill are generation_task_with_answers, language_modeling, multiple_choice, and schema; their JSONL row contracts and metrics are in references/task-schemas.md.
  • metric_names in ICL task YAMLs normally use class-style names such as InContextLearningMultipleChoiceAccuracy, not lower-case registry aliases.
  • Use has_categories: true only when every task row has a category field. Category subtasks are partitioned and then averaged in result tables.
  • Eval Gauntlet only aggregates benchmarks whose (label, num_fewshot) exactly match completed ICL evaluators. A missing benchmark removes that category from composite scores.
  • API-wrapper eval requires credentials or a configured custom endpoint. Never ask users to place secrets in YAML; use environment variables or platform secret mechanisms.
  • Full Eval Gauntlet and large model evals can download models/datasets and consume substantial GPU/API budget. Prefer a tiny custom task or icl_subset_num_batches smoke before full runs.

Bundled references and script

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