Transformers.js shipped v4 with a ground-up rewrite of its WebGPU backend in C++, developed in partnership with the ONNX Runtime team. The new runtime expands operator support across roughly 200 existing model architectures plus new v4-exclusive designs, and enables the same transformers.js code to run across diverse JavaScript environments including browsers and beyond.
Transformers.js reached v4.0.0 with a complete rewrite of its WebGPU runtime in C++, built in collaboration with the ONNX Runtime team. The new backend expanded operator support across ~200 existing model architectures plus new v4-exclusive ones, enabling the same code to run across diverse JavaScript environments.