training-evaluation-configs
Route MMOCR config-driven training, testing, evaluation, model-zoo selection, distributed/Slurm launch, AMP, resume, and TTA preflights.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-evaluation-configs
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route MMOCR config-driven training, testing, evaluation, model-zoo selection, distributed/Slurm launch, AMP, resume, and TTA preflights.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/config-reference.md4.8 KB
- 参考文档references/model-zoo.md4.9 KB
- 参考文档references/training-evaluation-workflows.md6.1 KB
- 参考文档references/troubleshooting.md5.7 KB
- 脚本scripts/mmocr_config_smoke.py10.5 KB
03 SKILL.md 正文
training-evaluation-configs
Use this router when the task is to inspect, edit, preflight, or launch MMOCR config-driven training/testing/evaluation. It covers Python config inheritance, --cfg-options, model-zoo family selection, checkpoint matching, train.py/test.py, distributed scripts, Slurm scripts, AMP, resume/load behavior, prediction dumping, and test-time augmentation.
Route first
- Config syntax,
_base_inheritance, default scope, dataloaders, evaluators,work_dir,resume,load_from, or one-off override checks: read config reference and run the safe config smoke helper. - Single-device training/testing, distributed launch, Slurm launch, offline evaluation, visualization,
--amp,--auto-scale-lr,--resume,--save-preds, or--tta: read training and evaluation workflows. - Model-family choice, model-index aliases, config/checkpoint matching, evaluator family, or AMP support by algorithm: read model zoo reference.
- Broken
_base_paths, shell quoting, missing data paths, missing checkpoints, checkpoint/config mismatch, CPU/CUDA fallback, unsupported AMP, port conflicts, Slurm variables, orwork_dir/checkpoint/resume confusion: read troubleshooting.
Boundaries
Route elsewhere when the task is not an end-to-end training/evaluation/config problem:
- Dataset download, conversion, annotation format, dataset-zoo authoring, LMDB preparation, or generated dataset bases:
../data-preparation/. - OCR/KIE inferencer APIs, prediction-only inference, model-name inference smoke tests, or high-level OCR chains:
../ocr-inference/. - Model internals, custom components, registries, data samples, metrics as classes, transforms, visualizers, or project extension code:
../model-api-components/.
Safe operating pattern
- Load the target config with the smoke helper before any real train/test command.
- Confirm
default_scope,model.type, dataloader dataset types/batch sizes, evaluator types,work_dir,resume,load_from, TTA fields, and distributed backend. - Match the config family to the checkpoint and evaluator before enabling expensive launch options.
- Choose the smallest launcher that fits the hardware: single-device first, then distributed, then Slurm.
- Enable
--amp,--auto-scale-lr,--resume,--save-preds, or--ttaonly after the workflow and model-zoo references say the route is valid.
Source-script policy
- The bundled smoke helper only calls
mmengine.Config.fromfileandcfg.merge_from_dict; it never builds a runner, dataset, model, evaluator, or training loop. - Official
train.py,test.py, distributed, and Slurm scripts are real execution routes. Document and use them only when the user intends to start training or evaluation. - Offline evaluation and visualization tools are reference-only in this sub-skill because they build evaluators, datasets, visualizers, or simulated runners.
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).