transformers-js
Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks. Works in browsers and server-side runtimes (Node.js, Bun, Deno) with WebGPU/WASM using pre-trained models from Hugging Face Hub.
- Version
- 4.x
- License
- Apache-2.0
- Compatibility
- Requires Node.js 18+ (or compatible Bun/Deno runtime) or modern browser with ES modules support. WebGPU requires runtime and hardware support; WASM is the broad fallback. Internet access is needed for downloading models from Hugging Face Hub (optional if using local models).
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/transformers-js/SKILL.md
- skills/transformers-js/LICENSE
- skills/transformers-js/references/CACHE.md
- skills/transformers-js/references/CONFIGURATION.md
- skills/transformers-js/references/EXAMPLES.md
- skills/transformers-js/references/MODEL_ARCHITECTURES.md
- skills/transformers-js/references/MODEL_REGISTRY.md
- skills/transformers-js/references/PIPELINE_OPTIONS.md
- skills/transformers-js/references/TEXT_GENERATION.md
Every link opens the file at its source, pinned to the revision this page describes.