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
- Users report ~40% weekly quota cut in Google Antigravity; no official reply yet — kalyan_kpl · 2026-12-05
- How are teams interviewing engineers now: Claude Code allowed or 2019-style whiteboarding? — weswinder · 2026-12-05
- Designer now 'parents' a pipeline of agents talking to agents to make art — eschadiol · 2026-12-05
- Benchmarking LLM-as-a-judge in CI/CD: the case for eval-driven pipelines — aparnadhinak · 2026-12-05
- Agent-as-a-Judge survey covers evolution, multi-agent collaboration and domain evaluations — kalyan_kpl · 2026-12-05
- Dev feedback: decoupling rex sessions from native windows is harder to adapt to than expected — alexisgallagher · 2026-12-05