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.

WyattJY Updated

File contents

WyattJY/codex-skills/tree/main/skills/t7-shield-full/hermes/hermes-agent/optional-skills/mlops/flash-attention commit d20e07ba0c

Frequently asked questions

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