diffusers-ascend-env-setup

diffusers-ascend-env-setup is a skill for Claude Code from ascend-ai-coding/awesome-ascend-skills. It costs 71 tokens per session (911 once invoked), scanned A, original, no licence file.

An environment setup guide for Hugging Face Diffusers, a library for working with image and other generative models, on Huawei Ascend NPU hardware. It covers checking CANN, installing PyTorch and torchnpu, installing Diffusers, and verifying the setup.

In plain words
What is it for?
Use it to configure and test a Diffusers development environment on Huawei Ascend NPUs. An NPU is a processor designed to accelerate machine-learning workloads.
Why use it?
It helps avoid incompatible versions and incomplete installations when preparing an Ascend NPU machine for Diffusers. The verification steps show whether the environment is ready.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the diffusers-ascend-skills plugin — 3 skills shipped together , and of ascend-inference

Good fit Use it to configure and test a Diffusers development environment on Huawei Ascend NPUs. An NPU is a processor designed to accelerate machine-learning workloads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ascend-ai-coding/awesome-ascend-skills --skill diffusers-ascend-env-setup
Clone the repo
git clone --depth 1 https://github.com/ascend-ai-coding/awesome-ascend-skills

Made for: Claude Code.

Or install diffusers-ascend-skills, the plugin that ships this one along with the rest of its 3 skills.

Its marketplace also offers this one on its own, as the plugin diffusers-ascend-env-setup — /plugin install diffusers-ascend-env-setup after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diffusers-ascend-env-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup/github.svg)](https://agentmods.dev/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup)
Your own site
<a href="https://agentmods.dev/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup"><img src="https://agentmods.dev/badge/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diffusers-ascend-env-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup"><img src="https://agentmods.dev/badge/skills/ascend-ai-coding/awesome-ascend-skills/diffusers-ascend-env-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00911
Opus 5.5 $0.00028 $0.00364
Sonnet 5.5 $0.00014 $0.00182
Haiku 4.5 $0.00007 $0.00091

Measured 1mo ago against content hash ca33c7a7dda6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diffusers-ascend-env-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_environment.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/inference/diffusers-ascend/diffusers-ascend-env-setup/SKILL.md · 93 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 93 lines · 71 tokens per session scan A ca33c7a7dda6

Subscribe to this mod's changes

diffusers-ascend-env-setup is a skill published in the GitHub repository ascend-ai-coding/awesome-ascend-skills (177 stars, last pushed today), with no licence file. It adds 71 tokens to every session and 911 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

atc-model-converter

Complete toolkit for Huawei Ascend NPU model conversion and end-to-end inference adaptation. Workflow 1 auto-discovers input shapes and parameters from user source code. Workflow 2 exports PyTorch models to ONNX. Workflow 3 converts ONNX to .om via ATC with multi-CANN version support. Workflow 4 adapts the user's full…

Ascend/agent-skills · 142 tokens

ascend-transformer-boost

An index of skills for developing with Huawei’s Ascend Transformer Boost (ATB) library. It groups eight skills covering CANN setup, ATB testing, operator replacement design, and migration to ACLNN for Ascend NPU development.

Ascend/agent-skills · 90 tokens

spark-environment-setup

Set up a working ML training/inference environment on NVIDIA DGX Spark (GB10, aarch64, CUDA 13). Use when installing PyTorch/Unsloth/TRL/vLLM on DGX Spark, hitting libcudart or wheel-ABI errors on aarch64, or choosing between NGC containers and bare pip installs.

wshobson/agents · 76 tokens

llama-cpp

Runs LLM inference on CPU, Apple Silicon, and consumer GPUs without NVIDIA hardware. Use for edge deployment, M1/M2/M3 Macs, AMD/Intel GPUs, or when CUDA is unavailable. Supports GGUF quantization (1.5-8 bit) for reduced memory and 4-10× speedup vs PyTorch on CPU.

davila7/claude-code-templates · 76 tokens

amc-run-rtsp-calibration

Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.

NVIDIA/skills · 59 tokens

deepstream-import-vision-model

Use this skill to bring a supported object-detection vision model from HuggingFace or NVIDIA NGC into an NVIDIA DeepStream pipeline with end-to-end automation: ONNX download, SafeTensors export, TRT engine build, custom nvinfer bbox parser, multi-stream benchmark, and PDF report. Object detection models only.

NVIDIA/skills · 72 tokens