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 MMLU categories.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.
1---2name: evaluation-workflows3description: "Prepare and troubleshoot Baichuan-7B C-Eval and MMLU evaluation4 workflows, including safe preflight validation, command rendering, benchmark5 layout requirements, output files, and CUDA/model prerequisites."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/evaluation-workflows9 disco-role: operating10license: Apache 2.011---1213# Evaluation Workflows1415Use 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.1617## Route here for1819- C-Eval command construction around `evaluation/evaluate_zh.py`: `--model_name_or_path`, `--shot`, `--split`, and `--output_dir`.20- MMLU command construction around `evaluation/evaluate_mmlu.py`: `-m/--model`, `-k/--ntrain`, `-d/--data_dir`, and `-s/--save_dir`.21- 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.22- Explaining C-Eval JSON outputs and MMLU per-subject CSV/result-directory artifacts.23- Benchmark-specific failures such as missing `datasets`, absent MMLU `categories.py`, wrong split names, no CUDA, missing weights/tokenizer files, or MMLU prompts that trigger the 2048-token truncation loop.2425## Do not route here for2627- Baichuan architecture internals, local class signatures, tiny forward checks, or generation/cache behavior: use sibling [architecture-and-loading](../architecture-and-loading/SKILL.md).28- DeepSpeed pretraining, corpus shard validation, hostfiles, or cluster launch setup: use sibling [pretraining-and-deepspeed](../pretraining-and-deepspeed/SKILL.md).29- Broad package installation or backend issues that are not benchmark-specific: start from the parent root skill and shared [troubleshooting](../../references/troubleshooting.md).3031## Operating map32331. For benchmark behavior, command shapes, input layouts, and output artifacts, read [workflows](references/workflows.md).342. 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.353. For failures, read [local troubleshooting](references/troubleshooting.md), then escalate cross-cutting model-loading issues to [architecture-and-loading](../architecture-and-loading/SKILL.md) or shared [API/troubleshooting](../../references/api-reference.md).364. 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.3738## Safe preflight examples3940Validate the C-Eval command shape and prerequisites for a local checkpoint:4142```bash43python sub-skills/evaluation-workflows/scripts/check_evaluation_inputs.py ceval \44 --repo-root /path/to/Baichuan-7B \45 --model /path/to/Baichuan-7B-weights \46 --shot 5 \47 --split val \48 --output-dir ceval_output \49 --check-imports \50 --check-cuda51```5253Validate a Hendrycks/test MMLU checkout and render the copy/run commands:5455```bash56python sub-skills/evaluation-workflows/scripts/check_evaluation_inputs.py mmlu \57 --repo-root /path/to/Baichuan-7B \58 --benchmark-root /path/to/hendrycks-test \59 --model /path/to/Baichuan-7B-weights \60 --data-dir data \61 --save-dir results \62 --ntrain 5 \63 --check-imports \64 --check-cuda65```6667The 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.