Launches and monitors model training on Ascend NPU environments with performance and accuracy modes for 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.
None: SKILL.md is the whole skill.
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.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/external-gitcode-ascend-skills:external-gitcode-ascend-model-trainingfrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skills91 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、框架适配、算子注册。Other plugins' skills for the same job