Hugging Face ships 207 open-source WebGPU kernels to run AI models directly in the browser
Hugging Face · youtube · 2026-09-04
Hugging Face has open-sourced 207 WebGPU kernels for browser-based AI on the Hub, along with the @huggingface/kernels library that loads, validates, renders and runs them. The accompanying video explains the design: the difference between ops and kernels, why WGSL, and why kernels ship as Jinja templates instead of fixed WGSL files — the browser picks supported data types and workgroup sizes to build the fastest kernel for each device. Demos include an attention mechanism using tinyBERT weights in 20 lines of JavaScript and a 1M+ cell wave animation driven by a single matmul kernel. The new Fleet platform lets users run kernel benchmarks on their own GPUs to help optimize for untested devices.
More from coding & agent
- Vibe coding a feature store in a week: duckdb + S3 tables is all you need — generativist · 2026-12-05
- The underrated alpha: an AI agent that tracks local events and nudges you to attend — mimi10v3 · 2026-12-05
- Dev open-sources Cred after saying Anthropic 'shipped my startup' — agent access without sharing credentials — sull · 2026-12-05
- Microsoft paper: LLMs solving 97% of math still can't tell which answers are wrong — rohanpaul_ai · 2026-12-05
- Free Full AEO Course Drops: Winning Traffic in the Age of AI Search — jia_seed · 2026-12-05
- A personal agent's tidy-looking plan had its steps in the wrong order — the_crooked_badger · 2026-12-05