Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By kadirnarv0.1.0MIT
Speeds up a PyTorch model with hand-written CUDA C++ kernels and CUDA graphs, keeping only changes that run faster with identical output. Needs an NVIDIA GPU, Python 3.12+ and uv, and the agent loop runs until gains are exhausted.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
fast-kernel makes a model run faster without changing what it produces. You give an agent (Claude Code) the prompt below; it profiles the model, finds the slow parts, writes and tests hand-written CUDA C++ kernels captured with CUDA graphs, measures each attempt against the original model, keeps only what is faster and identical in output, and repeats until the optimization is exhausted — with several agents working at once and every experiment on a live graph.
git clone https://github.com/kadirnar/fast-kernel && cd fast-kernel
uv sync --extra cuda # add --extra audio for LFM2-Audio, --extra yolo for YOLO
claude # start Claude Code inside this folder
You need an NVIDIA GPU, Python 3.12+, uv and Claude Code.
Paste this into Claude Code. The first line alone already works — CLAUDE.md routes it to the
fk-optimize skill, which reads the same files and runs the same steps — but the full text tells the
agent exactly what to read, how the library works, how to use the other agents, and what quality means.
Optimize the Mimi codec model.
Optimize the Mimi neural audio codec (`kyutai/mimi`, loaded through `transformers.MimiModel`) with
fast-kernel: make encode + decode of one second of 24 kHz audio (batch 1, the primary workload
`roundtrip_1s`) as fast as possible on this machine, and keep improving it until the optimization is exhausted.
Speed is only accepted without any loss of quality: the optimized model must produce exactly the same
audio codes and the same waveform as the original.
## What to read before doing anything (in this order)
1. `README.md`, `AGENTS.md` (the research program — every rule below is binding) and `CLAUDE.md`.
2. `.claude/agents/*.md` (the roles you may delegate to) and these skills in `.claude/skills/`:
`fk-optimize`, `fk-experiment`, `fk-parallel`, `hotspot-analysis`, `numerical-verification`, and the
backend skills `cuda-cpp-kernels` (the implementation backend), `cuda-graphs`, `hub-kernels`.
3. The harness you must never edit but must understand: `src/fastkernel/harness/gates.py` (the five
correctness stages), `src/fastkernel/harness/evaluate.py` (keep/revert logic), `src/fastkernel/harness/run.py`,
`src/fastkernel/profiling/` (how targets are ranked by measured headroom), `src/fastkernel/memory.py`
(the campaign's measured memory: reflexions, repair chains, failure classes),
`src/fastkernel/backends/templates/` (starter kernels) and `src/fastkernel/backends/graphs.py`.
4. The model spec: `src/fastkernel/models/mimi.py` — it defines the reference oracle, the workloads, the exact
correctness checks and the hotspot hints. Read the model's own source too (`transformers/models/mimi/modeling_mimi.py` in site-packages).
5. The campaign, once it exists: `campaigns/mimi/GOAL.md` (objective, metric, quality policy),
`PLAN.md` (ranked targets measured on this machine: share of GPU time, roofline efficiency (SOL),
shapes), `KNOWLEDGE.md` (insights and the experiment log), `results.tsv`, and
`experiments/NNNN-*/` (metrics, gates,
profile, patch, log of every experiment).
## How the library works (do it in this order; every step is idempotent)
7-day copy clicks
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground