Giverny

Optimizing Attention Flash

Optimizes transformer attention with Flash Attention for 2-4x speedup and 10-20x memory reduction.

by Orchestra-Research★ 14,933AI, LLM & MCP

What Optimizing Attention Flash does

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.

How to install Optimizing Attention Flash in Claude Code

Giverny gives you a ready prompt with the exact install command from Orchestra-Research/AI-Research-SKILLs. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone Orchestra-Research/AI-Research-SKILLs and copy the 10-optimization/flash-attention folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Optimizing Attention Flash on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the optimizing-attention-flash skill on my current project.”

More Claude skills for aI, LLM & MCP