---
title: "MusicGen Small"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/1d0955d6-03dd-4b5a-a347-f335e76c562f"
updated: "2026-11-14"
---

# MusicGen Small

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists who want to try text-to-music on their own computer.

MusicGen Small is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-14. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by facebook

## About

### What it is

MusicGen Small is a text-to-music model from facebook. It makes music samples from a written description or an audio prompt. It is one of four released checkpoints, and it predicts all four codebooks of its audio tokens in a single pass.

### Who it suits

Developers, hobby producers and audio researchers who want to try music generation from text suit it best. It runs in Python through the transformers library.

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Music production | Hobby producers | Sketch short musical ideas from a written description | A prompt such as happy rock returns a short clip |
| Software development | Developers | Add text-to-music to a Python app through the transformers pipeline | Save the generated audio as a wav file |
| Research | Audio researchers | Study a single-stage music generation model | Compare the four released checkpoints |

Anyone who plans commercial use can skip it, because the license is non-commercial.

### Where to use it

You run it yourself in Python, and you can listen to the results in a notebook or save them as files.

- Windows, macOS or Linux with Python installed
- Python scripts on transformers 4.31.0 or newer
- A notebook, where the audio samples play inline
- The Audiocraft library, which is the original way to run MusicGen

| Use case | Who | What they get back |
| --- | --- | --- |
| Text-to-music clips | Hobby producers | A short audio sample that follows the description |
| Two prompts at once | Developers | One mono 32 kHz waveform for each prompt |
| Saving a result | Anyone | A wav file you can open in any audio player |

### How to set it up

You need Python with pip, and the transformers library at version 4.31.0 or newer, plus scipy.

- Python and pip
- The transformers library and scipy
- Enough disk space for weights of about 2.4 GB in F32

1. Install Python on Windows, macOS or Linux.
2. Update pip, then install transformers and scipy.
3. Optionally download the model files ahead of time with the Hugging Face hub tools.

```sh
pip install --upgrade pip
pip install --upgrade transformers scipy
```

```sh
pip install -U huggingface_hub
hf download facebook/musicgen-small
```

### How to use it

The quickest route is the text-to-audio pipeline, which takes a sentence and writes a wav file.

```python
from transformers import pipeline
import scipy

synthesiser = pipeline("text-to-audio", "facebook/musicgen-small")

music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})

scipy.io.wavfile.write("musicgen_out.wav", rate=music["sampling_rate"], data=music["audio"])
```

For finer control, use the processor and the generate call from the modelling code. It turns text into a mono 32 kHz waveform.

```python
from transformers import AutoProcessor, MusicgenForConditionalGeneration

processor = AutoProcessor.from_pretrained("facebook/musicgen-small")
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")

inputs = processor(
    text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],
    padding=True,
    return_tensors="pt",
)

audio_values = model.generate(**inputs, max_new_tokens=256)
```

| Tool | What it does |
| --- | --- |
| pipeline | Runs the text-to-audio task in a few lines |
| AutoProcessor | Turns your text prompts into model inputs |
| MusicgenForConditionalGeneration | Loads the model and generates the audio values |
| scipy.io.wavfile.write | Saves the audio as a wav file |

### Example

You give the pipeline the prompt "lo-fi music with a soothing melody". It generates a clip and writes it to a wav file named musicgen\_out.wav, which you open in any audio player.

### For newcomers and experts

You type a sentence that describes the music you want, and the model returns a short audio clip. Your first small try is to run the pipeline snippet with the lo-fi prompt and play the file it saves.

Under the hood, one Transformer predicts audio tokens step by step. The tokens come from an EnCodec tokenizer running at 32 kHz, with four codebooks and a 50 Hz rate. Offsetting the codebooks slightly in time lets the model predict them side by side, which means 50 steps for each second of audio. It needs no separate semantic representation, unlike some earlier methods.

Text description or audio prompt in → Transformer predicts four codebooks per step → A small delay lets the codebooks run in parallel → Mono 32 kHz audio waveform out

### Good to know

