transformers-js
When to Use
Use for JavaScript or browser-side inference with Transformers.js, ONNX/web constraints, pipeline setup, and web app integration.
Do Not Use When
Do not use for Python-only trainer code or Hugging Face Jobs management.
Required Inputs
Runtime target, model id, task pipeline, bundler or Node version, and browser performance constraints.
Workflow
- Select a compatible Transformers.js pipeline.
- Wire model loading and inference.
- Handle caching and bundle constraints.
- Smoke test in browser or Node.