skills/drivingsdk-ascend-model-migration/SKILL.md
Ascend NPU model migration suite. Invoke when user wants to migrate/train models on Ascend NPU, setup environment, or deploy models from open-source repositories.
npx skillsauth add Ascend/agent-skills ascend-model-migrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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)testing
Kubernetes 集群健康检查与安全修复 — 诊断问题,用户确认后执行修复
tools
昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。
development
编译 ATB (Ascend Transformer Boost) 测试框架。当用户需要编译 ATB 测试框架、 运行 CSV 测试、或构建 atb_test_framework 时调用。支持全量编译(含第三方依赖克隆与源替换) 和增量编译两种模式。需在 Docker 容器内配合 CANN 环境执行。
databases
ATB OPS→ACLNN 迁移标准化工作流主模板。整合前置学习、设计文档生成、CSV用例设计、 实际迁移、编译验证、测试验证全流程,提供明确的阶段 Gates 和用户确认机制。