What problem does it solve? Standard transformer attention consumes O(N²) memory and becomes prohibitively slow or runs out of GPU memory when training or running inference on long sequences, blocking work with long-context models. ## Core Features & Use Cases - PyTorch Native SDPA Integration: Enable Flash Attention through torch.nn.functional.scaled_dot_product_attention with step-by-step checklists for version checks, backend forcing, profiling, and accuracy verification. - flash-attn Library Workflows: Install and configure the flash-attn library for advanced features including multi-query attention, sliding window attention, and causal masking. - H100 FP8 Optimization: Run FlashAttention-3 with float8_e4m3fn inputs on Hopper GPUs for up to 1.2 PFLOPS throughput. - Use Case: A team fine-tuning Llama 2 7B hits CUDA OOM at 8K context with standard attention; following this Skill's workflow they enable Flash Attention 2 via HuggingFace's attn_implementation flag and fit training within a single A100. ## Quick Start Enable Flash Attention in my PyTorch transformer model and verify the speedup and accuracy against my baseline attention implementation.