[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAP1XED4GG42PT9AHT7X3F":3,"skill-same:01M7FAP1XED4GG42PT9AHT7X3F":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7FAP1XED4GG42PT9AHT7X3F","runner-and-training",null,"Build, adapt, and troubleshoot MMEngine Runner and FlexibleRunner training workflows, hooks, optimizers, schedulers, checkpoints, resume, distributed launch, and optional strategies.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: runner-and-training\ndescription: \"Build, adapt, and troubleshoot MMEngine Runner and FlexibleRunner\n  training workflows, hooks, optimizers, schedulers, checkpoints, resume,\n  distributed launch, and optional strategies.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Runner and Training\n\nUse 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.\n\n## Read Order\n\n- [references\u002Frunner-workflows.md](references\u002Frunner-workflows.md): Assemble `Runner` and `FlexibleRunner` configs, choose train\u002Fval\u002Ftest loops, handle checkpoint\u002Fresume semantics, and understand runtime outputs.\n- [references\u002Fhooks-optim-schedulers.md](references\u002Fhooks-optim-schedulers.md): Configure default\u002Fcustom hooks, checkpoint best metrics, `OptimWrapper`\u002F`AmpOptimWrapper`, gradient accumulation, clipping, and parameter schedulers.\n- [references\u002Flarge-model-and-distributed.md](references\u002Flarge-model-and-distributed.md): Choose launchers, distributed backends, `FlexibleRunner` strategies, AMP\u002Fcompile\u002Fcheckpointing, and dependency-gated DeepSpeed\u002FFSDP\u002FColossalAI paths.\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md): Diagnose common Runner, hook, optimizer, scheduler, checkpoint, resume, launcher, and strategy failures by symptom.\n- [scripts\u002Frunner_config_smoke.py](scripts\u002Frunner_config_smoke.py): Safely validate Runner-like JSON config shape without importing project code, downloading data, launching distributed jobs, or training.\n\n## Scope\n\nThis sub-skill owns MMEngine training orchestration: `mmengine.runner`, `mmengine.hooks`, `mmengine.optim`, `mmengine._strategy`, training\u002Fvalidation\u002Ftesting loops, checkpointing, resume\u002Fload behavior, randomness, log processors, distributed launch recipes, and optional strategy configs.\n\nRoute adjacent issues to sibling skills:\n\n- Use `..\u002Fconfiguration-and-registry\u002FSKILL.md` for Python\u002FYAML config syntax, `_base_`, custom imports, registry scopes, and `build_from_cfg` failures.\n- Use `..\u002Fmodels-metrics-and-inference\u002FSKILL.md` for `BaseModel.forward`, `train_step`, `val_step`, evaluator, metric, TTA, and prediction contracts.\n- Use `..\u002Fdata-structures-and-io\u002FSKILL.md` for dataset, sampler, collate, data element, annotation, and file IO details.\n- Use `..\u002Fruntime-utilities-and-visualization\u002FSKILL.md` for visualizer backends, logger internals, message hubs, device utilities, and general distributed helpers outside Runner orchestration.\n\n## Fast Workflow\n\n1. Identify the entry point: `Runner.from_cfg(cfg)` for config-driven projects, direct `Runner(...)` for small experiments, or `FlexibleRunner(...)` when `strategy`, `compile`, or large-model training is central.\n2. Check loop completeness: training needs `model`, `work_dir`, `train_dataloader`, `train_cfg`, and `optim_wrapper`; validation\u002Ftesting additionally need matching dataloaders, loop cfgs, and evaluators.\n3. Align time units: if `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.\n4. Decide checkpoint semantics: `load_from` without `resume=True` loads weights only; `resume=True` restores optimizer and scheduler state from the latest or specified checkpoint.\n5. Validate risky edits from this sub-skill directory with `python scripts\u002Frunner_config_smoke.py --config-json config.json` after converting the relevant config shape to JSON.\n\n## Output Expectations\n\n`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.\n","# Runner and Training\n\nUse 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.\n\n## Read Order\n\n- [references\u002Frunner-workflows.md](references\u002Frunner-workflows.md): Assemble `Runner` and `FlexibleRunner` configs, choose train\u002Fval\u002Ftest loops, handle checkpoint\u002Fresume semantics, and understand runtime outputs.\n- [references\u002Fhooks-optim-schedulers.md](references\u002Fhooks-optim-schedulers.md): Configure default\u002Fcustom hooks, checkpoint best metrics, `OptimWrapper`\u002F`AmpOptimWrapper`, gradient accumulation, clipping, and parameter schedulers.\n- [references\u002Flarge-model-and-distributed.md](references\u002Flarge-model-and-distributed.md): Choose launchers, distributed backends, `FlexibleRunner` strategies, AMP\u002Fcompile\u002Fcheckpointing, and dependency-gated DeepSpeed\u002FFSDP\u002FColossalAI paths.\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md): Diagnose common Runner, hook, optimizer, scheduler, checkpoint, resume, launcher, and strategy failures by symptom.\n- [scripts\u002Frunner_config_smoke.py](scripts\u002Frunner_config_smoke.py): Safely validate Runner-like JSON config shape without importing project code, downloading data, launching distributed jobs, or training.\n\n## Scope\n\nThis sub-skill owns MMEngine training orchestration: `mmengine.runner`, `mmengine.hooks`, `mmengine.optim`, `mmengine._strategy`, training\u002Fvalidation\u002Ftesting loops, checkpointing, resume\u002Fload behavior, randomness, log processors, distributed launch recipes, and optional strategy configs.\n\nRoute adjacent issues to sibling skills:\n\n- Use `..\u002Fconfiguration-and-registry\u002FSKILL.md` for Python\u002FYAML config syntax, `_base_`, custom imports, registry scopes, and `build_from_cfg` failures.\n- Use `..\u002Fmodels-metrics-and-inference\u002FSKILL.md` for `BaseModel.forward`, `train_step`, `val_step`, evaluator, metric, TTA, and prediction contracts.\n- Use `..\u002Fdata-structures-and-io\u002FSKILL.md` for dataset, sampler, collate, data element, annotation, and file IO details.\n- Use `..\u002Fruntime-utilities-and-visualization\u002FSKILL.md` for visualizer backends, logger internals, message hubs, device utilities, and general distributed helpers outside Runner orchestration.\n\n## Fast Workflow\n\n1. Identify the entry point: `Runner.from_cfg(cfg)` for config-driven projects, direct `Runner(...)` for small experiments, or `FlexibleRunner(...)` when `strategy`, `compile`, or large-model training is central.\n2. Check loop completeness: training needs `model`, `work_dir`, `train_dataloader`, `train_cfg`, and `optim_wrapper`; validation\u002Ftesting additionally need matching dataloaders, loop cfgs, and evaluators.\n3. Align time units: if `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.\n4. Decide checkpoint semantics: `load_from` without `resume=True` loads weights only; `resume=True` restores optimizer and scheduler state from the latest or specified checkpoint.\n5. Validate risky edits from this sub-skill directory with `python scripts\u002Frunner_config_smoke.py --config-json config.json` after converting the relevant config shape to JSON.\n\n## Output Expectations\n\n`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.\n",{"name":5,"license":24,"metadata":25,"description":7,"disable-model-invocation":27},"Apache 2.0",{"disco-role":26},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill runner-and-training",{"tool":42,"command":43},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill runner-and-training",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill runner-and-training","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training\u002FSKILL.md",[49,55,59,63],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fhooks-optim-schedulers.md","REFERENCE","参考文档",7248,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training\u002Freferences\u002Fhooks-optim-schedulers.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Flarge-model-and-distributed.md",6556,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training\u002Freferences\u002Flarge-model-and-distributed.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Frunner-workflows.md",7999,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training\u002Freferences\u002Frunner-workflows.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ftroubleshooting.md",8908,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmmengine\u002Fsub-skills\u002Frunner-and-training\u002Freferences\u002Ftroubleshooting.md",[68,76,81,88,95,102],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":77,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]