← All skills
diffusers-ascend-weight-prep
80 / 100 · Low risk
Fine to try.
By ascend-ai-coding/awesome-ascend-skills (GitHub) · other · 184 stars · scanned at commit 75ec89c
Diffusers 模型权重准备工具,用于华为昇腾 NPU。支持从 HuggingFace 和 ModelScope 下载模型权重,以及基于 model_index.json 和各组件 config.json 生成假权重用于业务验证。当用户需要下载 Diffusers 模型权重或生成测试权重时使用。
Works with any agent that supports SKILL.md skills.
What this skill can do
Downloads and installs other software
The author does not mention this.
Found in 11 places.
Show 8 more
- skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/SKILL.md, line 96
| modelscope | `pip install modelscope` | ModelScope 下载 | - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/SKILL.md, line 97
| torch | `pip install torch` | 假权重生成 | - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/SKILL.md, line 98
| diffusers | `pip install diffusers` | Pipeline 模型实例化 | - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/SKILL.md, line 99
| transformers | `pip install transformers` | text_encoder 实例化 | - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 48
"Error: 'hf' command not found. Install with: pip install -U huggingface_hub", - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 97
"Error: 'modelscope' command not found. Install with: pip install modelscope", - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/validate_on_npu.sh, line 23
pip install -U huggingface_hub - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/validate_on_npu.sh, line 28
pip install modelscope
Runs commands on your computer
The author does not mention this.
Found in 12 places.
Show 9 more
- skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/SKILL.md, line 71
python scripts/generate_fake_weights.py from-local ./model_metadata_dir -o ./fake_weights --dtype bfloat16 - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 17
subprocess.run( - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 20
stdout=subprocess.DEVNULL, - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 21
stderr=subprocess.DEVNULL, - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 24
except subprocess.CalledProcessError: - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 73
result = subprocess.run(cmd, env=env, check=True) - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 76
except subprocess.CalledProcessError as e: - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 115
result = subprocess.run(cmd, check=True) - skills/inference/diffusers-ascend/diffusers-ascend-weight-prep/scripts/download_weights.py, line 118
except subprocess.CalledProcessError as e:
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'diffusers-ascend-weight-prep' ] || [ -L ~/.agents/skills/'diffusers-ascend-weight-prep' ]; then echo 'A skill folder named diffusers-ascend-weight-prep 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-weight-prep' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/inference/diffusers-ascend/diffusers-ascend-weight-prep' ~/.agents/skills/'diffusers-ascend-weight-prep' && 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-weight-prep' ~/.claude/skills/'diffusers-ascend-weight-prep' (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 | 100 |