원클릭으로
model-training
Model training on Ascend NPU. Invoke when user wants to launch training script and monitor training progress.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Model training on Ascend NPU. Invoke when user wants to launch training script and monitor training progress.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Kubernetes 集群健康检查与安全修复 — 诊断问题,用户确认后执行修复
排查并优化 Ascend C 算子性能。当用户开发、审查或优化 Ascend C kernel 算子时使用,或当用户提及 Ascend C 性能优化、算子优化、tiling、流水、搬运、 内存优化、NPU/昇腾等关键词时触发。
多语言安全代码审查 (Security Code Review)。对 Python、C++、Shell、Markdown 文件进行系统性安全漏洞检测与修复指导。覆盖 OWASP Top 10、CWE Top 25、CERT 安全编码标准。当用户提及以下内容时,务必使用此技能:安全审查、安全代码审查、security review、code review 中的安全检查、漏洞扫描、安全合规检查(CWE/CERT/OWASP)、编写安全代码、检查代码安全性、推理服务安全审计、多模态 Token 安全校验、JSON 嵌套深度攻击防护。即使用户没有明确说'安全审查',只要涉及代码安全性评估、漏洞检测、安全最佳实践,都应触发此技能。
昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。
根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 op_host/op_kernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、op_host、op_kernel、tiling、kernel、框架适配、算子注册。
完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。
| name | model-training |
| description | Model training on Ascend NPU. Invoke when user wants to launch training script and monitor training progress. |
Launch and monitor model training on Ascend NPU environment.
Ask user for the following:
1. Training mode preference:
- Performance training (FP32/FP16)
- Accuracy training (full epochs)
- Custom training
2. Number of GPUs/NPUs to use
3. Batch size (if custom)
4. Any specific training parameters
Provide user with training options:
Training Options:
1. Performance Training (FP32, 8 GPUs) - Quick performance test
2. Performance Training (FP16, 8 GPUs) - Quick performance test with mixed precision
3. Accuracy Training (24 epochs) - Full accuracy training
4. Custom training configuration
Ask user to select training mode or provide custom configuration.
Ensure environment variables are set:
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_IF_IP=$(hostname -I | awk '{print $1}')
export HCCL_CONNECT_TIMEOUT=1200
Execute training script based on selected mode.
Check training log and verify training started successfully.
cd <working_directory>
bash test/train_performance_8p_base_fp32.sh --batch-size=1 --num-npu=8
cd <working_directory>
bash test/train_performance_8p_base_fp16.sh --batch-size=1 --num-npu=8
cd <working_directory>
bash test/train_full_8p.sh --batch-size=1
cd <model_directory>
bash ./tools/dist_train.sh ./projects/configs/bevformer/bevformer_base.py <num_gpus>
# Check training process
ps aux | grep torchrun
# Check training log
tail -20 <working_directory>/test/output/train_performance_8p_base_fp32.log
Training is considered successfully started when:
Example successful log:
2026-03-12 09:47:40,838 - mmdet - INFO - Epoch [1][26/41] lr: 7.333e-05, eta: 0:36:35, time: 1.883, data_time: 0.023, memory: 25332, loss_cls: 1.2614, loss_bbox: 1.7827
tail -f <working_directory>/test/output/train_performance_8p_base_fp32.log
Training is complete when:
Check for completion:
grep "Saving checkpoint" <log_file> | tail -1
npu-smi infonpu-smi infops aux | grep python# Kill existing training processes
pkill -f torchrun
pkill -f dist_train
| Training Mode | Log File |
|---|---|
| FP32 Performance | test/output/train_performance_8p_base_fp32.log |
| FP16 Performance | test/output/train_performance_8p_base_fp16.log |
| Accuracy | test/output/train_full_8p.log |
<model_directory>/test/<model_directory>/projects/configs/DrivingSDK/model_examples/<model>/README.md