计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
runner-and-training【效率与协作】Build, adapt, and troubleshoot MMEngine Runner and FlexibleRunner training workflows, hooks, optimizers, schedulers, checkpoints, resume, distributed launch, and optional strategies.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task mentions Runner.from_cfg, Runner, FlexibleRunner, train_cfg, val_cfg, test_cfg, hooks, checkpoints, resume, AMP, gradient accumulation, parameter schedulers, distributed launch, or large-model strategies.
Runner and FlexibleRunner configs, choose train/val/test loops, handle checkpoint/resume semantics, and understand runtime outputs.OptimWrapper/AmpOptimWrapper, gradient accumulation, clipping, and parameter schedulers.FlexibleRunner strategies, AMP/compile/checkpointing, and dependency-gated DeepSpeed/FSDP/ColossalAI paths.This sub-skill owns MMEngine training orchestration: mmengine.runner, mmengine.hooks, mmengine.optim, mmengine._strategy, training/validation/testing loops, checkpointing, resume/load behavior, randomness, log processors, distributed launch recipes, and optional strategy configs.
Route adjacent issues to sibling skills:
../configuration-and-registry/SKILL.md for Python/YAML config syntax, _base_, custom imports, registry scopes, and build_from_cfg failures.../models-metrics-and-inference/SKILL.md for BaseModel.forward, train_step, val_step, evaluator, metric, TTA, and prediction contracts.../data-structures-and-io/SKILL.md for dataset, sampler, collate, data element, annotation, and file IO details.../runtime-utilities-and-visualization/SKILL.md for visualizer backends, logger internals, message hubs, device utilities, and general distributed helpers outside Runner orchestration.Runner.from_cfg(cfg) for config-driven projects, direct Runner(...) for small experiments, or FlexibleRunner(...) when strategy, compile, or large-model training is central.model, work_dir, train_dataloader, train_cfg, and optim_wrapper; validation/testing additionally need matching dataloaders, loop cfgs, and evaluators.train_cfg.by_epoch=False, also align default_hooks.checkpoint.by_epoch, default_hooks.logger.log_metric_by_epoch, log_processor.by_epoch, and scheduler by_epoch or convert_to_iter_based settings.load_from without resume=True loads weights only; resume=True restores optimizer and scheduler state from the latest or specified checkpoint.python scripts/runner_config_smoke.py --config-json config.json after converting the relevant config shape to JSON.Runner.train() returns the trained model, while Runner.val() and Runner.test() return metric dictionaries. Runtime outputs normally include checkpoints, logs, and visualizer files under the configured work_dir or log directory; this sub-skill treats those as user project outputs, not managed skill files.