~/talk

Deploying PyTorch Models To the Browser and Beyond With Transformers.js

Talkat PyTorch Conference Europe 2026 · 2026-04-07..04-08· [web-platform, javascript]
slides:none on file

Transformers.js exports PyTorch models to ONNX using torch.export (Dynamo), applies quantization and graph rewrites with ONNX Runtime GenAI and Onnx‑Slim, and runs them via a new C++ WebGPU runtime or WebNN. Result: 3–4x speedups from a fused multi‑head‑attention op, 4.4M monthly npm downloads, ~200 tokens/s on an M4 Max for a 1.25B model, and a 20B GPTOSS demo at ~40 tokens/s from a ~10 GB 4‑bit artifact — browser demos load, run locally, and are responsive.

AI-written summary · about

  1. 0:00Failed YouTube spam to web AI
  2. 3:31Run models in browser
  3. 6:24Export PyTorch to ONNX
  4. 8:50Optimize ONNX with Dynamo
  5. 11:17ONNX Runtime performance
  6. 15:48Transformers.js API
  7. 17:37WebGPU and WebNN
  8. 19:41Live browser demos
  9. 22:52Creative apps and future
~/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.