Supertonic 3 vocoder, weight-only int8 (modified)

This is a modified file. It is a derivative of onnx/vocoder.onnx from Supertone/supertonic-3 (commit 3cadd1ee6394adea1bd021217a0e650ede09a323) by Supertone Inc.. It is not an official Supertone release.

What changed

Only the way the weights are stored:

  • 28 of the 33 Conv weights are stored as int8: symmetric, one scale per output channel, read back with DequantizeLinear.
  • The 5 layers that int8 hurts most are stored as float16, read back with Cast. These are convnext.9.pwconv1/2, head.layer1, head.layer2 and the final Conv.
  • Activations and computation stay float32. Inputs and outputs are unchanged: latent [1, 144, L] → wav_tts [1, 3072·L] at 44.1 kHz.
  • The notice of modification is also in the file's ONNX doc_string and metadata_props.

Size: 32 MB, against 101 MB for the original.

It is meant as a drop-in replacement for onnx/vocoder.onnx, alongside the other three graphs of Supertonic 3. Those can be the originals, or the int8 ones of soniqo/Supertonic-3-ONNX-INT8.

Why

The vocoder of soniqo/Supertonic-3-ONNX-INT8 uses dynamic int8, which quantizes the activations too. Its output cannot be understood: Whisper transcribes none of the words.

Measurements below compare each vocoder with the float32 original, on the same latents, over 8 sentences in en, vi, de, fr, ja and ko. "Log-mel distance" is the mean absolute log-mel difference from the original. "Whisper CER" is the character error rate of Whisper small transcribing the output.

Vocoder Size Log-mel distance Whisper CER
Original float32 101 MB 0 dB 5.1%
float16 weights 51 MB 0.02 dB 5.4%
This file 32 MB 0.17 dB 5.4%
int8 weights, every layer 26 MB 2.4 dB 5.4%
soniqo dynamic int8 26 MB 23 dB 102%

The file is reproduced exactly by make_vocoder.py, which needs onnx and numpy: sha256 4c8a1c9e3003fc2e872f45be19b2f42a6068dace3cf18e578f333fd3287c0483.

License and use restrictions

This file is distributed under the BigScience OpenRAIL-M license; a copy is in LICENSE. The model and its derivatives, this file included, are subject to the use-based restrictions of Attachment A of that license. Anyone using this file must comply with them. Among them: no use to impersonate a person without their consent, no undisclosed machine-generated content, and no use for disinformation or fraud.

Copyright of the original model: Supertone Inc. Paper: arXiv:2503.23108.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for thuongvv/Supertonic-3-Vocoder-ONNX-W8

Quantized
(45)
this model

Paper for thuongvv/Supertonic-3-Vocoder-ONNX-W8