Transformers.js v4: Now Available on NPM!
What changed
npm i @huggingface/transformers The biggest change is undoubtedly the adoption of a new WebGPU Runtime, completely rewritten in C++. We've worked closely with the ONNX Runtime team to thoroughly test this runtime across our ~200 supported model architectures, as well as many new v4-exclusive architectures. We've released several Transformers.js v4 demos so far...
Why it matters
A concrete addition to Practical AI: Tools, Models & Frameworks: it changes what's available to builders today rather than being general commentary.
How it compares
Related prior coverage to compare against:
- Experimenting with the proposed Cross-Origin Storage API in Transformers.js
- Introducing Agents.js: Give tools to your LLMs using JavaScript
- Introducing Decision Transformers on Hugging Face ๐ค
Sources
- Transformers.js v4: Now Available on NPM! (huggingface-blog)primary