Quantizes audio into discrete tokens through several rounds of vector lookup, each round encoding the previous round’s error.
Popularized inJul 2021SoundStream: An End-to-End Neural Audio Codec
Residual vector quantization turns continuous audio features into discrete tokens a language model can predict: the first codebook approximates the vector, the second encodes the leftover error, and so on. More codebooks mean higher fidelity at more tokens per second. Neural audio codecs and most modern TTS/music models are built on this.
Share of new models that have included RVQ codebooks over time.
Open any of these on hfviewer to find this block in the interactive architecture graph.
Browse all 52 models with this in the catalog →
hfviewer renders the full architecture of 3,500+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →