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.
$npx -y skills add aivrar/portable-hermes-agent --skill flash-attentionInstalls into the current project.
Run `npx skills use "https://github.com/aivrar/portable-hermes-agent" --skill "aivrar/portable-hermes-agent/flash-attention"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/aivrar/portable-hermes-agent" that are relevant to the current task. Run `npx skills add "https://github.com/aivrar/portable-hermes-agent"` and select the relevant skills, then follow their instructions.