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
- 参考文档references/eval-gauntlet.md7.3 KB
- 参考文档references/task-schemas.md11.7 KB
- 参考文档references/troubleshooting.md7.4 KB
- 参考文档references/workflows.md8.4 KB
- 脚本scripts/llmfoundry_eval_config_lint.py23.6 KB
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;EvalConfigrequired 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
-
Identify the eval mode: offline installed CLI, in-training ICL hooks, custom task/schema work, Eval Gauntlet aggregation, or API-wrapper eval.
-
Read references/workflows.md for the matching workflow and minimal YAML shapes.
-
For custom or modified task configs, read references/task-schemas.md before running anything.
-
Run the bundled static linter before launching models:
python scripts/llmfoundry_eval_config_lint.py path/to/eval.yamlThe linter parses YAML and optional local task/Gauntlet files, checks required fields and likely metric/task mismatches, and never loads models or downloads data.
-
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
EvalConfigrequiresmodels,max_seq_len, anddevice_eval_batch_size. Use amodels:list with per-modelmodel_name,model, optionalload_path, andtokenizerblocks. - Important optional eval fields include
icl_tasks,eval_gauntlet,loggers,callbacks,fsdp_config,precision,seed,eval_subset_num_batches, andicl_subset_num_batches. If someone says “subsets”, map that request to the explicit subset fields; do not invent a genericsubsetskey unless their installed version documents it. device_eval_batch_sizemust 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, andschema; their JSONL row contracts and metrics are in references/task-schemas.md. metric_namesin ICL task YAMLs normally use class-style names such asInContextLearningMultipleChoiceAccuracy, not lower-case registry aliases.- Use
has_categories: trueonly when every task row has acategoryfield. 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_batchessmoke before full runs.
Bundled references and script
- references/task-schemas.md —
EvalConfig, ICL task rows, delimiters, categories, metrics, installed signatures. - references/workflows.md — offline CLI, overrides, in-training hooks, API-wrapper eval, custom task assembly, result interpretation.
- references/eval-gauntlet.md — categories, random baselines, weighting/rescale/subtract math, averages, custom Gauntlet configs.
- references/troubleshooting.md — malformed rows, metric mismatches, path/cache/credential/max length/OOM/subset failures.
- scripts/llmfoundry_eval_config_lint.py — safe static linter for eval YAML and local task/Gauntlet files.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).