evaluation-workflows
Prepare and troubleshoot Baichuan-7B C-Eval and MMLU evaluation workflows, including safe preflight validation, command rendering, benchmark layout requirements, output files, and CUDA/model prerequisites.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- evaluation-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Prepare and troubleshoot Baichuan-7B C-Eval and MMLU evaluation workflows, including safe preflight validation, command rendering, benchmark layout requirements, output files, and CUDA/model prerequisites.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md8.8 KB
- 参考文档references/workflows.md13.1 KB
- 脚本scripts/check_evaluation_inputs.py22.2 KB
03 SKILL.md 正文
Evaluation Workflows
Use this sub-skill when the user asks to evaluate a Baichuan-7B checkpoint on C-Eval or MMLU, validate benchmark inputs before running, construct the native evaluation commands, or interpret the files produced by those benchmark scripts.
Route here for
- C-Eval command construction around
evaluation/evaluate_zh.py:--model_name_or_path,--shot,--split, and--output_dir. - MMLU command construction around
evaluation/evaluate_mmlu.py:-m/--model,-k/--ntrain,-d/--data_dir, and-s/--save_dir. - Safe static preflight of model paths, C-Eval dataset access assumptions, MMLU Hendrycks/test checkout layout,
categories.py, CSV subject pairing, and CUDA/import prerequisites. - Explaining C-Eval JSON outputs and MMLU per-subject CSV/result-directory artifacts.
- Benchmark-specific failures such as missing
datasets, absent MMLUcategories.py, wrong split names, no CUDA, missing weights/tokenizer files, or MMLU prompts that trigger the 2048-token truncation loop.
Do not route here for
- Baichuan architecture internals, local class signatures, tiny forward checks, or generation/cache behavior: use sibling architecture-and-loading.
- DeepSpeed pretraining, corpus shard validation, hostfiles, or cluster launch setup: use sibling pretraining-and-deepspeed.
- Broad package installation or backend issues that are not benchmark-specific: start from the parent root skill and shared troubleshooting.
Operating map
- For benchmark behavior, command shapes, input layouts, and output artifacts, read workflows.
- Before running a real benchmark, use the safe bundled preflight helper. It validates inputs and renders commands; it does not load model weights, fetch datasets, or run benchmark inference.
- For failures, read local troubleshooting, then escalate cross-cutting model-loading issues to architecture-and-loading or shared API/troubleshooting.
- Keep full benchmark execution as a user/runtime operation. The bundled checks validate imports, CUDA availability, and static layouts only; they do not run C-Eval or MMLU end to end.
Safe preflight examples
Validate the C-Eval command shape and prerequisites for a local checkpoint:
python sub-skills/evaluation-workflows/scripts/check_evaluation_inputs.py ceval \
--repo-root /path/to/Baichuan-7B \
--model /path/to/Baichuan-7B-weights \
--shot 5 \
--split val \
--output-dir ceval_output \
--check-imports \
--check-cuda
Validate a Hendrycks/test MMLU checkout and render the copy/run commands:
python sub-skills/evaluation-workflows/scripts/check_evaluation_inputs.py mmlu \
--repo-root /path/to/Baichuan-7B \
--benchmark-root /path/to/hendrycks-test \
--model /path/to/Baichuan-7B-weights \
--data-dir data \
--save-dir results \
--ntrain 5 \
--check-imports \
--check-cuda
The helper is intentionally safe by default: it checks files, imports only when requested, performs a tiny CUDA availability/allocation probe only when requested, and renders the native commands instead of executing them.
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).