Registry / hashgraph-online

hashgraph-online/awesome-codex-plugins/optimizing-attention-flash

Enables Flash Attention for transformer models using PyTorch native scaled_dot_product_attention (PyTorch 2.2+) or the flash-attn library, including multi-query attention, sliding window attention, and FP8 on H100 (FlashAttention-3). Covers profiling speedup, checking accuracy against a baseline, and troubleshooting install and GPU support errors. Use when training or running transformers on long sequences (over 512 tokens), when standard attention runs out of GPU memory, when attention is the i

Agent skill · version 0.0.0-main.1794342809.g347aedf · from hashgraph-online/awesome-codex-plugins

Install

npx yarkr-cli add skill:hashgraph-online/awesome-codex-plugins/optimizing-attention-flash

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:hashgraph-online/awesome-codex-plugins/optimizing-attention-flash
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:hashgraph-online/awesome-codex-plugins/optimizing-attention-flash

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:hashgraph-online/awesome-codex-plugins/optimizing-attention-flash

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.