A LoRA adapter for FunAudioLLM/CosyVoice2-0.5B that lets the input text specify the reading and pitch accent of a Japanese word with an inline UtterTune tag, trained without recorded speech.
Paper: arXiv:2609.17234 Code: https://github.com/shuheikatoinfo/UtterTune-SelfDistill
iic/CosyVoice2-0.5B at commit
ca7f2c632feaf4c6765dff5b42b1f758a6c6b03e; the Hugging Face repository is linked above.llm.pt, a Qwen2 LM) is adapted. The flow decoder and vocoder
are unchanged.q_proj, k_proj, v_proj, o_proj of the language model.<PHON_START> and <PHON_END>, are added to the CosyVoice-BlankEN tokenizer in this
order (appended after the existing vocabulary); the embedding matrix is resized, and only these two rows are
trained. All other parameters are frozen.teachers/cosyvoice2/ in the companion dataset). Each target is
the base model's own speech-token sequence for the plain sentence; the input is the same sentence with the word
replaced by the tag.<PHON_START>フク'<PHON_END>に関する記事を読んでみた。
The tag holds the reading in katakana. An apostrophe follows the accent-nucleus mora (フク', ゲ'ンカン,
レーゾ'ーコ); no apostrophe means the word is accentless (heiban, e.g. イス).
| File | Content |
|---|---|
adapter_model.safetensors, adapter_config.json |
PEFT LoRA adapter for the Qwen2 LM inside CosyVoice 2 |
embed_patch.safetensors |
embed_rows: tensor[2, 896] fp32, the embeddings of <PHON_START> and <PHON_END> in that order |
LICENSE |
Apache License 2.0 |
SHA256SUMS |
Checksums of the files above |
To use: add the two tokens to the tokenizer, resize the language model's embeddings, write embed_rows into the
two new rows, then apply the adapter with peft.PeftModel.from_pretrained.
Apache License 2.0, as for the base model. This adapter is a modification of CosyVoice2-0.5B made by the author of the paper above.
adapter_model.safetensors 9 MBembed_patch.safetensors 7.2 kBFunAudioLLM/CosyVoice2-0.5B