tommy-yw/runbookhermes/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.
Agent skill · version 0.0.0-main.1794521193.g7fd2b9a · from Tommy-yw/RunbookHermes
Install
npx yarkr-cli add skill:tommy-yw/runbookhermes/optimizing-attention-flashWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:tommy-yw/runbookhermes/optimizing-attention-flash
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:tommy-yw/runbookhermes/optimizing-attention-flashOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:tommy-yw/runbookhermes/optimizing-attention-flashWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.