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.

nota-america cab4583 3 files · 23.9 KB Updated

File contents

nota-america/forgecat-agent-profiles/tree/main/profiles/orchestra-research/ai-research-skills/for-codex/.agents/skills/ai-research-skills/10-optimization/flash-attention commit cab4583169

Frequently asked questions

npx skillmds@latest add nota-america/optimizing-attention-flash