Automates large-scale cluster deployment of Ascend components (driver, firmware, toolkit, PyTorch, etc.) via ascend-deployer. Use for cross-cluster batch installs.
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.
用于 ascend-deployer 的大规模集群自动化安装部署工具。帮助用户在集群环境中跨多个节点部署各种 Ascend 组件。
https://gitcode.com/Ascend/ascend-deployer
git clone https://gitcode.com/Ascend/ascend-deployer.git
使用此 skill 前,请确保满足以下要求:
large_scale_inventory.ini 文件以下组件可以安装:
| 组件 | 说明 |
|---|---|
| ascend-device-plugin | Kubernetes 的 Ascend 设备插件 |
| ascend-docker-runtime | Ascend Docker 运行时 |
| ascend-operator | Kubernetes 的 Ascend 操作器 |
| clusterd | Ascend Clusterd 服务 |
| copy_pkgs | 包复制工具 |
| deepseek_cntr | DeepSeek 容器 |
| deepseek_pd | DeepSeek 并行分布式 |
| docker_images | Docker 镜像管理 |
| driver | NPU 驱动 |
| fault-diag | 故障诊断工具 |
| firmware | NPU 固件 |
| kernels | 内核包 |
| mindie_image | MindIE 镜像 |
| mindio | MindIO 库 |
| mindspore | MindSpore 框架 |
| nnae | 神经网络加速引擎 |
| nnrt | 神经网络运行时 |
| noded | Ascend Noded 服务 |
| npu | NPU 相关包 |
| npu-exporter | NPU 指标导出器 |
| python | Python 环境 |
| pytorch | PyTorch 框架 |
| resilience-controller | 弹性控制器 |
| sys_pkg | 系统包 |
| tensorflow | TensorFlow 框架 |
| toolbox | Ascend 工具箱 |
| toolkit | Ascend 工具包 |
| volcano | Volcano 调度器 |
脚本位置:ascend-deployer/large_scale_install.sh
cd ascend-deployer
bash large_scale_install.sh --install=<组件名>
示例 - 安装固件:
bash large_scale_install.sh --install=firmware
bash large_scale_install.sh --install=<组件1>,<组件2>,<组件3>
示例 - 安装固件和内核:
bash large_scale_install.sh --install=firmware,kernels
示例 - 安装驱动、固件和工具包:
bash large_scale_install.sh --install=driver,firmware,toolkit
large_scale_inventory.ini 已配置确保 large_scale_inventory.ini 包含:
根据以下因素帮助用户选择合适的组件:
进入 ascend-deployer 目录,使用选定的组件运行安装命令:
cd ascend-deployer
bash large_scale_install.sh --install=<选定的组件>
安装完成后,验证:
以下命令需在 ascend-deployer 目录下执行:
在新集群上搭建基础 NPU 环境:
bash large_scale_install.sh --install=driver,firmware,toolkit,toolbox
用于深度学习训练工作负载:
bash large_scale_install.sh --install=driver,firmware,toolkit,pytorch,nnae
用于基于 Kubernetes 的部署:
bash large_scale_install.sh --install=ascend-device-plugin,ascend-docker-runtime,ascend-operator,volcano
安装完整的 Ascend 软件栈:
bash large_scale_install.sh --install=driver,firmware,toolkit,toolbox,nnae,nnrt,pytorch,tensorflow,mindspore
用于集群监控:
bash large_scale_install.sh --install=npu-exporter,fault-diag
large_scale_inventory.ini 文件应遵循以下格式:
[master]
[worker]
1.1.1.1-1.1.1.9 ansible_ssh_user="root" ansible_ssh_pass="test1234" step_len=3 test_expr="master-{ip}-{int(index)+1}-y"
[deploy_node]
[npu_node]
[large_scale]
SUB_GROUP_MAX_SIZE=5
[all:vars]
| 字段 | 说明 |
|---|---|
| [master] | 主节点分组 |
| [worker] | 工作节点分组,支持 IP 范围表示法(如 1.1.1.1-1.1.1.9) |
| [deploy_node] | 部署节点分组 |
| [npu_node] | NPU 节点分组 |
| [large_scale] | 大规模部署配置 |
| SUB_GROUP_MAX_SIZE | 子组最大节点数 |
| ansible_ssh_user | SSH 用户名 |
| ansible_ssh_pass | SSH 密码 |
| step_len | 步长 |
| test_expr | 测试表达式模板 |
SSH 连接失败
组件安装失败
服务无法启动
systemctl status <服务名>journalctl -u <服务名>安装顺序:某些组件存在依赖关系。建议按以下顺序安装:
并行安装:可以在单个命令中安装多个组件以提高效率
回滚:如果安装失败,请查看 ascend-deployer 文档中的回滚说明
日志:安装日志通常存储在 /var/log/ascend-deployer/
| 文件 | 说明 |
|---|---|
| large_scale_install.sh | 主安装脚本 |
| large_scale_inventory.ini | 集群节点清单配置 |
| ansible.cfg | Ansible 配置文件 |
| playbooks/ | Ansible playbook 目录 |
What SKILL.md sets; muted values are Claude Code's defaults
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-large_scale_deployfrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skillsOther plugins' skills for the same job