SongGeneration / LeVo - AI Music Generation
Open-source music foundation model by Tencent AI Lab. Commercial-grade quality rivaling Suno and Mureka.
When to Use
- User wants to generate complete songs from text prompts
- User wants AI music composition with lyrics
- User needs multilingual music generation (zh, en, es, ja, etc.)
- User wants open-source alternative to Suno AI
Key Features
- Commercial-grade musicality (rivals Suno v5, Mureka v8)
- Lyric accuracy: 8.55% PER (beats Suno v5 12.4%)
- Multilingual: Chinese, English, Spanish, Japanese, etc.
- Multi-preference alignment for melody, arrangement, sound quality
- Multi-modal conditioning: text + audio prompts
Installation
git clone https://github.com/tencent-ailab/SongGeneration.git
cd SongGeneration
pip install -r requirements.txt
Model Sizes
| Model |
Max Length |
VRAM |
RTF(H20) |
Languages |
| SongGeneration-base |
2m30s |
10-16GB |
0.67 |
zh |
| SongGeneration-base-new |
2m30s |
10-16GB |
0.67 |
zh, en |
| SongGeneration-base-full |
4m30s |
12-18GB |
0.69 |
zh, en |
| SongGeneration-large |
4m30s |
22-28GB |
0.82 |
zh, en |
| SongGeneration-v2-large |
4m30s |
22-28GB |
0.82 |
zh, en, es, ja |
Quick Start
Download Model
# From HuggingFace
pip install huggingface_hub
huggingface-cli download lglg666/SongGeneration-v2-large --local-dir ./checkpoints/
Generate Music
from models import SongGenerationModel
model = SongGenerationModel.from_pretrained("./checkpoints/SongGeneration-v2-large")
result = model.generate(
prompt="Upbeat pop song about summer love",
lyrics="Summer nights, we dance in the moonlight",
language="en"
)
result.save_audio("output.mp3")
Parameters
| Parameter |
Values |
Description |
prompt |
string |
Music style/description |
lyrics |
string |
Song lyrics |
language |
en, zh, es, ja |
Output language |
temperature |
0.5-1.5 |
Creativity control |
top_k |
10-100 |
Sampling top-k |
Online Demo
Related
heartmula: Another open-source music foundation model
shao-music: High-fidelity music generation
rvc: Voice conversion for singing
1---2name: song-generation3description: SongGeneration / LeVo - Open-source commercial-grade AI music generation by Tencent. Text-to-music with lyrics.4---56# SongGeneration / LeVo - AI Music Generation78Open-source music foundation model by Tencent AI Lab. Commercial-grade quality rivaling Suno and Mureka.910## When to Use11- User wants to generate complete songs from text prompts12- User wants AI music composition with lyrics13- User needs multilingual music generation (zh, en, es, ja, etc.)14- User wants open-source alternative to Suno AI1516## Key Features17- Commercial-grade musicality (rivals Suno v5, Mureka v8)18- Lyric accuracy: 8.55% PER (beats Suno v5 12.4%)19- Multilingual: Chinese, English, Spanish, Japanese, etc.20- Multi-preference alignment for melody, arrangement, sound quality21- Multi-modal conditioning: text + audio prompts2223## Installation2425```bash26git clone https://github.com/tencent-ailab/SongGeneration.git27cd SongGeneration28pip install -r requirements.txt29```3031## Model Sizes3233| Model | Max Length | VRAM | RTF(H20) | Languages |34|-------|-----------|------|----------|-----------|35| SongGeneration-base | 2m30s | 10-16GB | 0.67 | zh |36| SongGeneration-base-new | 2m30s | 10-16GB | 0.67 | zh, en |37| SongGeneration-base-full | 4m30s | 12-18GB | 0.69 | zh, en |38| SongGeneration-large | 4m30s | 22-28GB | 0.82 | zh, en |39| SongGeneration-v2-large | 4m30s | 22-28GB | 0.82 | zh, en, es, ja |4041## Quick Start4243### Download Model44```bash45# From HuggingFace46pip install huggingface_hub47huggingface-cli download lglg666/SongGeneration-v2-large --local-dir ./checkpoints/48```4950### Generate Music51```python52from models import SongGenerationModel5354model = SongGenerationModel.from_pretrained("./checkpoints/SongGeneration-v2-large")5556result = model.generate(57 prompt="Upbeat pop song about summer love",58 lyrics="Summer nights, we dance in the moonlight",59 language="en"60)61result.save_audio("output.mp3")62```6364## Parameters6566| Parameter | Values | Description |67|-----------|--------|-------------|68| `prompt` | string | Music style/description |69| `lyrics` | string | Song lyrics |70| `language` | en, zh, es, ja | Output language |71| `temperature` | 0.5-1.5 | Creativity control |72| `top_k` | 10-100 | Sampling top-k |7374## Online Demo75- Fast generation: https://huggingface.co/spaces/tencent/SongGeneration76- v2 fast model: generates a complete song in under 1 minute7778## Related79- `heartmula`: Another open-source music foundation model80- `shao-music`: High-fidelity music generation81- `rvc`: Voice conversion for singing