Local music generation
Last updated
Compare local music models for songs, instrumentals and sound effects
Songs with lyrics and background audio need different models.
Local music models take lyrics or sound descriptions and create audio files on your computer. Compare ACE-Step, HeartMuLa, and YuE2 for turning lyrics into songs, or Stable Audio Open and MusicGen for short backing tracks and effects. First define the input and required duration, then examine performance evidence and usage terms.
Suppose you want your own chorus in a video's title sequence and an instrumental beneath dialogue. The first job depends on lyrics, pronunciation, and song structure; the second on duration, prompt1, and whether vocals are present. Rather than rank both tasks with one score, identify the result each scene needs and narrow the candidates accordingly.
Compare the inputs and outputs of lyric-to-song models
ACE-Step 1.5 takes a description and lyrics, generates a song, and also describes cover and editing functions. Its card lists support for more than 50 languages and durations up to 10 minutes, but this does not guarantee pronunciation quality in each language or execution on every PC. Start with a short Korean verse and listen for pronunciation and syllable alignment.
HeartMuLa 3B uses lyrics and a music-tag file, with a default maximum duration of 240,000 ms. The repository reports current inference2 around RTF3 1.0, so generation may take roughly as long as the audio itself. Lazy loading reduces memory pressure by loading a model when needed; it does not guarantee generation speed.
YuE2 plans a score from lyrics and then synthesizes 48 kHz stereo audio; it also shows score editing and cover examples. Its official baseline path is Linux, Python 3.12, and a 24 GB BF164-capable NVIDIA GPU5. The RTX 4090 24 GB card reports generating 214.85 seconds of audio in 71.04 seconds: a 32-run warm average, 11.18 GiB peak VRAM6, and unquantized PyTorch7 2.10. Initial loading and saving are excluded, and it processes one song at a time.
Scroll sideways to compare all columns.
| Model setting | SongBench Avg ↑ | Phoneme error rate (PER) ↓ | Condition |
|---|---|---|---|
| YuE2 (lower PER of two candidates) | 6.7316 | 8.44% | YuE2-Vae-legacy decoder |
| HeartMuLa | 6.2483 | 10.71% | Same 192-prompt table |
| ACE-Step 1.5 | 6.0118 | 7.46% | Higher SongBench and lower PER are better |
| YuE 1 | 4.9165 | 36.38% | Previous-generation model |

Choose between full-song generation, instrument editing, and separation
To create a new finished song, compare the models and execution paths for ACE-Step 1.5 and YuE 2, then choose according to your target song length and VRAM. ACE-Step 1.5 · YuE repository
To edit MIDI or musical parts in a DAW, consider a plugin such as ACE-Step VST3 instead of a generation model. To separate vocals or instruments from a recording, use a source-separation tool such as SAM Audio rather than a music generator. ACE-Step VST3 guide
Read automated scores with their procedure and purpose
YuE's official WildSongBench material and the YuE2 model card published an automated evaluation of 192 prompts on September 12, 2026. Standard YuE2 and public baselines each produced two candidates; each candidate underwent four ASR8 evaluations, and the lower-PER option was selected. This is neither a human preference survey nor a compute-matched model comparison.
The separate best-of-89 procedure selected candidates using musicality, prompt control, and PER10, reporting SongBench Avg 6.9632 and PER 9.79%. It differs from the standard two-candidate method and used the YuE2-Vae-legacy decoder. The default for ordinary use is YuE2-Vae, described as perceptually better sounding. Automated metrics are not universal human judgments of audio quality.
Choose video background audio by duration and input type.
Stable Audio Open 1.0 generates up to 47 seconds of 44.1 kHz stereo audio from text, with sound effects and music material among its documented use cases. Its card provides prompts in English. You must agree to the Hugging Face license terms before downloading the weights.
MusicGen offers 300M, 1.5B, and 3.3B sizes, with text- and melody-conditioned variants. Its card says realistic vocals are difficult and performance may be weaker in languages other than English. AudioCraft documentation lists at least 16 GB VRAM for the medium model. It can be a candidate for short backing tracks or sound ideas, but not a substitute for a complete lyric-driven song.

Read device recommendations within each model's runtime
ACE-Step lists 4 GB/6 GB starting configurations for the standard 2B DiT11 and also offers an XL 4B DiT. Its current NVIDIA table recommends CPU12 offloading13 for XL at 16–20 GB, no offloading at 20 GB or more, and a 4B LM at 24 GB or more. Apple Silicon has a dedicated MLX14 start script in addition to MPS.
YuE2's baseline path calls for Linux and a 24 GB BF16 NVIDIA GPU; MusicGen medium documentation lists at least 16 GB VRAM. Official documentation does not provide a universal minimum VRAM for Stable Audio Open or HeartMuLa. These are path-specific recommendations, not measured memory tables for every song and setting. Do not directly compare Apple Silicon MLX results with NVIDIA VRAM figures.

Record licenses and direct-comparison conditions
The YuE2 README distinguishes Apache 2.0 for code and documentation from CC BY-NC 4.0 plus additional creator permission for YuE2-3B/VAE weights. Do not apply earlier YuE announcements to YuE2.
MusicGen uses MIT for code and CC BY-NC 4.0 for weights. Stable Audio Open uses the Stability AI Community License and points commercial users to a separate license.
HeartMuLa lists Apache 2.0 for code and related weights; the ACE-Step 1.5 card lists MIT. Check the terms for the exact checkpoint15 version you downloaded.
Rights to use lyrics, reference audio, and a particular voice may be separate from the model-file terms. For comparison, prepare the same short lyrics and genre, or the same sound-effect description and target duration, adapting to each model's supported input. Record download and initialization separately from warm generation. Note output duration, sample rate16, channels, hardware, settings, peak memory, listening impressions, and any failures, OOMs, or truncations.
Terminology notes
Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.
Back to the textInference — The process of using a trained model to compute an output for an input. Here, local inference means running the model on the user’s device.
Back to the textReal-Time Factor — Generation time divided by the duration of the output. Under comparable conditions, a lower value indicates faster generation.
Back to the textBF16 — A 16-bit floating-point format for model values. Its exponent has the same width as FP32, giving it a similarly wide value range.
Back to the textGPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.
Back to the textVRAM — Memory used by a graphics card’s GPU to store model weights and intermediate values.
Back to the textPyTorch — A software framework for building and running AI models. Check the compatible PyTorch version and hardware support along with the model.
Back to the textAutomatic Speech Recognition — Technology that recognizes spoken language in audio and converts it to text.
Back to the textBest of eight — An evaluation that generates eight candidates and selects one using a defined criterion. It uses more computation than a single-generation run.
Back to the textPhoneme Error Rate — An error metric comparing recognized sound units with a reference. A lower value means a closer match.
Back to the textDiT — Short for Diffusion Transformer: a model architecture that uses a transformer to refine noisy representations across diffusion steps.
Back to the textCPU — The central processor that runs the operating system and general-purpose instructions; in AI workloads it also handles tasks such as preprocessing and data movement.
Back to the textOffloading — Moving some model data from GPU memory to system RAM or storage when capacity is limited. This adds data transfer.
Back to the textMLX — Apple’s machine-learning framework, which runs models using memory shared by the CPU and GPU on Apple Silicon.
Back to the textCheckpoint — A file containing saved model weights and related state. Versions or tasks in one model family may use different checkpoints.
Back to the textSampling rate — The number of times per second an audio signal is measured when digitized.
Back to the text
Frequently asked questions
- What should you check first in this article?
- Local music models take lyrics or sound descriptions and create audio files on your computer. Compare ACE-Step, HeartMuLa, and YuE2 for turning lyrics into songs, or Stable Audio Open and MusicGen for short backing tracks and effects. First define the input and required duration, then examine performance evidence and usage terms.
- How much memory does it need?
- HeartMuLa 3B uses lyrics and a music-tag file, with a default maximum duration of 240,000 ms. The repository reports current inference around RTF 1.0, so generation may take roughly as long as the audio itself. Lazy loading reduces memory pressure by loading a model when needed; it does not guarantee generation speed.
- When is it better not to choose this?
- The YuE2 README distinguishes Apache 2.0 for code and documentation from CC BY-NC 4.0 plus additional creator permission for YuE2-3B/VAE weights. Do not apply earlier YuE announcements to YuE2. MusicGen uses MIT for code and CC BY-NC 4.0 for weights. Stable Audio Open uses the Stability AI Community License and points commercial users to a separate license. HeartMuLa lists Apache 2.0 for code and related weights; the ACE-Step 1.5 card lists MIT. Check the terms for the exact checkpoint version you downloaded.
- Where can you check the conditions and sources?
- YuE2 plans a score from lyrics and then synthesizes 48 kHz stereo audio; it also shows score editing and cover examples. Its official baseline path is Linux, Python 3.12, and a 24 GB BF16-capable NVIDIA GPU. The RTX 4090 24 GB card reports generating 214.85 seconds of audio in 71.04 seconds: a 32-run warm average, 11.18 GiB peak VRAM, and unquantized PyTorch 2.10. Initial loading and saving are excluded, and it processes one song at a time.
Read next
Local music generation
Local AI music generation: make songs and background music on your computer
Local music generation
Run ACE-Step 1.5 locally: setup through your first song
Local music generation
YuE2 local music generation: make vocal songs and arrangements from lyrics
Local music generation
Local music generation speed and hardware: how to read RTF correctly
