--- 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

---

Org Logo

## 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

ACE-Step Framework

## ๐Ÿ“ 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

ACE-Step Framework

### ๐ŸŽฏ 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 ![Demo Interface](fig/demo_interface.png) ### ๐Ÿ” 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} } ```