optimize-pa-decode-gluon

Optimize Triton/Gluon paged attention decode kernels for AMD GPUs.

2|3|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/fsx950223/claude-stuff --skill optimize-pa-decode-gluon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimize-pa-decode-gluon
Source: https://github.com/fsx950223/claude-stuff/tree/main/.claude/skills/optimize-pa-decode-gluon
Command: npx skills add https://github.com/fsx950223/claude-stuff --skill optimize-pa-decode-gluon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in the paged attention decode implementation for AMD GPUs, aiming to significantly speed up AI model inference.

Core Features & Use Cases

  • Kernel Optimization: Analyzes and optimizes Triton/Gluon kernels for memory access, compute efficiency, and instruction selection.
  • API-Level Tuning: Identifies and rectifies inefficiencies in the Python API wrapper for kernel dispatch and tensor management.
  • Use Case: When running large language models on AMD MI300X or MI350 hardware, this Skill can be used to fine-tune the paged attention kernels, leading to faster response times and higher throughput.

Quick Start

Use the optimize-pa-decode-gluon skill to analyze and optimize the paged attention decode implementation in aiter/ops/triton/gluon/pa_decode_gluon.py.

Frequently Asked Questions about optimize-pa-decode-gluon

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize paged attention decode performance on AMD GPUs?

Paged attention decode performance on AMD GPUs is optimized by analyzing Triton/Gluon kernels to improve memory access patterns, compute efficiency, and instruction selection for CDNA3 and CDNA4 architectures. This Skill rectifies API-level inefficiencies in tensor management and kernel dispatch to reduce inference latency.

Why is my paged attention kernel slow during AI model inference on MI300X?

Your paged attention kernel may be slow due to suboptimal memory access patterns, inefficient loop structures, or improper data type usage in the Triton/Gluon implementation. This Skill identifies and rectifies these compute inefficiencies alongside Python API wrapper overhead to increase throughput.

What's the best way to tune Triton kernels for paged attention on AMD CDNA architectures?

Tuning Triton kernels for AMD CDNA involves optimizing memory access, compute efficiency, and instruction selection within the Gluon implementation. This Skill targets the pa_decode_gluon.py script to fine-tune these parameters, achieving faster response times for large language models on MI300X and MI350 hardware.

Does this paged attention optimization work with both CDNA3 and CDNA4 GPU architectures?

Yes, this paged attention decode optimization specifically targets AMD GPU architectures including CDNA3 and CDNA4. It analyzes data type optimizations and loop structures tailored to these hardware platforms to maximize compute efficiency and increase inference throughput.

Can I use this to fix Python API inefficiencies in my Triton kernel dispatch?

Yes, this Skill identifies and rectifies Python API wrapper inefficiencies related to kernel dispatch and tensor management. By streamlining the API layer alongside the underlying Triton/Gluon kernel optimizations, it ensures faster dispatch and reduced latency during paged attention decode.

When should I optimize the pa_decode_gluon implementation for my inference workloads?

You should optimize the pa_decode_gluon implementation when running large language models on AMD MI300X or MI350 hardware and experiencing high latency or low throughput. This Skill fine-tunes paged attention kernels to address memory access and compute bottlenecks for demanding inference workloads.