[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F68PTJMY55RV1NFJ8P8P38":3,"skill-same:01M7F68PTJMY55RV1NFJ8P8P38":66},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7F68PTJMY55RV1NFJ8P8P38","model-training",null,"Guides TransFuser imitation-model training, dataset and configuration validation, backbone and PointPillars selection, single-GPU or torchrun DDP launch, loss interpretation, and checkpoint recovery.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-training\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: model-training\ndescription: \"Guides TransFuser imitation-model training, dataset and\n  configuration validation, backbone and PointPillars selection, single-GPU or\n  torchrun DDP launch, loss interpretation, and checkpoint recovery.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# TransFuser Model Training\n\nUse this sub-skill when a task involves training or resuming a TransFuser-family model, choosing a fusion backbone, validating training data, preparing a single-GPU or DDP command, interpreting losses and logs, or diagnosing a checkpoint.\n\n## Non-negotiable runtime boundary\n\n- Training requires an NVIDIA CUDA runtime. The repository training path unconditionally selects a CUDA device; there is **no CPU training substitute**.\n- Preserve the legacy package family unless deliberately porting and revalidating it: Python 3.7, PyTorch 1.12.1+cu113, `mmcv-full` 1.6.0, `mmdet` 2.25.0, `mmsegmentation` 0.25.0, `mmcls` 0.25.0, `torch-scatter` 2.1.0, and `timm` 0.6.7. This combination passed imports and `pip check` with CUDA visible on an NVIDIA A100 during skill construction.\n- Do not treat a successful CPU import, `pip check`, or CLI parser run as proof that training works. Require `torch.cuda.is_available()`, a CUDA allocation, and matching compiled extensions.\n- Model construction can ask `timm` for pretrained image weights. Prepare an approved local cache or explicitly authorize network access before constructing a fresh model in a network-restricted environment.\n\n## Route the task\n\n1. **Prepare a new or resumed run:** read [training-workflow.md](references\u002Ftraining-workflow.md). It contains every `train.py` flag\u002Fdefault, single-GPU and `torchrun` recipes, logging, losses, caching, debug behavior, and resume semantics.\n2. **Validate data or diagnose a shape\u002Fkey failure:** read [data-format.md](references\u002Fdata-format.md), then run [validate_training_setup.py](scripts\u002Fvalidate_training_setup.py). The helper only inspects paths, metadata, environment variables, and optional imports; it never trains or downloads.\n3. **Choose a backbone, architecture, config override, or PointPillars:** read [api-reference.md](references\u002Fapi-reference.md). It covers `GlobalConfig`, `CARLA_Data`, `LidarCenterNet`, all four fusion backbones, tensor contracts, and the PointPillars path.\n4. **Resume, compare, or diagnose weights:** first read the checkpoint section in [training-workflow.md](references\u002Ftraining-workflow.md), then run [inspect_checkpoint.py](scripts\u002Finspect_checkpoint.py). Its default mode does not unpickle the checkpoint; only use `--unsafe-load` for a trusted file.\n5. **Recover from a failure:** read [troubleshooting.md](references\u002Ftroubleshooting.md) for missing paths, DDP rank variables, invalid backbones, checkpoint incompatibility, cache\u002Fdebug failures, and missing OpenMMLab or `torch-scatter` components.\n\n## Safe first pass\n\nFrom any directory, validate the intended run before launching it:\n\n```bash\npython \u003Cthis-sub-skill>\u002Fscripts\u002Fvalidate_training_setup.py \\\n  --repo-root \u003Ctransfuser-checkout> \\\n  --dataset-root \u003Cdataset-root> \\\n  --setting 02_05_withheld \\\n  --backbone transFuser \\\n  --parallel-training 0\n```\n\nAdd `--check-runtime` only in the environment intended for training. It imports the compatibility stack and repository training modules and requires working CUDA, but it does not instantiate a model or start training.\n\n## Boundaries and handoffs\n\n- Dataset acquisition, CARLA route\u002Fscenario generation, and 210-GB collection are owned by [data-and-routes](..\u002Fdata-and-routes\u002FSKILL.md).\n- Loading a trained model into `HybridAgent`, handling `args.txt` at inference time, and CARLA control are owned by [sensor-agent](..\u002Fsensor-agent\u002FSKILL.md).\n- Longest6 execution and result parsing are owned by [carla-evaluation](..\u002Fcarla-evaluation\u002FSKILL.md).\n- Full training, model-weight downloads, CARLA simulation, Docker builds, and cloud submission are intentionally not performed by bundled helpers.\n\n## Completion criteria\n\nBefore launching training, require all of the following:\n\n- the dataset split selects at least one train route and, for `02_05_withheld`, at least one withheld validation route;\n- required modality files and future labels exist for eligible samples;\n- the exact backbone string and architecture choices are compatible;\n- CUDA and compiled dependency probes pass;\n- single-GPU runs set `--parallel_training 0`, while DDP runs are launched by `torchrun` with `RANK`, `LOCAL_RANK`, and `WORLD_SIZE` populated;\n- resume runs have both `model_\u003Cepoch>.pth` and the derived `optimizer_\u003Cepoch>.pth`, a deliberate `--start_epoch`, and matching architecture\u002Fconfig provenance;\n- the output resolves to `\u003Clogdir>\u002F\u003Cid>` and has sufficient storage for checkpoints, TensorBoard events, optional visualizations, and any disk cache.\n","# TransFuser Model Training\n\nUse this sub-skill when a task involves training or resuming a TransFuser-family model, choosing a fusion backbone, validating training data, preparing a single-GPU or DDP command, interpreting losses and logs, or diagnosing a checkpoint.\n\n## Non-negotiable runtime boundary\n\n- Training requires an NVIDIA CUDA runtime. The repository training path unconditionally selects a CUDA device; there is **no CPU training substitute**.\n- Preserve the legacy package family unless deliberately porting and revalidating it: Python 3.7, PyTorch 1.12.1+cu113, `mmcv-full` 1.6.0, `mmdet` 2.25.0, `mmsegmentation` 0.25.0, `mmcls` 0.25.0, `torch-scatter` 2.1.0, and `timm` 0.6.7. This combination passed imports and `pip check` with CUDA visible on an NVIDIA A100 during skill construction.\n- Do not treat a successful CPU import, `pip check`, or CLI parser run as proof that training works. Require `torch.cuda.is_available()`, a CUDA allocation, and matching compiled extensions.\n- Model construction can ask `timm` for pretrained image weights. Prepare an approved local cache or explicitly authorize network access before constructing a fresh model in a network-restricted environment.\n\n## Route the task\n\n1. **Prepare a new or resumed run:** read [training-workflow.md](references\u002Ftraining-workflow.md). It contains every `train.py` flag\u002Fdefault, single-GPU and `torchrun` recipes, logging, losses, caching, debug behavior, and resume semantics.\n2. **Validate data or diagnose a shape\u002Fkey failure:** read [data-format.md](references\u002Fdata-format.md), then run [validate_training_setup.py](scripts\u002Fvalidate_training_setup.py). The helper only inspects paths, metadata, environment variables, and optional imports; it never trains or downloads.\n3. **Choose a backbone, architecture, config override, or PointPillars:** read [api-reference.md](references\u002Fapi-reference.md). It covers `GlobalConfig`, `CARLA_Data`, `LidarCenterNet`, all four fusion backbones, tensor contracts, and the PointPillars path.\n4. **Resume, compare, or diagnose weights:** first read the checkpoint section in [training-workflow.md](references\u002Ftraining-workflow.md), then run [inspect_checkpoint.py](scripts\u002Finspect_checkpoint.py). Its default mode does not unpickle the checkpoint; only use `--unsafe-load` for a trusted file.\n5. **Recover from a failure:** read [troubleshooting.md](references\u002Ftroubleshooting.md) for missing paths, DDP rank variables, invalid backbones, checkpoint incompatibility, cache\u002Fdebug failures, and missing OpenMMLab or `torch-scatter` components.\n\n## Safe first pass\n\nFrom any directory, validate the intended run before launching it:\n\n```bash\npython \u003Cthis-sub-skill>\u002Fscripts\u002Fvalidate_training_setup.py \\\n  --repo-root \u003Ctransfuser-checkout> \\\n  --dataset-root \u003Cdataset-root> \\\n  --setting 02_05_withheld \\\n  --backbone transFuser \\\n  --parallel-training 0\n```\n\nAdd `--check-runtime` only in the environment intended for training. It imports the compatibility stack and repository training modules and requires working CUDA, but it does not instantiate a model or start training.\n\n## Boundaries and handoffs\n\n- Dataset acquisition, CARLA route\u002Fscenario generation, and 210-GB collection are owned by [data-and-routes](..\u002Fdata-and-routes\u002FSKILL.md).\n- Loading a trained model into `HybridAgent`, handling `args.txt` at inference time, and CARLA control are owned by [sensor-agent](..\u002Fsensor-agent\u002FSKILL.md).\n- Longest6 execution and result parsing are owned by [carla-evaluation](..\u002Fcarla-evaluation\u002FSKILL.md).\n- Full training, model-weight downloads, CARLA simulation, Docker builds, and cloud submission are intentionally not performed by bundled helpers.\n\n## Completion criteria\n\nBefore launching training, require all of the following:\n\n- the dataset split selects at least one train route and, for `02_05_withheld`, at least one withheld validation route;\n- required modality files and future labels exist for eligible samples;\n- the exact backbone string and architecture choices are compatible;\n- CUDA and compiled dependency probes pass;\n- single-GPU runs set `--parallel_training 0`, while DDP runs are launched by `torchrun` with `RANK`, `LOCAL_RANK`, and `WORLD_SIZE` populated;\n- resume runs have both `model_\u003Cepoch>.pth` and the derived `optimizer_\u003Cepoch>.pth`, a deliberate `--start_epoch`, and matching architecture\u002Fconfig provenance;\n- the output resolves to `\u003Clogdir>\u002F\u003Cid>` and has sufficient storage for checkpoints, TensorBoard events, optional visualizations, and any disk cache.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-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":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill model-training",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill model-training",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill model-training","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-training\u002FSKILL.md",[48,54,58,62],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fapi-reference.md","REFERENCE","参考文档",10982,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-training\u002Freferences\u002Fapi-reference.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fdata-format.md",9413,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-training\u002Freferences\u002Fdata-format.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftraining-workflow.md",15574,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-training\u002Freferences\u002Ftraining-workflow.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ftroubleshooting.md",13239,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Ftransfuser\u002Fsub-skills\u002Fmodel-training\u002Freferences\u002Ftroubleshooting.md",[67,74,79,86,93,100],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":75,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"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",[],[]]