Agent skill

Diffusers Ascend Env Setup

by ascend-ai-coding in ascend-ai-coding/awesome-ascend-skills

HuggingFace Diffusers 环境配置指南,用于华为昇腾 NPU。覆盖 CANN 版本检测、PyTorch + torchnpu 安装、Diffusers 库安装及环境验证。当用户需要在昇腾 NPU 上配置 Diffusers 环境时使用。

No licenceAuto-check passedAI & LLM Engineering

Install Diffusers Ascend Env Setup

skills CLI
$ npx skills add ascend-ai-coding/awesome-ascend-skills --skill diffusers-ascend-env-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ascend-ai-coding/awesome-ascend-skills diffusers-ascend-env-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ascend-ai-coding/awesome-ascend-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/inference/diffusers-ascend/diffusers-ascend-env-setup .claude/skills/diffusers-ascend-env-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
diffusers-ascend-env-setup
GitHub stars
174
Token cost
~566 tokens
SKILL.md length
110 words
Files
5 (incl. scripts, references)
Skills in repo
69
Repo updated
First seen
Licence
None found

At a glance

HuggingFace Diffusers 环境配置指南,用于华为昇腾 NPU。覆盖 CANN 版本检测、PyTorch + torchnpu 安装、Diffusers 库安装及环境验证。当用户需要在昇腾 NPU 上配置 Diffusers 环境时使用。

  • Tasks that involve Diffusion and image models
  • SKILL.md covers 快速开始, 安装概览, 版本兼容性 and 环境验证, plus 1 more section
  • Runs Python scripts from its folder; calls pip and python; reaches download.pytorch.org
  • Tasks that involve Deep learning

What it does

Diffusers Ascend Env Setup is an agent skill from ascend-ai-coding/awesome-ascend-skills. HuggingFace Diffusers 环境配置指南,用于华为昇腾 NPU。覆盖 CANN 版本检测、PyTorch + torchnpu 安装、Diffusers 库安装及环境验证。当用户需要在昇腾 NPU 上配置 Diffusers 环境时使用。

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/cann-versions.md`, `references/installation.md` and `references/troubleshooting.md`).

It sits in AI & LLM Engineering, covering Diffusion and image models and Deep learning. It works with PyTorch and Hugging Face. The repository describes itself as: A comprehensive knowledge base for Huawei Ascend NPU development, structured as distributed Agent Skills. https://ascend-ai-coding.github.io/awesome-ascend-skills/.

When your agent uses it

  • Tasks that involve Diffusion and image models
  • Tasks that involve Deep learning

Example prompts

  • “/diffusers-ascend-env-setup”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 62a4ecb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • download.pytorch.org

    Also links to:

    • gitcode.com
    • huggingface.co
    • hiascend.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Diffusers Ascend Env Setup loads about 566 tokens when it runs, and up to ~5.5k if it reads all its reference files. Until then it costs about 39 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~566
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 110 words (~566 tokens).

“本 Skill 指导用户在华为昇腾 NPU 上配置 HuggingFace Diffusers 开发环境。”

— opening of SKILL.md by ascend-ai-coding
name
diffusers-ascend-env-setup
keywords
diffusers, pytorch, torch_npu, cann, npu

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (scripts, references) in skills/inference/diffusers-ascend/diffusers-ascend-env-setup of ascend-ai-coding/awesome-ascend-skills.

  • SKILL.md
  • references/cann-versions.md
  • references/installation.md
  • references/troubleshooting.md
  • scripts/validate_environment.py

Open the folder on GitHubat commit 62a4ecb

Compare with similar skills

Diffusers Ascend Env Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Diffusers Ascend Env Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diffusers Ascend Env Setup this skillascend-ai-coding/awesome-ascend-skills174—~566Automated safety check: PassNone
Discover MLrand/cc-polymath1811 repos~574Automated safety check: PassMIT
Ray Train Distributed TrainingOrchestra-Research/AI-Research-SKILLs13k3 repos~2.7kAutomated safety check: PassMIT
Nvflare Convert HuggingfaceNVIDIA/skills3.5k—~3.5kAutomated safety check: PassApache-2.0
Quark Torch Ptqamd/Quark181—~2.3kAutomated safety check: PassMIT
Tao Port Huggingface ModelNVIDIA/skills3.5k—~4.5kAutomated safety check: NotesApache-2.0

Similar skills

  • Discover ML

    rand/cc-polymath

    Automatically discover machine learning and AI skills when working with machine learning, PyTorch, training, inference, RAG, embeddings, fine-tuning, LLM, DSPy, HuggingFace, or diffusion models.

    181 GitHub starsUsed in 1 repo~574 tokens
    AI & LLM EngineeringAuto-check passed
  • Ray Train Distributed Training

    Orchestra-Research/AI-Research-SKILLs

    Scales PyTorch, TensorFlow and Hugging Face training from a single GPU to multi-node clusters with Ray Train, including Ray Tune sweeps and checkpoint recovery.

    13k GitHub starsUsed in 3 repos~2.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Convert existing Hugging Face Transformers Trainer or TRL SFTTrainer training code into an NVFLARE federated job using flare.patch(trainer), local validation, and job export; use when the user names…

    3.5k GitHub stars~3.5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Runs an end-to-end AMD Quark post-training quantization workflow for PyTorch / Hugging Face LLMs: inspect a Hub or local model, choose a quantization plan, create reproducible artifacts, request…

    181 GitHub stars~2.3k tokensUpdated 9 days ago
    AI & LLM EngineeringAuto-check passed
  • Official

    Integrate a HuggingFace Computer Vision model into the NVIDIA TAO Toolkit ecosystem (tao-core config, tao-pytorch trainer, tao-deploy TensorRT pipeline).

    3.5k GitHub stars~4.5k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Hugging Face Accelerate

    Orchestra-Research/AI-Research-SKILLs

    Adds distributed and mixed-precision training to a PyTorch script with a few Accelerate lines, then launches it on one GPU, many GPUs or DeepSpeed and FSDP setups.

    13k GitHub starsUsed in 6 repos~2.1k tokens
    AI & LLM EngineeringAuto-check passed

More from ascend-ai-coding/awesome-ascend-skills

All 69 skills in this repo
  • Ascend Dmi

    ascend-ai-coding/awesome-ascend-skills

    当用户需要对华为昇腾 NPU 进行硬件层面的管理、测试或诊断时使用此 skill。典型场景: - 查看 NPU 卡的状态、温度、利用率 - 测试内存带宽(h2d/d2h/d2d/p2p) - 跑算力/功耗基准测试(TFLOPS、TOPS) - 诊断 NPU 硬件故障或做健康检查 - 对 NPU 卡做压力测试(aicore、内存) - 复位/恢复卡住或异常的 NPU 卡 典型用户问题(即使不提…

    174 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Ascendc

    ascend-ai-coding/awesome-ascend-skills

    End-to-end AscendC custom operator development for Ascend NPU in an ascend-kernel (csrc/ops + build.sh + torchnpu PyTorch custom op) project.

    174 GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Atc Model Converter

    ascend-ai-coding/awesome-ascend-skills

    Complete toolkit for Huawei Ascend NPU model conversion and end-to-end inference adaptation.

    174 GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • External Cannbot Ops Pypto Op Develop

    ascend-ai-coding/awesome-ascend-skills

    当需要编写 PyPTO 算子实现时使用此 skill。基于需求规格、设计方案和参考实现,生成完整可运行的 PyPTO 算子实现与配套测试、文档。Triggers: 实现算子、写 kernel、编写实现、写 impl、算子编码、开始编码、code the op、写 test、生成测试、写实现代码、op develop、kernel 实现。

    174 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • External Gitcode Ascend Megatron Change Analyzer

    ascend-ai-coding/awesome-ascend-skills

    Analyze official Megatron-LM commits, PRs, and branch change sets to identify feature evolution, candidate breaking changes, and migration-relevant events.

    174 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • External Gitcode Ascend Megatron Commit Tracker

    ascend-ai-coding/awesome-ascend-skills

    Track and normalize change requests against the official Megatron-LM repository by branch, PR, commit, commit range, or time window.

    174 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about Diffusers Ascend Env Setup

What does Diffusers Ascend Env Setup do?

HuggingFace Diffusers 环境配置指南,用于华为昇腾 NPU。覆盖 CANN 版本检测、PyTorch + torchnpu 安装、Diffusers 库安装及环境验证。当用户需要在昇腾 NPU 上配置 Diffusers 环境时使用。. Diffusers Ascend Env Setup is an agent skill from ascend-ai-coding/awesome-ascend-skills.

When should I use Diffusers Ascend Env Setup?

Diffusers Ascend Env Setup fits situations like: tasks that involve Diffusion and image models; tasks that involve Deep learning.

How do I install Diffusers Ascend Env Setup in Claude Code?

Run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill diffusers-ascend-env-setup -a claude-code`. Or copy the skill folder (skills/inference/diffusers-ascend/diffusers-ascend-env-setup in ascend-ai-coding/awesome-ascend-skills) into .claude/skills/diffusers-ascend-env-setup in your project. Claude Code loads it when a task matches its description.

