Skip to main content
Run any Skill in Manus
with one click

triton-ascend-example-attention

Stars5
Forks1
UpdatedJune 6, 2026 at 17:10

A5(Ascend950)Flash Attention 的完整 Triton-Ascend 实现示例。Cube/Vector 串行交替:Cube 跑 logits = Q·K^T 与 partial = P·V 两段 matmul + fixpipe;Vector 跑在线 softmax + flash 累加更新;通过 3 个 sync_block 事件(id 0/1/2,PIPE_FIX/V/MTE 配对)协调。可参考此代码结构生成 A5 串行 attention 类算子。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly