AGENT SKILL

evaluation-chat

Guide GSM8K evaluation, answer verification, and checkpoint chat or raw inference for train-llm-from-scratch.

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

01 前言 Front Matter

name
evaluation-chat
license
MIT
metadata
{ "disco-role": "operating" }
description
Guide GSM8K evaluation, answer verification, and checkpoint chat or raw inference for train-llm-from-scratch.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

evaluation-chat

Use this sub-skill when a future agent needs to evaluate or talk to checkpoints from the train-llm-from-scratch pipeline without re-opening source files.

Use this for

  • Building GSM8K evaluation commands for one checkpoint or a Base → SFT → DPO → PPO → GRPO stage table.
  • Explaining greedy GSM8K accuracy, sample dumps, JSONL append files, and table rendering.
  • Loading any stage checkpoint for inference and deciding chat-template mode versus raw continuation.
  • Choosing chat sampling controls: greedy, temperature, top-p, top-k, max-new-token budget, and CPU/CUDA device.
  • Explaining answer extraction, GSM8K correctness checks, and the verifier reward's small format bonus.

Route elsewhere

  • Training or resuming base checkpoints: ../model-pretraining/SKILL.md.
  • SFT, reward model, DPO/ORPO/KTO, PPO, or GRPO training: ../post-training-rlhf/SKILL.md.
  • Dataset preparation or validation before evaluation: ../data-preparation/SKILL.md.
  • Streamlit control-panel settings and jobs: ../configuration-ui/SKILL.md.

First decisions to make

  1. Is the task evaluation, chat, or answer-format diagnosis?
  2. Which checkpoint stage is being used: base/pretrained, SFT, DPO, PPO, GRPO, or reward checkpoint?
  3. Is GSM8K data already locally available or is network/cache access allowed?
  4. Should the output be deterministic (--greedy, required for headline eval) or sampled chat?
  5. Which device is valid for the checkpoint and installed torch build: cuda or cpu?

Reference map

  • Read references/evaluation.md for evaluator flags, GSM8K scoring, stage tables, sample rows, and verifier behavior.
  • Read references/inference.md for checkpoint loading, chat versus raw prompting, decoding, and chat CLI flags.
  • Read references/troubleshooting.md when commands fail or outputs look malformed.

Bundled helpers

  • scripts/build_eval_command.py prints dry-run evaluation/table commands. It never loads a model or touches datasets.
  • scripts/build_chat_command.py prints dry-run one-shot or REPL chat commands. It never loads a checkpoint.
  • scripts/check_answer_format.py parses text with the same <answer>, ####, and last-number priority used by the verifier family; it can optionally compare a gold number and estimate verifier reward.

Prefer the helpers when the user asks for commands. They make command construction explicit while avoiding accidental training, downloads, or checkpoint loads during planning.

Operating guardrails

  • Do not launch training from this sub-skill.
  • Do not assume network access for GSM8K; confirm cache/data availability before running real evaluation.
  • Use --raw for a base checkpoint; use default chat mode for instruction/post-training checkpoints.
  • Use greedy decoding for comparable GSM8K numbers. Sampling is for interactive or qualitative chat, not the stage table.
  • Do not treat the small verifier format bonus as proof of correctness; accuracy depends on the parsed numeric answer matching gold.

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