---
title: "Transformers.js v3: WebGPU Support, New Models & Tasks, and More…"
description: "Transformers.js v3 adds WebGPU acceleration via ONNX Runtime Web, claimed up to 100x faster than WASM and enabled by passing `device: 'webgpu'` when loading a pipeline."
url: "https://swe.quest/articles/transformers-js-v3-webgpu-support-new-models-tasks-and-more-3627acdd60e7ffe6"
canonical: "https://huggingface.co/blog/transformersjs-v3"
source: "Hugging Face"
published: "2024-10-22"
difficulty: "medium"
kind: "Release"
reading_minutes: 11
tags: ["inference","javascript","browsers","machine-learning"]
---

# Transformers.js v3: WebGPU Support, New Models & Tasks, and More…

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-10-22, 11 min read, Release. Original: [https://huggingface.co/blog/transformersjs-v3](https://huggingface.co/blog/transformersjs-v3)

## Summary

Transformers.js v3 adds WebGPU acceleration via ONNX Runtime Web, claimed up to 100x faster than WASM and enabled by passing \`device: 'webgpu'\` when loading a pipeline. A new \`dtype\` option replaces the old boolean \`quantized\` flag and supports fp32, fp16, 8-bit and 4-bit variants, including per-module dtypes for quantization-sensitive encoder-decoder models like Whisper and Florence-2. The release also expands support to 120 architectures and over 1200 pre-converted Hub models, and adds Node.js, Deno and Bun compatibility under the new @huggingface/transformers npm package. WebGPU reaches only about 70% of browsers, so some users need feature flags.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- JavaScript ES modules ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- ML model inference basics ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))

## Keywords

Transformers.js, WebGPU, ONNX Runtime Web, Hugging Face, Whisper, Florence-2, Qwen2.5

## Related posts

- [Transformers.js v4: Now Available on NPM!](https://swe.quest/articles/transformers-js-v4-now-available-on-npm-60e5d316d3e108bd.md): Hugging Face · 2026-02-09 · Medium · 7 min read · Inference & serving, JavaScript, LLMs, Browsers, Build systems
  Transformers.js v4 ships on NPM with a new C++ WebGPU runtime built with the ONNX Runtime team, enabling WebGPU-accelerated models in browsers as well as Node, Bun and Deno.
- [Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI](https://swe.quest/articles/introducing-huggingface-kernels-200-webgpu-kernels-for-local-ai-9e38d7de6105d26d.md): Hugging Face · 2026-09-01 · Medium · 9 min read · Inference & serving, Browsers, Performance engineering, JavaScript, Open source
  Hugging Face released @huggingface/kernels, a JavaScript loader for 207 Apache-2.0 WebGPU kernels published as versioned Hub repositories.
- [WebGPU now available for testing in Safari Technology Preview](https://swe.quest/articles/webgpu-now-available-for-testing-in-safari-technology-preview-fb9a82b78536ace0.md): WebKit · 2023-12-21 · Medium · 3 min read · Browsers, JavaScript, Hardware
  Safari Technology Preview 185 ships an early WebGPU implementation, enabled via the "WebGPU", "GPU Process: DOM Rendering" and "GPU Process: Canvas Rendering" feature flags.
- [Hugging Face ❤️ TorchTPU: TPUs, Natively](https://swe.quest/articles/hugging-face-torchtpu-tpus-natively-25e58a9bb63cbf24.md): Hugging Face · 2026-10-20 · Medium · 6 min read · Inference & serving, Hardware, Python, Machine learning
  TorchTPU is a native PyTorch backend that makes TPU an ordinary device, replacing the lazy-tensor torch\_xla path and making Optimum TPU unnecessary for running Hugging Face models.
- [Transformers now runs llama.cpp quants](https://swe.quest/articles/transformers-now-runs-llama-cpp-quants-cff2353854049dc6.md): Hugging Face · 2026-09-22 · Medium · 11 min read · Inference & serving, LLMs, Python, Performance engineering
  Hugging Face transformers can now load GGUF (llama.cpp) quantized checkpoints via \`from\_pretrained(..., gguf\_file=...)\` and serve them through \`transformers serve\` with an OpenAI-compatible API.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
