Custom usage
Last updated
Last updated
By default, Transformers.js uses and , which should work out-of-the-box. You can customize this as follows:
Copied
For a full list of available settings, check out the .
We recommend using our to convert your PyTorch, TensorFlow, or JAX models to ONNX in a single command. Behind the scenes, it uses 🌍 to perform conversion and quantization of your model.
Copied
Copied
This will save the following files to ./models/
:
Copied
For example, convert and quantize using: