Giverny

Optimization Flash Attention

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

by davila7★ 34,480AI, LLM & MCP

What Optimization Flash Attention 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 Optimization Flash Attention in Claude Code

Giverny gives you a ready prompt with the exact install command from davila7/claude-code-templates. 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 davila7/claude-code-templates and copy the cli-tool/components/skills/ai-research/optimization-flash-attention folder into ~/.claude/skills/.

How to use it

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

More Claude skills for aI, LLM & MCP