Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jozrftamson/hermes-figma-prompt-hub --skill flash-attentiongit clone --depth 1 https://github.com/jozrftamson/hermes-figma-prompt-hubWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jozrftamson/hermes-figma-prompt-hub/flash-attention)<a href="https://agentmods.dev/skills/jozrftamson/hermes-figma-prompt-hub/flash-attention"><img src="https://agentmods.dev/badge/skills/jozrftamson/hermes-figma-prompt-hub/flash-attention/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jozrftamson/hermes-figma-prompt-hub/flash-attention"><img src="https://agentmods.dev/badge/skills/jozrftamson/hermes-figma-prompt-hub/flash-attention.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00014 | $0.03058 |
| Opus 5.5 | $0.00006 | $0.01223 |
| Sonnet 5.5 | $0.00003 | $0.00612 |
| Haiku 4.5 | $0.00001 | $0.00306 |
Grade A, and why
flash-attention scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to flash-attention — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 375 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flash Attention - Fast Memory-Efficient Attention
Quick start
Flash Attention provides 2-4x speedup and 10-20x memory reduction for transformer attention through IO-aware tiling and recomputation.
PyTorch native (easiest, PyTorch 2.2+):
import torch
import torch.nn.functional as F
q = torch.randn(2, 8, 512, 64, device='cuda', dtype=torch.float16) # [batch, heads, seq, dim]
k = torch.randn(2, 8, 512, 64, device='cuda', dtype=torch.float16)
v = torch.randn(2, 8, 512, 64, device='cuda', dtype=torch.float16)
# Automatically uses Flash Attention if available
out = F.scaled_dot_product_attention(q, k, v)
flash-attn library (more features):
pip install flash-attn --no-build-isolation
from flash_attn import flash_attn_func
# q, k, v: [batch, seqlen, nheads, headdim]
out = flash_attn_func(q, k, v, dropout_p=0.0, causal=True)
Common workflows
Workflow 1: Enable in existing PyTorch model
Copy this checklist:
Flash Attention Integration:
- [ ] Step 1: Check PyTorch version (≥2.2)
- [ ] Step 2: Enable Flash Attention backend
- [ ] Step 3: Verify speedup with profiling
- [ ] Step 4: Test accuracy matches baseline
Step 1: Check PyTorch version
python -c "import torch; print(torch.__version__)"
# Should be ≥2.2.0
If <2.2, upgrade:
pip install --upgrade torch
Step 2: Enable Flash Attention backend
Replace standard attention:
# Before (standard attention)
attn_weights = torch.softmax(q @ k.transpose(-2, -1) / math.sqrt(d_k), dim=-1)
out = attn_weights @ v
# After (Flash Attention)
import torch.nn.functional as F
out = F.scaled_dot_product_attention(q, k, v, attn_mask=mask)
Force Flash Attention backend (torch.backends.cuda.sdp_kernel is deprecated; use
torch.nn.attention.sdpa_kernel with SDPBackend):
from torch.nn.attention import SDPBackend, sdpa_kernel
with sdpa_kernel(SDPBackend.FLASH_ATTENTION):
out = F.scaled_dot_product_attention(q, k, v)
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 375 lines · 14 tokens per session scan A d45849457af3
flash-attention is a skill published in the GitHub repository jozrftamson/hermes-figma-prompt-hub (1 stars, last pushed 13d ago), licensed MIT. It adds 14 tokens to every session and 3,058 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to flash-attention, differing in 0 lines, and is treated as a copy.
flash-attention compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flash-attentionjozrftamson/hermes-figma-prompt-hub | Skill | 1 | 13d ago | MIT | A | 14 | Claude Code, Codex |
| gpt-image-2-prompt-architectgpt-img-2/image3-prompt-mcp | Skill | 0 | 3mo ago | MIT | A | 84 | Claude Code, Codex |
| china-video-prompt-architectgpt-img-2/chinavideoai-prompt-mcp | Skill | 0 | 3mo ago | MIT | A | 83 | Claude Code, Codex |
| opensora-video-prompt-architectgpt-img-2/opensora2-prompt-mcp | Skill | 0 | 3mo ago | MIT | A | 79 | Claude Code, Codex |
| see-dance-2-video-prompt-architectgpt-img-2/see-dance-2-prompt-mcp | Skill | 0 | 3mo ago | MIT | A | 81 | Claude Code, Codex |
| flux2-lora-trainingAnastasiyaW/codex-claude-code-config | Skill | 218 | 2d ago | MIT | A | 73 | Claude Code |
| graph-rag-knowledge-expertroedyrustam/vibes-plug | Skill | 129 | 3d ago | MIT | A | 45 | Cursor |