How do I install Diffusers Ascend Env Setup in Codex?

Run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill diffusers-ascend-env-setup -a codex`. Or copy the skill folder (skills/inference/diffusers-ascend/diffusers-ascend-env-setup in ascend-ai-coding/awesome-ascend-skills) into .agents/skills/diffusers-ascend-env-setup in your project. Codex loads it when a task matches its description.

Can I use Diffusers Ascend Env Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill diffusers-ascend-env-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diffusers-ascend-env-setup, .gemini/skills/diffusers-ascend-env-setup, .github/skills/diffusers-ascend-env-setup and .opencode/skills/diffusers-ascend-env-setup in your project.

What does Diffusers Ascend Env Setup need to run?

Going by SKILL.md and its folder, Diffusers Ascend Env Setup needs Python for the scripts in its folder and the command-line tools its instructions call (pip and python). Our summary lists: Python 3.

Does Diffusers Ascend Env Setup access the network?

SKILL.md names 4 domains. In commands or code: download.pytorch.org; the agent is likely to contact it when it follows the instructions. As links in the text: gitcode.com, huggingface.co and hiascend.com. This is read from the text; nothing was executed.

Is Diffusers Ascend Env Setup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Diffusers Ascend Env Setup use?

No licence was found for Diffusers Ascend Env Setup or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Diffusers Ascend Env Setup use?

About 566 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to Diffusers Ascend Env Setup?

Skills that share tags, products or a category with Diffusers Ascend Env Setup: Discover ML (rand/cc-polymath, 181 stars), Ray Train Distributed Training (Orchestra-Research/AI-Research-SKILLs, 13k stars), Nvflare Convert Huggingface (NVIDIA/skills, 3.5k stars) and Quark Torch Ptq (amd/Quark, 181 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diffusers Ascend Env Setup?

ascend-ai-coding (a GitHub organization) maintains it in ascend-ai-coding/awesome-ascend-skills, which has 174 GitHub stars. The repository holds 69 skills in this directory. The repository was last updated on October 7, 2026.

Source: ascend-ai-coding/awesome-ascend-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.