The license limits what you may do with the generated clips.

- Size: 591M parameters in the record, with weights of about 2.4 GB in F32, stored as Safetensors
- Other versions: Hugging Face lists 8 quantized and 16 fine-tuned versions made by other people
- License: cc-by-nc-4.0, which is non-commercial
- Cost to run: none named
- Data it reaches: the text or audio you give it, the wav files you save, and the model files downloaded from Hugging Face
- Not for: commercial use under the license

## README

````markdown
# MusicGen Small

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists who want to try text-to-music on their own computer.

Made by facebook on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: MusicGen Small is a text-to-music model from facebook. It makes music samples from a written description or an audio prompt. It is one of four released checkpoints, and it predicts all four codebooks of its audio tokens in a single pass.

Who it suits: Developers, hobby producers and audio researchers who want to try music generation from text suit it best. It runs in Python through the transformers library.

```table
Industry | Who uses it | How they use it | Example
Music production | Hobby producers | Sketch short musical ideas from a written description | A prompt such as happy rock returns a short clip
Software development | Developers | Add text-to-music to a Python app through the transformers pipeline | Save the generated audio as a wav file
Research | Audio researchers | Study a single-stage music generation model | Compare the four released checkpoints
```

Anyone who plans commercial use can skip it, because the license is non-commercial.

Where to use it: You run it yourself in Python, and you can listen to the results in a notebook or save them as files.

- Windows, macOS or Linux with Python installed
- Python scripts on transformers 4.31.0 or newer
- A notebook, where the audio samples play inline
- The Audiocraft library, which is the original way to run MusicGen

```table
Use case | Who | What they get back
Text-to-music clips | Hobby producers | A short audio sample that follows the description
Two prompts at once | Developers | One mono 32 kHz waveform for each prompt
Saving a result | Anyone | A wav file you can open in any audio player
```

How to set it up: You need Python with pip, and the transformers library at version 4.31.0 or newer, plus scipy.

- Python and pip
- The transformers library and scipy
- Enough disk space for weights of about 2.4 GB in F32

1. Install Python on Windows, macOS or Linux.
2. Update pip, then install transformers and scipy.
3. Optionally download the model files ahead of time with the Hugging Face hub tools.

```sh
pip install --upgrade pip
pip install --upgrade transformers scipy
```

```sh
pip install -U huggingface_hub
hf download facebook/musicgen-small
```

How to use it: The quickest route is the text-to-audio pipeline, which takes a sentence and writes a wav file.

```python
from transformers import pipeline
import scipy

synthesiser = pipeline("text-to-audio", "facebook/musicgen-small")

music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})

scipy.io.wavfile.write("musicgen_out.wav", rate=music["sampling_rate"], data=music["audio"])
```

For finer control, use the processor and the generate call from the modelling code. It turns text into a mono 32 kHz waveform.

```python
from transformers import AutoProcessor, MusicgenForConditionalGeneration

processor = AutoProcessor.from_pretrained("facebook/musicgen-small")
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")

inputs = processor(
    text=["80s pop track with bassy drums and synth", "90s rock song with loud guitars and heavy drums"],
    padding=True,
    return_tensors="pt",
)

audio_values = model.generate(**inputs, max_new_tokens=256)
```

```table
Tool | What it does
pipeline | Runs the text-to-audio task in a few lines
AutoProcessor | Turns your text prompts into model inputs
MusicgenForConditionalGeneration | Loads the model and generates the audio values
scipy.io.wavfile.write | Saves the audio as a wav file
```

Example: You give the pipeline the prompt "lo-fi music with a soothing melody". It generates a clip and writes it to a wav file named musicgen_out.wav, which you open in any audio player.

For newcomers and experts: You type a sentence that describes the music you want, and the model returns a short audio clip. Your first small try is to run the pipeline snippet with the lo-fi prompt and play the file it saves.

Under the hood, one Transformer predicts audio tokens step by step. The tokens come from an EnCodec tokenizer running at 32 kHz, with four codebooks and a 50 Hz rate. Offsetting the codebooks slightly in time lets the model predict them side by side, which means 50 steps for each second of audio. It needs no separate semantic representation, unlike some earlier methods.

