TLDRocket
Sign in

Transformers.js v4: Now Available on NPM!

Hugging Face Blog

Transformers.js v4 was released on NPM with a new WebGPU runtime written in C++ that enables AI models to run with hardware acceleration across browsers, Node.js, Bun, and Deno. The build system migration from Webpack to esbuild reduced build times from 2 seconds to 200 milliseconds and cut the default bundle size by 53%. The library now supports advanced model architectures like Mamba and Mixture of Experts, adds production-ready features like ModelRegistry for inspecting pipeline assets before loading, and extracts tokenization logic into a separate 8.8kB library.

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads 60+ sources, removes duplicate coverage, and summarises the day in two minutes. Free, no spam, unsubscribe anytime.