Downloads · 30 days
8
10% of all-time downloads
RedbeardNZ/songcomposer_sft
songcomposer_sft is a text generation model from RedbeardNZ. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
<p align="center" <b<font size="6"[ACL 2025] SongComposer</font</b <p
Downloads · 30 days
8
10% of all-time downloads
All-time downloads
84
Public
Repo size
33.4 GB
Likes
0
Public
Click a slice to open those files.
.bin16.7 GB · 100%
From the Hugging Face model README
SongComposer is a language large model (LLM) based on InternLM2 for lyric and melody composition in song generation.
We release SongComposer series in two versions:
To load the SongComposer_sft model using Transformers, use the following code:
from transformers import AutoTokenizer, AutoModel
ckpt_path = "Mar2Ding/songcomposer_sft"
tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
model = AutoModel.from_pretrained(ckpt_path, trust_remote_code=True).cuda().half()
prompt = 'Create a song on brave and sacrificing with a rapid pace.'
model.inference(prompt, tokenizer)
通过以下的代码加载 SongComposer_sft 模型
from transformers import AutoTokenizer, AutoModel
ckpt_path = "Mar2Ding/songcomposer_sft"
tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
model = AutoModel.from_pretrained(ckpt_path, trust_remote_code=True).cuda().half()
prompt = 'Create a song on brave and sacrificing with a rapid pace.'
model.inference(prompt, tokenizer)
The code is licensed under Apache-2.0, while model weights are fully open for academic research and also allow free commercial usage.