Migrates and trains models on Ascend NPU using MMLab tools. Handles SSH connection, environment setup, patching, and training execution for models like BEVFormer.
Ships in external-gitcode-ascend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Complete model migration and training suite for Ascend NPU environment. This suite provides end-to-end workflow from SSH connection to model training.
ascend-model-migration/
├── SKILL.md # Main skill (this file)
├── ssh-connection/ # SSH connection skill (from ssh-dev-suite)
│ └── SKILL.md
├── model-migration/ # Model migration skill
│ └── SKILL.md
└── model-training/ # Model training skill
└── SKILL.md
# External Dependencies (in AgentSkills/skills/)
└── ascend-mmlab-install-suite/ # MMLab environment setup
└── SKILL.md
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ ssh-connection │ ──► │ mmlab-install │ ──► │ model-migration │ ──► │ model-training │
│ │ │ -suite │ │ │ │ │
│ Connect to │ │ Install mmcv, │ │ Clone repo, │ │ Execute │
│ Ascend server │ │ mmdet, mmdet3d │ │ apply patches │ │ training script│
└─────────────────┘ └─────────────────┘ └─────────────────┘ └─────────────────┘
DrivingSDK仓库地址:https://gitcode.com/Ascend/DrivingSDK
在开始任何工作前,确认DrivingSDK已克隆到工作目录:
cd <working_directory>
git clone https://gitcode.com/Ascend/DrivingSDK
重要:DrivingSDK包含所有必要的patch文件和训练脚本,无需向用户询问patch位置。
Ask user for the following information:
1. Server IP address (e.g., 192.168.13.151)
2. SSH username (e.g., root)
3. Docker container name (if applicable, e.g., qianqian_0312)
4. Conda environment name (e.g., qianqian_2)
5. Working directory path (e.g., /home/zqq/0312_trae_new)
Use ssh-connection skill (this suite) to establish connection.
Use AgentSkills/skills/ascend-mmlab-install-suite/ to install dependencies:
Use model-migration skill (this suite) to prepare model code:
Use model-training skill (this suite) to launch training:
| Model | Status | DrivingSDK Path |
|---|---|---|
| BEVFormer | ✅ Supported | model_examples/BEVFormer |
| More models | 🔄 Coming soon | - |
User: "I want to train BEVFormer on Ascend NPU"
Agent workflow:
1. [ssh-connection] Ask for server info → Connect
2. [ascend-mmlab-install-suite] Check environment → Install MMLab deps
3. [model-migration] Clone BEVFormer → Apply patch → Link data
4. [model-training] Launch training → Monitor progress
After installation, verify NPU compatibility:
python -c "import site; print([p for p in site.getsitepackages() if 'cuda' in p.lower()])"
Should return empty list [] for NPU environment.
| Situation | Strategy |
|---|---|
| Server can access GitHub | Direct git clone on server |
| Server network timeout | Configure proxy or clone locally → scp to server |
| Proxy available | Configure proxy: export http_proxy=http://proxy:port |
重要:所有GitHub仓库克隆都应使用GitHub官方链接,不使用镜像站点。如果网络超时,优先配置代理。
Each sub-skill handles its own errors and provides recovery suggestions. Common issues:
Common Ascend NPU environment variables:
export ASCEND_SLOG_PRINT_TO_STDOUT=0
export ASCEND_GLOBAL_LOG_LEVEL=3
export TASK_QUEUE_ENABLE=2
export COMBINED_ENABLE=1
export HCCL_WHITELIST_DISABLE=1
export HCCL_CONNECT_TIMEOUT=1200
Note: ASCEND_RT_VISIBLE_DEVICES may be required in specific environments.
ssh-connection/SKILL.md (this suite)AgentSkills/skills/ascend-mmlab-install-suite/SKILL.mdDrivingSDK/model_examples/model-migration/SKILL.md (this suite)model-training/SKILL.md (this suite)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ascend-npu, model-migration, model-training, mmlab, npu, deep-learning
91 skills in this plugin
/external-gitcode-ascend-analyse-coverage分析测试覆盖率盲区,生成覆盖率分析报告/external-gitcode-ascend-arxiv-recommendation-npu自动化推荐系统论文发现流水线。抓取 arxiv 推荐论文,检测源码,生成待迁移任务清单,由 npu-model-migration skill 完成 NPU 适配。/external-gitcode-ascend-ascendc-operator-code-gen根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 op_host/op_kernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、op_host、op_kernel、tiling、kernel、框架适配、算子注册。/external-gitcode-ascend-ascendc-operator-code-reviewAscend C 代码检视技能。基于假设检验方法论对代码进行安全规范检视。调用时必须明确提供:代码片段和检视规则描述。TRIGGER when: 用户要求代码检视、代码review、询问代码安全问题、检查编码规范、或需要检查特定代码问题(如内存泄漏、整数溢出、空指针等)。关键词:Ascend C、代码检视、代码review、安全规范、内存、指针、溢出、泄漏、编码规范。/external-gitcode-ascend-ascendc-operator-compile-debug编译安装 AscendC 算子并执行精度测试。TRIGGER when: 算子代码生成完成后需要编译验证、安装 whl 包、运行精度测试,或编译/测试失败需要排查。关键词:build.sh、编译、安装、whl、pytest、精度测试、编译错误、NPU 测试。/external-gitcode-ascend-ascendc-operator-design完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。/external-gitcode-ascend-skills:external-gitcode-ascend-drivingsdk-ascend-model-migrationfrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skillsOther plugins' skills for the same job