Hugging Face Ships Kernels: Attention in 20 Lines of JS at 400fps on Browser GPUs
jason_mayes · x · 2026-09-05
Two days after Hugging Face shipped @huggingface/kernels, developer nicodotdev published a deep dive (amplified by Google's Jason Mayes):
- Kernels ship as Jinja templates instead of WGSL files, so the browser compiles the fastest kernel for your specific GPU
- Attention runs on the GPU in 20 lines of JS
- A single matmul animates 1M+ pixels at 400 fps vs 6 fps in plain JS
- Fleet lets you benchmark your GPU to help tune kernels for every device
A practical open-source tool for browser-side AI/graphics work.
Related event: Hugging Face open-sources kernels library for in-browser GPU kernels(3 posts)→
More from coding & agent
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- RTK Terminal Compression Cuts Tokens but Leaves Your AI Coding Bill Unchanged — Bartaseth · 2026-09-11