Agent skill

External Cannbot Model Model Infer Fusion

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

基于 PyTorch 框架的昇腾 NPU 模型推理融合算子优化技能。分析模型代码,识别可替换为 torchnpu 融合算子的计算模式,生成替换方案。触发场景:torchnpu 融合算子替换、MoE/Attention/FFN/Norm 等模块的推理算子适配、torchnpu API 使用咨询。基于仓库已有模型的融合算子经验,按计算语义推荐最佳方案。

No licenceAuto-check passedAI & LLM Engineering

Install External Cannbot Model Model Infer Fusion

skills CLI
$ npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-cannbot-model-model-infer-fusion -a claude-code

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

GitHub CLI
$ gh skill install ascend-ai-coding/awesome-ascend-skills external-cannbot-model-model-infer-fusion --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/external/cannbot/model/model-infer-fusion .claude/skills/external-cannbot-model-model-infer-fusion && 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
external-cannbot-model-model-infer-fusion
GitHub stars
174
Token cost
~1.7k tokens
SKILL.md length
282 words
Files
7 (incl. scripts, references)
Skills in repo
70
Repo updated
First seen
Licence
None found

At a glance

基于 PyTorch 框架的昇腾 NPU 模型推理融合算子优化技能。分析模型代码,识别可替换为 torchnpu 融合算子的计算模式,生成替换方案。触发场景:torchnpu 融合算子替换、MoE/Attention/FFN/Norm 等模块的推理算子适配、torchnpu API 使用咨询。基于仓库已有模型的融合算子经验,按计算语义推荐最佳方案。

  • Works in 7 steps: 完成前置改造(如需要) → 替换该模块的算子代码 → 验证:精度对比(融合前后输出对齐) → …
  • Tasks that involve Deep learning
  • SKILL.md covers 工作流程 and 参考文档索引
  • Runs Python scripts from its folder; calls python3

What it does

External Cannbot Model Model Infer Fusion is an agent skill from ascend-ai-coding/awesome-ascend-skills. 基于 PyTorch 框架的昇腾 NPU 模型推理融合算子优化技能。分析模型代码,识别可替换为 torchnpu 融合算子的计算模式,生成替换方案。触发场景:torchnpu 融合算子替换、MoE/Attention/FFN/Norm 等模块的推理算子适配、torchnpu API 使用咨询。基于仓库已有模型的融合算子经验,按计算语义推荐最佳方案。

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/module-attention-gqa.md`, `references/module-attention-mla-absorb.md` and `references/module-attention-mla-indexer.md`).

It sits in AI & LLM Engineering, covering Deep learning. It works with PyTorch. 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 Deep learning

Example prompts

  • “/external-cannbot-model-model-infer-fusion”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 完成前置改造(如需要)
  2. 替换该模块的算子代码
  3. 验证:精度对比(融合前后输出对齐)
  4. 验证:性能对比(确认有收益)
  5. 若验证通过 → 保留,继续下一个模块
  6. 若验证失败 → 回退改动,重新分析该模块
  7. 记录该模块的优化报告:精度对比结果、性能对比结果、日志或报错路径

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:

    • python3

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

  • Network

    Links to these hosts (documentation or services it may open):

    • gitcode.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

External Cannbot Model Model Infer Fusion loads about 1.7k tokens when it runs, and up to ~5.9k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 282 words of instructions outside code blocks.

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

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 282 words (~1,655 tokens).

“分析 PyTorch 模型代码中的计算模式,匹配 torch_npu 融合算子进行替换优化。基于 torch_npu 本地 docstring 查询脚本(scripts/torch_npu_query.py)和仓库已有模型的融合算子使用经验,按模块逐一分析、匹配、替换、验证。”

— opening of SKILL.md by ascend-ai-coding
name
external-cannbot-model-model-infer-fusion
original-name
model-infer-fusion
synced-from
https://gitcode.com/cann/cannbot-skills
synced-date
2026-05-26
synced-commit
ac5bbd2b4cf427d011874e11f8d1e8b1bef66eda
license
UNKNOWN

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (scripts, references) in external/cannbot/model/model-infer-fusion of ascend-ai-coding/awesome-ascend-skills.

  • SKILL.md
  • references/module-attention-gqa.md
  • references/module-attention-mla-absorb.md
  • references/module-attention-mla-indexer.md
  • references/moe-fusion-reference.md
  • references/rotary-embedding-pattern.md
  • scripts/torch_npu_query.py

Open the folder on GitHubat commit 62a4ecb

Compare with similar skills

External Cannbot Model Model Infer Fusion 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.

External Cannbot Model Model Infer Fusion compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
External Cannbot Model Model Infer Fusion this skillascend-ai-coding/awesome-ascend-skills174—~1.7kAutomated safety check: PassNone
Add Uint Supportpytorch/pytorch104k2 repos~2.3kAutomated safety check: PassCustom licence
CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs13k7 repos~1.7kAutomated safety check: PassMIT
Add Torch Shapes Examplefacebook/pyrefly7.1k—~1.3kAutomated safety check: PassMIT
MUSA GPU Training Optimizeropen-infra-skills/infra-skills141—~1.7kAutomated safety check: PassApache-2.0
Ghstack CIpytorch/pytorch104k—~1.4kAutomated safety check: PassCustom licence

Similar skills

  • Add Uint Support

    pytorch/pytorch

    Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.

    104k GitHub starsUsed in 2 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • CLIP Image-Text Matching

    Orchestra-Research/AI-Research-SKILLs

    Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.

    13k GitHub starsUsed in 7 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Torch Shapes Example

    facebook/pyrefly

    Official

    A skill your agent uses when adding a new PyTorch model to Pyrefly's shape-tracking example corpus under tensor-shapes/pyrefly-torch-stubs/examples — i.e.

    7.1k GitHub stars~1.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • MUSA GPU Training Optimizer

    open-infra-skills/infra-skills

    Profiles, benchmarks and tunes AI training workloads on Moore Threads MUSA GPUs with a measurement-first process that keeps model behavior unchanged.

    141 GitHub stars~1.7k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Ghstack CI

    pytorch/pytorch

    Manage CI for PyTorch ghstack stacks by running CI where its results are useful now and deferring other PRs with [no-ci].

    104k GitHub stars~1.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Depth Estimation

    SharpAI/DeepCamera

    Real-time depth map privacy transforms using Depth Anything v2 (CoreML + PyTorch)

    3.1k GitHub stars~945 tokensUpdated 23 days ago
    AI & LLM EngineeringAuto-check passed

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

All 70 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

Works with

Questions about External Cannbot Model Model Infer Fusion

What does External Cannbot Model Model Infer Fusion do?

基于 PyTorch 框架的昇腾 NPU 模型推理融合算子优化技能。分析模型代码,识别可替换为 torchnpu 融合算子的计算模式,生成替换方案。触发场景:torchnpu 融合算子替换、MoE/Attention/FFN/Norm 等模块的推理算子适配、torchnpu API 使用咨询。基于仓库已有模型的融合算子经验,按计算语义推荐最佳方案。. External Cannbot Model Model Infer Fusion is an agent skill from ascend-ai-coding/awesome-ascend-skills.

When should I use External Cannbot Model Model Infer Fusion?

External Cannbot Model Model Infer Fusion fits situations like: tasks that involve Deep learning.

How do I install External Cannbot Model Model Infer Fusion in Claude Code?

Run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-cannbot-model-model-infer-fusion -a claude-code`. Or copy the skill folder (external/cannbot/model/model-infer-fusion in ascend-ai-coding/awesome-ascend-skills) into .claude/skills/external-cannbot-model-model-infer-fusion in your project. Claude Code loads it when a task matches its description.

How do I install External Cannbot Model Model Infer Fusion in Codex?

Run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-cannbot-model-model-infer-fusion -a codex`. Or copy the skill folder (external/cannbot/model/model-infer-fusion in ascend-ai-coding/awesome-ascend-skills) into .agents/skills/external-cannbot-model-model-infer-fusion in your project. Codex loads it when a task matches its description.

Can I use External Cannbot Model Model Infer Fusion 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 external-cannbot-model-model-infer-fusion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/external-cannbot-model-model-infer-fusion, .gemini/skills/external-cannbot-model-model-infer-fusion, .github/skills/external-cannbot-model-model-infer-fusion and .opencode/skills/external-cannbot-model-model-infer-fusion in your project.

What does External Cannbot Model Model Infer Fusion need to run?

Going by SKILL.md and its folder, External Cannbot Model Model Infer Fusion needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does External Cannbot Model Model Infer Fusion access the network?

SKILL.md names 1 domain. As links in the text: gitcode.com. This is read from the text; nothing was executed.

Is External Cannbot Model Model Infer Fusion 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 External Cannbot Model Model Infer Fusion use?

No licence was found for External Cannbot Model Model Infer Fusion or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does External Cannbot Model Model Infer Fusion use?

About 1.7k tokens (SKILL.md is roughly 6.6k 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.3k tokens, read only when the agent opens those files.

What are the alternatives to External Cannbot Model Model Infer Fusion?

Skills that share tags, products or a category with External Cannbot Model Model Infer Fusion: Add Uint Support (pytorch/pytorch, 104k stars), CLIP Image-Text Matching (Orchestra-Research/AI-Research-SKILLs, 13k stars), Add Torch Shapes Example (facebook/pyrefly, 7.1k stars) and MUSA GPU Training Optimizer (open-infra-skills/infra-skills, 141 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains External Cannbot Model Model Infer Fusion?

ascend-ai-coding (a GitHub organization) maintains it in ascend-ai-coding/awesome-ascend-skills, which has 174 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on October 10, 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.