Optimizing Attention Flash

Optimizes transformer attention with Flash Attention for 2-4x speedup and 10-20x memory reduction. Use when training/running transformers with long sequences (>512 tokens), encountering GPU memory issues with attention, or need faster inference. Supports PyTorch native SDPA, flash-attn library, H100 FP8, and sliding window attention.

aniruddhaadak80 Updated 0 repo stars
Herclew Agent

File contents

aniruddhaadak80/herclew commit eca9e282b3

Frequently asked questions

npx get-skill add aniruddhaadak80/optimizing-attention-flash