Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

ascend-model-migration提升模型迁移

Agent Skill

ascend-model-migration 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

356

周安装

15

GitHub Stars

12

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ascend-model-migration(提升模型迁移)
来源仓库:https://github.com/ascend/agent-skills
仓库路径:skills/ascend-model-migration
安装命令:
npx skills add https://github.com/ascend/agent-skills --skill ascend-model-migration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ascend/agent-skills --skill ascend-model-migration

简介

ascend-model-migration 提供从开源模型迁移至昇腾 NPU 的完整端到端流程支持。

  • 涵盖 SSH 连接、环境搭建、模型转换与训练启动等关键步骤。
  • 内置 BEVFormer 等典型模型参考实现,降低初次使用者的配置门槛。
  • 使用前需确认目标设备已安装 CANN 工具链并配置好 SSH 免密登录。
  • 建议先在模拟环境中验证流程,再应用于生产级训练任务。

SKILL.md

Ascend Model Migration Suite

Complete model migration and training suite for Ascend NPU environment. This suite provides end-to-end workflow from SSH connection to model training.

When to Invoke

  • User wants to migrate open-source models to Ascend NPU
  • User needs to setup training environment on Ascend NPU
  • User wants to train models (BEVFormer, etc.) on Ascend NPU
  • User asks about model deployment on Ascend platform

Suite Structure

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

Workflow Overview

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  ssh-connection │ ──► │ mmlab-install   │ ──► │ model-migration │ ──► │ model-training  │
│                 │     │    -suite       │     │                 │     │                 │
│  Connect to     │     │  Install mmcv,  │     │  Clone repo,    │     │  Execute        │
│  Ascend server  │     │  mmdet, mmdet3d │     │  apply patches  │     │  training script│
└─────────────────┘     └─────────────────┘     └─────────────────┘     └─────────────────┘

Complete Workflow

Phase 0: DrivingSDK Preparation

DrivingSDK仓库地址https://gitcode.com/Ascend/DrivingSDK

在开始任何工作前,确认DrivingSDK已克隆到工作目录:

cd <working_directory>
git clone https://gitcode.com/Ascend/DrivingSDK

重要:DrivingSDK包含所有必要的patch文件和训练脚本,无需向用户询问patch位置。

Phase 1: Environment Information Collection

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.

Phase 2: Environment Setup

Use AgentSkills/skills/ascend-mmlab-install-suite/ to install dependencies:

  1. Verify base environment (torch, torch_npu, CANN)
  2. Install MMLab dependencies:

- mmcv-full (with NPU operators) - mmdetection - mmsegmentation - mmdetection3d - detectron2

Phase 3: Model Migration

Use model-migration skill (this suite) to prepare model code:

  1. Clone open-source repository
  2. Apply NPU adaptation patches
  3. Setup dataset and weight links

Phase 4: Model Training

Use model-training skill (this suite) to launch training:

  1. Select training mode (performance/accuracy)
  2. Execute training script
  3. Monitor training progress

Supported Models

ModelStatusDrivingSDK Path
BEVFormer✅ Supportedmodel_examples/BEVFormer
More models🔄 Coming soon-

Quick Start Example

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

Key Principles

NPU Compatibility Check

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.

Network Strategy

SituationStrategy
Server can access GitHubDirect git clone on server
Server network timeoutConfigure proxy or clone locally → scp to server
Proxy availableConfigure proxy: export http_proxy=http://proxy:port

重要:所有GitHub仓库克隆都应使用GitHub官方链接,不使用镜像站点。如果网络超时,优先配置代理。

Error Handling

Each sub-skill handles its own errors and provides recovery suggestions. Common issues:

  1. SSH connection failed: Check IP, username, password/key
  2. NPU device not found: Check environment variables
  3. CUDA paths conflict: Reinstall with NPU support
  4. Patch application fails: Check code version

Environment Variables Reference

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.

Reference Files

  • SSH connection: ssh-connection/SKILL.md (this suite)
  • MMLab install suite: AgentSkills/skills/ascend-mmlab-install-suite/SKILL.md
  • DrivingSDK path: DrivingSDK/model_examples/
  • Model migration: model-migration/SKILL.md (this suite)
  • Model training: model-training/SKILL.md (this suite)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.1%
按下载量换算45

Claude

32.4%
按下载量换算41

Cursor

17.13%
按下载量换算21

Gemini CLI

9.99%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills