IT lexicon › AI & ML › MusicGen

MusicGen

AI & ML På svenska → Updated: 2026-10-29

Meta's 2023 music generator, which produces short instrumental pieces from a text prompt and was released with open weights.

The model is a single transformer predicting EnCodec tokens at 32 kHz. The audio is described by four parallel codebooks, and rather than generating them in separate passes, each is offset by one step so that all four can be predicted at once. Besides text, it can be conditioned on a melody — hum a riff and get it back arranged as synth-pop or a string quartet.

Meta trained it on roughly 20,000 hours of licensed music and published code and weights as part of AudioCraft, though the weights carry a non-commercial licence. The output has no vocals and structure rarely survives past half a minute, but MusicGen became the reference point that later, more closed services get measured against.

← Back to the lexicon