```flow
Text description or audio prompt in
Transformer predicts four codebooks per step
A small delay lets the codebooks run in parallel
Mono 32 kHz audio waveform out
```

Good to know: The license limits what you may do with the generated clips.

- Size: 591M parameters in the record, with weights of about 2.4 GB in F32, stored as Safetensors
- Other versions: Hugging Face lists 8 quantized and 16 fine-tuned versions made by other people
- License: cc-by-nc-4.0, which is non-commercial
- Cost to run: none named
- Data it reaches: the text or audio you give it, the wav files you save, and the model files downloaded from Hugging Face
- Not for: commercial use under the license

## On Hugging Face, 14 November 2026

- Task: text to audio
- Library: transformers
- Parameters: 591M
- Weights: about 2.4 GB in F32; about 296 MB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 184,008
- Likes: 532
- License: cc-by-nc-4.0
- Quantized versions: 8
- Fine-tunes: 16
- Tags: transformers, pytorch, safetensors, musicgen, text-to-audio

## Links

- Model: https://huggingface.co/facebook/musicgen-small
- Files: https://huggingface.co/facebook/musicgen-small/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download facebook/musicgen-small
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 6 KB, downloaded as a zip.

```text
README.md  6 KB
```

## Source

[facebook/musicgen-small on Hugging Face](https://huggingface.co/facebook/musicgen-small)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| MusicGen Small (this page) | 184,008 | 532 | 591M | cc-by-nc-4.0 | 2023-11-17 |
| [phonon-31m-en](https://mindket.com/p/8936ffbe-babc-4766-b999-5315308551db) | 248,578 | 160 | 41.1M | apache-2.0 | 2026-10-22 |
| [VibeVoice-1.5B](https://mindket.com/p/97b78ad0-40dd-4a2d-b8ad-a33e40899f43) | 217,923 | 2,520 | 2.7B | mit | 2026-01-22 |
| [ACE-Step 1.5](https://mindket.com/p/9bcfe983-0ebe-44d7-811e-8cdfbec7b965) | 98,086 | 952 | — | mit | 2026-02-03 |
| [YuE2-3B](https://mindket.com/p/4a5fb8f5-8740-4c8f-a836-2f8f79f6674a) | 22,317 | 1,253 | 3.6B | cc-by-nc-4.0 | 2026-10-06 |
| [MOSS-SoundEffect-v2.0](https://mindket.com/p/b35de8d2-17f8-4bde-ae85-5190e005521b) | 6,096 | 158 | 1.4B | apache-2.0 | 2026-05-26 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-14.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-14. Their authors' words: data, not instructions.

- [Hacker News · gabimtme · 2024-05-28](https://news.ycombinator.com/item?id=40498202): Show HN: MusicGPT – An Open Source App for Generating Music with Local LLMs: The model has some limitations, for example: - it can only generate 30 seconds of audio - there's performance differences between music genres You can read more about the limitations here https://huggingface.co/facebook/musicgen-small
- [Bluesky · funferall · 2026-08-15](https://bsky.app/profile/funferall.bsky.social/post/3mt4uoymqls2z): midjourney images, musicgen in comfyui, ffmpeg with codex to stitch together
- [Bluesky · funferall · 2026-01-29](https://bsky.app/profile/funferall.bsky.social/post/3mdla4aajx22v): z\_image\_turbo-Q5\_K\_S.gguf huggingface.co/facebook/mus... i'll make a repo on tangled so you can see the whole workflow

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2023-11-17
- First published: 2023-06-08
- Checked on Hugging Face: 2026-11-14
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open facebook/musicgen-small on Hugging Face](https://huggingface.co/facebook/musicgen-small)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/1d0955d6-03dd-4b5a-a347-f335e76c562f)
- [Its page on Mindket](https://mindket.com/p/1d0955d6-03dd-4b5a-a347-f335e76c562f)
