ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup
Claude Code and agent skill by ascend-ai-coding/awesome-ascend-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
HuggingFace Diffusers 环境配置指南,用于华为昇腾 NPU。覆盖 CANN 版本检测、PyTorch + torch_npu 安装、Diffusers 库安装及环境验证。当用户需要在昇腾 NPU 上配置 Diffusers 环境时使用。
Install
npx vskill@latest install ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setupSKILL.md
Diffusers 昇腾 NPU 环境配置
本 Skill 指导用户在华为昇腾 NPU 上配置 HuggingFace Diffusers 开发环境。
快速开始
4 步完成环境搭建:
安装概览
| 步骤 | 详细指南 | |
|---|---|---|
| CANN 验证 | references/cann-versions.md | |
| PyTorch + torch_npu | references/installation.md | |
| Diffusers 安装 | references/installation.md |
版本兼容性
| 组件 | 版本 | 说明 | |
|---|---|---|---|
| CANN | 8.0.RC1+ | NPU 支持必需 | |
| PyTorch | 2.1.0 - 2.8.0 | 含 torch_npu 扩展 | |
| Diffusers | 0.28.0+ | 支持 SDXL、SD3、Flux |
torch_npu 版本匹配:
- 默认安装与 PyTorch 版本相同的 torch_npu:
pip install torch-npu - 如安装失败,请参考 torch_npu Release 查看完整版本配套表
示例(CANN 8.3.RC1):
| PyTorch | torch_npu | Python | |
|---|---|---|---|
| 2.8.0 | 2.8.0 | 3.9 - 3.11 | |
| 2.7.1 | 2.7.1 | 3.9 - 3.11 | |
| 2.6.0 | 2.6.0.post3 | 3.9 - 3.11 |
环境验证
运行验证脚本:
检查项:
| 检查项 | 说明 | |
|---|---|---|
| CANN 安装 | 目录存在且环境变量已设置 | |
| PyTorch | import 成功,版本匹配 | |
| torch_npu | import 成功,NPU 可见 | |
| Diffusers | import 成功 | |
| numpy | 版本 < 2.0 |
参考资源
- 详细安装指南 - 完整的安装步骤和命令
- CANN 版本说明 - 版本检测和差异说明
- 故障排查 - 常见问题和解决方案
- Diffusers 官方文档
- 昇腾 PyTorch 扩展
- torch_npu Release
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/inference/diffusers-ascend/diffusers-ascend-env-setup/SKILL.md
Popularity
- Repository stars
- 128
- Repository forks
- 51
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup)