
musicgen (base text to music)
Audio and speech247 ops367.2K params
A MusicGen model that generates music from a text description with one transformer over audio tokens.
Audio and speech · 1,750 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This model is MusicGen as built in AudioCraft, a PyTorch library for deep learning research on audio generation.
About this model's family
MusicGen is a text-to-music model: it generates music samples conditioned on text descriptions or audio prompts. Its core is a single language model that operates over several streams of compressed discrete music representation, that is, tokens. The paper says this single-stage transformer with efficient token interleaving patterns eliminates the need for cascading several models, hierarchically or by upsampling.
The model card describes a single stage auto-regressive Transformer trained over a 32kHz EnCodec tokenizer with 4 codebooks sampled at 50 Hz. By introducing a small delay between the codebooks, the authors show the codebooks can be predicted in parallel, which leaves only 50 auto-regressive steps per second of audio. Each transformer layer has a causal self-attention block followed by a cross-attention block that is fed with the conditioning signal.
The model card lists sizes of 300M, 1.5B and 3.3B parameters and two variants, one trained for text-to-music generation and one for melody-guided music generation. According to the card, the model is trained on 20K hours of data.
Key idea. MusicGen generates music with a single-stage transformer language model over several streams of audio tokens, using token interleaving patterns instead of a cascade of models.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{copet2024simplecontrollablemusicgeneration,
title={Simple and Controllable Music Generation},
author={Jade Copet and Felix Kreuk and Itai Gat and Tal Remez and David Kant and Gabriel Synnaeve and Yossi Adi and Alexandre Défossez},
year={2024},
eprint={2306.05284},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2306.05284},
}