Triton Flash Attention V2 — Development skill for Claude Code
Implement FlashAttention v2 kernels in Triton with online softmax, causal masking, GQA head routing, multi-stream accumulators, and fused epilogues.
How to install Triton Flash Attention V2
Installs to ~/.claude/skills/anthony-maio-triton-skills-triton-flash-attention-v2/SKILL.md
mkdir -p ~/.claude/skills/anthony-maio-triton-skills-triton-flash-attention-v2 && curl -fsSL https://raw.githubusercontent.com/anthony-maio/triton-skills/HEAD/skills/triton-flash-attention-v2.md -o ~/.claude/skills/anthony-maio-triton-skills-triton-flash-attention-v2/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Triton Flash Attention V2 does
name: triton-flash-attention-v2 description: Implement FlashAttention v2 kernels in Triton with online softmax, causal masking, GQA head routing, multi-stream accumulators, and fused epilogues.
FlashAttention v2 kernels in Triton
**Targets:** Triton >= 2.1, SM70+/CDNA2+
Overview
FlashAttention v2 computes `O = softmax(QK^T / sqrt(d_k)) V` without materializing the N×N attention matrix. The kernel iterates over K/V blocks, maintains running softmax statistics `(m, l, acc)` in r
Alternatives in Development
- Connect — Fancy stream processing made operationally mundane 8608 114 1 8.6k ★
- StatsPAI — StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API 302 ★
- Claude Code SDK TS — Configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call v 206 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Triton Fused Epilogue Kernels
Fuse epilogue ops (normalization, gating, residual, activation, dropout) into Triton attention/matmul kernels
Triton Fused Normalizations
Implement fused LayerNorm, RMSNorm, and GroupNorm kernels (forward & backward) in Triton with single-pass stat
Apex Deepagents Matrix
Deterministic Mathematical Kernels, Causal Digital Twin Grounding & Compensatory Rollback Middleware for LangC
Moe Swarm
Claude Code agents that optimize CUDA/Triton kernels. DeepSeek-V3 FP8 MoE: 3.17x faster than FlashInfer's CUTL
Kernel Ladder
Agent harness that writes and verifies GPU kernels. Claude proposes Triton kernels; a fixed verifier gates cor
Vllm Turing
Turing (sm75) speedups for vLLM: Qwen3.8-27B W8A8 on 2x RTX 2080 Ti with custom CUDA kernels, long-context ver
Related Agents
Fk Kernel Engineer
Writes and integrates GPU kernels (Triton, TileLang, CuTe DSL, CUDA C++, CUDA graphs, torch.compile) under can
Glm
Hands a well-scoped coding task (implement, refactor, write tests, fix a bug) to GLM 5.3 Flash via OpenRouter
Oranges
Root cause debugging agent. Uses minimize-then-localize methodology, multi-signal evidence collection, and cau