← All skills
diffusers-ascend-env-setup
70 / 100 · Review before installing
Check before installing.
By ascend-ai-coding/awesome-ascend-skills (GitHub) · other · 184 stars · scanned at commit 75ec89c
HuggingFace Diffusers 环境配置指南,用于华为昇腾 NPU。覆盖 CANN 版本检测、PyTorch + torch_npu 安装、Diffusers 库安装及环境验证。当用户需要在昇腾 NPU 上配置 Diffusers 环境时使用。
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
The author does not mention this.
Found in 2 places.
Downloads and installs other software
The author does not mention this.
Found in 25 places.
Show 17 more
- skills/inference/diffusers-ascend/diffusers-ascend-env-setup/SKILL.md, line 56
- 默认安装与 PyTorch 版本相同的 torch_npu:`pip install torch-npu` - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 68
pip install "numpy<2.0" - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 69
pip install pyyaml setuptools - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 76
pip install torch --index-url https://download.pytorch.org/whl/cpu - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 79
pip install torch - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 86
pip install torch-npu - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 93
3. 安装指定版本:`pip install torch-npu=={version}` - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 133
pip install diffusers["torch"] - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 136
pip install diffusers["torch"] transformers accelerate - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 139
pip install diffusers["torch"] transformers accelerate safetensors - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/installation.md, line 150
pip install -e ".[torch]" - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/troubleshooting.md, line 104
pip install torch==2.7.1 --index-url https://download.pytorch.org/whl/cpu - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/troubleshooting.md, line 105
pip install torch-npu==2.7.1 - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/troubleshooting.md, line 242
pip install "numpy<2.0" - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/troubleshooting.md, line 253
pip install torch==2.7.1 --index-url https://download.pytorch.org/whl/cpu - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/troubleshooting.md, line 254
pip install torch-npu==2.7.1 - skills/inference/diffusers-ascend/diffusers-ascend-env-setup/references/troubleshooting.md, line 255
pip install "numpy<2.0" --force-reinstall
and 5 more places
Changes files outside its own folder
The author does not mention this.
Found in 2 places.
Safer alternatives
Low-risk skills in the same category (other) that look related. Check that one does what you need.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'diffusers-ascend-env-setup' ] || [ -L ~/.agents/skills/'diffusers-ascend-env-setup' ]; then echo 'A skill folder named diffusers-ascend-env-setup already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/ascend-ai-coding/awesome-ascend-skills' "$d" && git -C "$d" checkout --quiet '75ec89ce9d401be8ac95980e1c3f42f8d4315057' -- 'skills/inference/diffusers-ascend/diffusers-ascend-env-setup' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/inference/diffusers-ascend/diffusers-ascend-env-setup' ~/.agents/skills/'diffusers-ascend-env-setup' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'diffusers-ascend-env-setup' ~/.claude/skills/'diffusers-ascend-env-setup' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for ascend-ai-coding/awesome-ascend-skills shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/ascend-ai-coding/awesome-ascend-skills/)
Score history
| Date | Version | Score |
|---|
| 2026-11-08 | 75ec89c | 75 |