~/talk

From ML to LLM: On-Device AI in the Browser

Talkat Uphill Conf 2024 · 2024-05-16..05-17· [web-platform, webassembly]
slides:none on file

Claims practical on-device LLMs using WebAssembly and WebGPU with TensorFlow.js and Transformers JS, showing face-landmark demo jumping from ~5 fps on CPU to >30 fps on GPU and text models like Gemma 2B quantized to 4‑bit (~1.4 GB) running in-browser. Measurements report 133 tokens/sec for input processing and 1.68 ms per generated token. Two shipped demos — MD edit (local Gemma generation) and ask my PDF (local vector DB retrieval) — work fast, keep data client-side, and reveal hardware limits on non‑M3 Macs.

AI-written summary · about

  1. 0:00On-device AI in browser
  2. 2:13Speech recognition to TensorFlow.js
  3. 5:25Custom speech detection models
  4. 7:40Can large language models run in the browser
  5. 10:47LLMs with WebAssembly & WebGPU
  6. 11:30MD Edit demo with LLM
  7. 13:20LLM limits & retrieval augmentation
  8. 14:24Ask My PDF for private Q&A
  9. 16:33Hardware & future of on-device AI
  10. 18:39AI as web app enhancement
  11. 19:45Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.