Local music generation

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.

Requirements and key details
  • For complete songs requiring lyrics and structure, begin with ACE-Step, HeartMuLa, and YuE2.
  • Stable Audio Open documents music clips up to 47 seconds; MusicGen offers text and melody conditioning.
  • Public benchmarks are meaningful only alongside their prompts, hardware, and evaluation procedures.

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.

Automated WildSongBench evaluation on 192 prompts
Model settingSongBench Avg ↑Phoneme error rate (PER) ↓Condition
YuE2 (lower PER of two candidates)6.73168.44%YuE2-Vae-legacy decoder
HeartMuLa6.248310.71%Same 192-prompt table
ACE-Step 1.56.01187.46%Higher SongBench and lower PER are better
YuE 14.916536.38%Previous-generation model
Music-model selection for lyrics and vocal songs
Compare songs with sung lyrics separately from backing tracks beneath dialogue.

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

Two different measures of music quality — WildSongBench · 192 prompts · automatic evaluation
Higher SongBench and lower lyric phoneme error rate (PER) are better. This is not a ranking of human listening preferences.

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.

Interface for working with short instrumental and effect waveforms
Choose short audio clips using duration criteria distinct from full songs.

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.

Selection notes separating vocal songs, instrumentals and effects
Narrow candidates by considering task, hardware, and usage terms together.

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

  1. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  2. Inference — 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 text
  3. Real-Time Factor — Generation time divided by the duration of the output. Under comparable conditions, a lower value indicates faster generation.

    Back to the text
  4. BF16 — 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 text
  5. GPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.

    Back to the text
  6. VRAM — Memory used by a graphics card’s GPU to store model weights and intermediate values.

    Back to the text
  7. PyTorch — A software framework for building and running AI models. Check the compatible PyTorch version and hardware support along with the model.

    Back to the text
  8. Automatic Speech Recognition — Technology that recognizes spoken language in audio and converts it to text.

    Back to the text
  9. Best 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 text
  10. Phoneme Error Rate — An error metric comparing recognized sound units with a reference. A lower value means a closer match.

    Back to the text
  11. DiT — Short for Diffusion Transformer: a model architecture that uses a transformer to refine noisy representations across diffusion steps.

    Back to the text
  12. CPU — 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 text
  13. Offloading — Moving some model data from GPU memory to system RAM or storage when capacity is limited. This adds data transfer.

    Back to the text
  14. MLX — Apple’s machine-learning framework, which runs models using memory shared by the CPU and GPU on Apple Silicon.

    Back to the text
  15. Checkpoint — A file containing saved model weights and related state. Versions or tasks in one model family may use different checkpoints.

    Back to the text
  16. Sampling 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.