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.

braxtonROSE4 c9ad4f4 3 files · 23.9 KB Updated

File contents

braxtonROSE4/zorro-agent/tree/main/optional-skills/mlops/flash-attention commit c9ad4f45a3

Frequently asked questions

npx skillmds@latest add braxtonrose4/optimizing-attention-flash