From useML To useLLM: On Device AI In The Browser
summary
Claim: full ML and LLM inference runs client-side in the browser using WebGPU, WebAssembly and frameworks like TensorFlow.js, Transformers.js and mlc-llm. Demonstrations show face-landmark detection going from ~5 FPS on CPU to ~13 FPS on WebGL and ~30 FPS on WebGPU, and a local Gemma 2B quantized model (~1.4 GB) generating at about 138 tokens/sec processing and ~32 tokens/sec generation. A live app called MD edit downloads and runs the model on-device; it works well on M3 silicon but is ~10x slower on typical Intel laptops.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker intro
- 2:43Why on-device AI matters
- 4:30How neural networks work
- 6:57TensorFlow in the browser
- 8:20WebGPU vs WebGL performance
- 9:24Live face landmark demo
- 11:07Chrome extension with gestures
- 12:31Detecting Swiss German words
- 14:37From ML to LLMs
- 16:25LLM architecture basics
- 17:26Model size and quantization
- 18:53Running LLMs in browser
- 19:34MD Edit demo and features
- 22:51Hardware requirements today
- 23:54Future of on-device AI
- 25:00Progressive enhancement with AI
- 25:44Benefits of browser AI
- 26:25Closing and resources
