Deploying PyTorch Models To the Browser and Beyond With Transformers.js - Joshua Lochner
About this talk
This talk covers the engineering roadmap for running Hugging Face Transformers locally in web browsers using Transformers.js. The speaker discusses the end-to-end pipeline necessary for exporting, optimizing, and deploying PyTorch models to the web, utilizing emerging web technologies like WebGPU for efficient inference. The session dives into converting PyTorch models to ONNX using torch.export (Dynamo) and employing runtime-specific optimizations with ONNX Runtime GenAI. The workflow presented allows for the creation of highly efficient, quantized model artifacts that are suitable for browser execution. Finally, the speaker demonstrates the deployment of these optimized models with Transformers.js to build engaging WebAI experiences.
More from this event
See all 103 talks →
What PyTorch Conference Europe 2026 Was Really Like – Official PyTorchCon EU Highlights | Paris
0:53
Lightning Talk: How DeepInverse Is Solving Imaging in Science and H... Andrew Wang & Minh Hai Nguyen
9:50
Why WideEP Inference Needs Data-Parallel-Aware Scheduling - Maroon Ayoub & Tyler Michael Smith
25:37
Write Once, Run Everywhere with Pytorch Transformers - Pedro Cuenca, Hugging Face
19:17