---
title: ACE Step
emoji: ๐ป
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.27.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: A Step Towards Music Generation Foundation Model
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
โจ ACE-Step โจ
๐ต A Step Towards Music Generation Foundation Model ๐ต
Project |
Code |
Checkpoints |
Space Demo
---
## Table of Contents
- [Features](#-features)
- [Installation](#-installation)
- [Usage](#-user-interface-guide)
## ๐ข News and Updates
- ๐ 2025.05.06: Open source demo code and model
## TODOs๐
- [ ] ๐ Release training code
- [ ] ๐ Release LoRA training code & ๐ค RapMachine lora
- [ ] ๐ฎ Release ControlNet training code & ๐ค Singing2Accompaniment controlnet
## ๐๏ธ Architecture
## ๐ Abstract
We introduce ACE-Step, a novel open-source foundation model for music generation that overcomes key limitations of existing approaches and achieves state-of-the-art performance through a holistic architectural design. Current methods face inherent trade-offs between generation speed, musical coherence, and controllability. For instance, LLM-based models (e.g., Yue, SongGen) excel at lyric alignment but suffer from slow inference and structural artifacts. Diffusion models (e.g., DiffRhythm), on the other hand, enable faster synthesis but often lack long-range structural coherence.
ACE-Step bridges this gap by integrating diffusion-based generation with Sanaโs Deep Compression AutoEncoder (DCAE) and a lightweight linear transformer. It further leverages MERT and m-hubert to align semantic representations (REPA) during training, enabling rapid convergence. As a result, our model synthesizes up to 4 minutes of music in just 20 seconds on an A100 GPUโ15ร faster than LLM-based baselinesโwhile achieving superior musical coherence and lyric alignment across melody, harmony, and rhythm metrics. Moreover, ACE-Step preserves fine-grained acoustic details, enabling advanced control mechanisms such as voice cloning, lyric editing, remixing, and track generation (e.g., lyric2vocal, singing2accompaniment).
Rather than building yet another end-to-end text-to-music pipeline, our vision is to establish a foundation model for music AI: a fast, general-purpose, efficient yet flexible architecture that makes it easy to train sub-tasks on top of it. This paves the way for developing powerful tools that seamlessly integrate into the creative workflows of music artists, producers, and content creators. In short, we aim to build the Stable Diffusion moment for music.
## โจ Features
### ๐ฏ Baseline Quality
#### ๐ Diverse Styles & Genres
- ๐ธ Supports all mainstream music styles with various description formats including short tags, descriptive text, or use-case scenarios
- ๐ท Capable of generating music across different genres with appropriate instrumentation and style
#### ๐ Multiple Languages
- ๐ฃ๏ธ Supports 19 languages with top 10 well-performing languages including:
- ๐บ๐ธ English, ๐จ๐ณ Chinese, ๐ท๐บ Russian, ๐ช๐ธ Spanish, ๐ฏ๐ต Japanese, ๐ฉ๐ช German, ๐ซ๐ท French, ๐ต๐น Portuguese, ๐ฎ๐น Italian, ๐ฐ๐ท Korean
- โ ๏ธ Due to data imbalance, less common languages may underperform
#### ๐ป Instrumental Styles
- ๐น Supports various instrumental music generation across different genres and styles
- ๐บ Capable of producing realistic instrumental tracks with appropriate timbre and expression for each instrument
- ๐ผ Can generate complex arrangements with multiple instruments while maintaining musical coherence
#### ๐ค Vocal Techniques
- ๐๏ธ Capable of rendering various vocal styles and techniques with good quality
- ๐ฃ๏ธ Supports different vocal expressions including various singing techniques and styles
### ๐๏ธ Controllability
#### ๐ Variations Generation
- โ๏ธ Implemented using training-free, inference-time optimization techniques
- ๐ Flow-matching model generates initial noise, then uses trigFlow's noise formula to add additional Gaussian noise
- ๐๏ธ Adjustable mixing ratio between original initial noise and new Gaussian noise to control variation degree
#### ๐จ Repainting
- ๐๏ธ Implemented by adding noise to the target audio input and applying mask constraints during the ODE process
- ๐ When input conditions change from the original generation, only specific aspects can be modified while preserving the rest
- ๐ Can be combined with Variations Generation techniques to create localized variations in style, lyrics, or vocals
#### โ๏ธ Lyric Editing
- ๐ก Innovatively applies flow-edit technology to enable localized lyric modifications while preserving melody, vocals, and accompaniment
- ๐ Works with both generated content and uploaded audio, greatly enhancing creative possibilities
- โน๏ธ Current limitation: can only modify small segments of lyrics at once to avoid distortion, but multiple edits can be applied sequentially
### ๐ Applications
#### ๐ค Lyric2Vocal (LoRA)
- ๐ Based on a LoRA fine-tuned on pure vocal data, allowing direct generation of vocal samples from lyrics
- ๐ ๏ธ Offers numerous practical applications such as vocal demos, guide tracks, songwriting assistance, and vocal arrangement experimentation
- โฑ๏ธ Provides a quick way to test how lyrics might sound when sung, helping songwriters iterate faster
#### ๐ Text2Samples (LoRA)
- ๐๏ธ Similar to Lyric2Vocal, but fine-tuned on pure instrumental and sample data
- ๐ต Capable of generating conceptual music production samples from text descriptions
- ๐งฐ Useful for quickly creating instrument loops, sound effects, and musical elements for production
### ๐ฎ Coming Soon
#### ๐ค RapMachine
- ๐ฅ Fine-tuned on pure rap data to create an AI system specialized in rap generation
- ๐ Expected capabilities include AI rap battles and narrative expression through rap
- ๐ Rap has exceptional storytelling and expressive capabilities, offering extraordinary application potential
#### ๐๏ธ StemGen
- ๐๏ธ A controlnet-lora trained on multi-track data to generate individual instrument stems
- ๐ฏ Takes a reference track and specified instrument (or instrument reference audio) as input
- ๐น Outputs an instrument stem that complements the reference track, such as creating a piano accompaniment for a flute melody or adding jazz drums to a lead guitar
#### ๐ค Singing2Accompaniment
- ๐ The reverse process of StemGen, generating a mixed master track from a single vocal track
- ๐ต Takes a vocal track and specified style as input to produce a complete vocal accompaniment
- ๐ธ Creates full instrumental backing that complements the input vocals, making it easy to add professional-sounding accompaniment to any vocal recording
## ๐ป Installation
```bash
conda create -n ace_step python==3.10
conda activate ace_step
pip install -r requirements.txt
conda install ffmpeg
```
## ๐ฅ๏ธ Hardware Performance
We've tested ACE-Step on various hardware configurations with the following throughput results:
| Device | 27 Steps | 60 Steps |
|--------|-------------------------|-------------------------|
| NVIDIA A100 | 0.036675| 0.0815 |
| MacBook M2 Max | | 0.44 | 0.97 |
| NVIDIA RTX 4090 | 0.029 | 0.064 |
seconds cost per generated audio (seconds/audio)
For example, to generate a 180-second song, multiply 180 by the seconds cost per generated audio (seconds/audio) for the desired device and step count. This will give you the total time required for the generation process.
## ๐ Usage

### ๐ Basic Usage
```bash
python app.py
```
### โ๏ธ Advanced Usage
```bash
python app.py --checkpoint_path /path/to/checkpoint --port 7865 --device_id 0 --share --bf16
```
#### ๐ ๏ธ Command Line Arguments
- `--checkpoint_path`: Path to the model checkpoint (default: downloads automatically)
- `--port`: Port to run the Gradio server on (default: 7865)
- `--device_id`: GPU device ID to use (default: 0)
- `--share`: Enable Gradio sharing link (default: False)
- `--bf16`: Use bfloat16 precision for faster inference (default: True)
## ๐ฑ User Interface Guide
The ACE-Step interface provides several tabs for different music generation and editing tasks:
### ๐ Text2Music Tab
1. **๐ Input Fields**:
- **๐ท๏ธ Tags**: Enter descriptive tags, genres, or scene descriptions separated by commas
- **๐ Lyrics**: Enter lyrics with structure tags like [verse], [chorus], and [bridge]
- **โฑ๏ธ Audio Duration**: Set the desired duration of the generated audio (-1 for random)
2. **โ๏ธ Settings**:
- **๐ง Basic Settings**: Adjust inference steps, guidance scale, and seeds
- **๐ฌ Advanced Settings**: Fine-tune scheduler type, CFG type, ERG settings, and more
3. **๐ Generation**: Click "Generate" to create music based on your inputs
### ๐ Retake Tab
- ๐ฒ Regenerate music with slight variations using different seeds
- ๐๏ธ Adjust variance to control how much the retake differs from the original
### ๐จ Repainting Tab
- ๐๏ธ Selectively regenerate specific sections of the music
- โฑ๏ธ Specify start and end times for the section to repaint
- ๐ Choose the source audio (text2music output, last repaint, or upload)
### โ๏ธ Edit Tab
- ๐ Modify existing music by changing tags or lyrics
- ๐๏ธ Choose between "only_lyrics" mode (preserves melody) or "remix" mode (changes melody)
- ๐๏ธ Adjust edit parameters to control how much of the original is preserved
### ๐ Extend Tab
- โ Add music to the beginning or end of an existing piece
- ๐ Specify left and right extension lengths
- ๐ Choose the source audio to extend
## Examples
The `examples/input_params` directory contains sample input parameters that can be used as references for generating music.
## ๐ License&Disclaimer
This project is licensed under [Apache License 2.0](./LICENSE)
ACE-Step enables original music generation across diverse genres, with applications in creative production, education, and entertainment. While designed to support positive and artistic use cases, we acknowledge potential risks such as unintentional copyright infringement due to stylistic similarity, inappropriate blending of cultural elements, and misuse for generating harmful content. To ensure responsible use, we encourage users to verify the originality of generated works, clearly disclose AI involvement, and obtain appropriate permissions when adapting protected styles or materials. By using ACE-Step, you agree to uphold these principles and respect artistic integrity, cultural diversity, and legal compliance. The authors are not responsible for any misuse of the model, including but not limited to copyright violations, cultural insensitivity, or the generation of harmful content.
## ๐ Acknowledgements
This project is co-led by ACE Studio and StepFun.
## ๐ Citation
If you find this project useful for your research, please consider citing:
```BibTeX
@misc{gong2025acestep,
title={ACE-Step: A Step Towards Music Generation Foundation Model},
author={Junmin Gong, Wenxiao Zhao, Sen Wang, Shengyuan Xu, Jing Guo},
howpublished={\url{https://github.com/ace-step/ACE-Step}},
year={2025},
note={GitHub repository}
}
```