This repository is the official implementation of SongComposer.
SongComposer: A Large Language Model for Lyric and Melody Composition in Song Generation
Shuangrui Ding*1, Zihan Liu*2,3, Xiaoyi Dong3, Pan Zhang3, Rui Qian1, Conghui He3, Dahua Lin3, Jiaqi Wang†3
1The Chinese University of Hong Kong, 2Beihang University, 3Shanghai AI Laboratory
* Equal Contribution. †Corresponding authors.
🚀 [2023/6/12] We enhanced SongComposer to a whole-song level and the demo page is updated!
🚀 [2023/3/21] The finetune code of SongComposer are publicly available and the weights of SongComposer_pretrain and SongComposer_sft are publicly available on Hugging Face🤗.
🚀 [2023/2/28] The paper and demo page are released!
Before running the code, make sure you have setup the environment and installed the required packages. Make sure you meet the above requirements, and then install the dependent libraries. Please refer to the installation section of finetune scripts.
We provide a simple example to show how to use SongComposer-SFT with 🤗 Transformers.
Please refer to our finetune scripts.
We have provide a notebook (inference.ipynb
) for the inference stage.
Audio samples, including our SongComposer and other baselines, are available on our Demo Page. The samples span four tasks related to song generation, covering both English and Chinese.
If you find our work helpful for your research, please consider giving a star ⭐ and citation 📝
@misc{ding2024songcomposer,
title={SongComposer: A Large Language Model for Lyric and Melody Composition in Song Generation},
author={Shuangrui Ding and Zihan Liu and Xiaoyi Dong and Pan Zhang and Rui Qian and Conghui He and Dahua Lin and Jiaqi Wang},
year={2024},
eprint={2402.17645},
archivePrefix={arXiv},
primaryClass={cs.SD}
}