CosyVoice2 Korean SFT v6 - Epoch 3

CosyVoice2 Korean SFT

ํ•œ๊ตญ์–ด ์–ต์–‘๊ณผ ๊ฐ์ •ยท๋ฐœํ™” ์Šคํƒ€์ผ์„ ๊ฐ•ํ™”ํ•˜๊ธฐ ์œ„ํ•ด CosyVoice2-0.5B์˜ LLM ๋ถ€๋ถ„์„ supervised fine-tuningํ•œ community checkpoint์ž…๋‹ˆ๋‹ค. Claude์™€ Codex์— ์—ฐ๊ฒฐํ•˜๋Š” ๋กœ์ปฌ MCP๋Š” cosyvoice2-ko-sft-mcp ์ €์žฅ์†Œ์—์„œ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Highlights

  • Local privacy: ๋ฌธ์žฅ๊ณผ reference audio๋ฅผ ์™ธ๋ถ€ TTS API๋กœ ์ „์†กํ•˜์ง€ ์•Š๊ณ  ์‚ฌ์šฉ์ž PC์—์„œ ํ•ฉ์„ฑ
  • Korean prosody: ํ•œ๊ตญ์–ด ๊ฐ์ •ยท๋ฐœํ™” ์Šคํƒ€์ผ ๋ฐ์ดํ„ฐ ๊ธฐ๋ฐ˜ SFT
  • Accessible GPU target: 0.5B๊ธ‰ LLM ์ฝ”์–ด, 12GB VRAM๊ธ‰ RTX 3060์—์„œ ์‚ฌ์šฉ ๊ฐ€๋Šฅ, RTX 5060 Ti 16GB์—์„œ๋Š” ๋” ์—ฌ์œ  ์žˆ๋Š” ๊ตฌ๋™
  • Unlimited local retries: ๋‹ค์šด๋กœ๋“œ ํ›„ ํ˜ธ์ถœ๋‹น ๊ณผ๊ธˆยทAPI rate limit ์—†์ด ๋ฐ˜๋ณต ์ƒ์„ฑ
  • Agent integration: Claude Code, Claude Desktop, Codex์—์„œ ๊ณตํ†ต MCP tool๋กœ ํ˜ธ์ถœ
  • Offline inference: ์ตœ์ดˆ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ๋๋‚˜๋ฉด Hugging Face offline mode ์ง€์›

0.5B๋Š” ์–ธ์–ด๋ชจ๋ธ ์ฝ”์–ด์˜ ๊ทœ๋ชจ๋ฅผ ๋œปํ•ฉ๋‹ˆ๋‹ค. ์ „์ฒด TTS ์‹คํ–‰์—๋Š” flow, vocoder, tokenizer, speaker encoder ๋ฐ ONNX ๊ตฌ์„ฑ์š”์†Œ๊ฐ€ ์ถ”๊ฐ€๋กœ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

Verified Hardware

GPU Runtime Result
RTX 5060 Ti 16GB PyTorch 2.8.0, CUDA 12.8, FP16 7.04s WAV, RTF 1.31, peak allocated 3.38GiB, peak reserved 4.06GiB
RTX 3090 24GB PyTorch 2.3.1, CUDA 12.1 7.76s WAV, RTF 1.07
RTX 3060 12GB 12GB-class target Supported with memory headroom based on the measured 4.06GiB peak reserve

Exact throughput depends on driver, PyTorch build, prompt length, and whether the model cache is warm.

Model Details

Item Value
Base model FunAudioLLM/CosyVoice2-0.5B
Fine-tuned component CosyVoice2 LLM
Selected checkpoint SFT v6 Epoch 3
Training precision BF16 autocast
Saved tensor dtype FP32
Gradient accumulation 32
Learning rate 1e-5
Checkpoint metadata epoch 3, step 344
State-dict tensor entries 295
State-dict parameter entries 641,938,468
Sample rate 24 kHz

Epoch 3 was selected after per-epoch validation and listening comparison. The recorded validation snapshot reports loss 3.0528906387 and accuracy 0.2699536899. These training metrics are not a standalone measure of perceived TTS quality; broader CER, speaker-similarity, RTF, and loudness benchmarks will be added in a later model-card revision.

Required Base Files

This repository intentionally contains only the fine-tuned LLM artifact. Download the remaining components from the pinned FunAudioLLM/CosyVoice2-0.5B base model:

  • cosyvoice2.yaml
  • CosyVoice-BlankEN/
  • flow.pt
  • hift.pt
  • campplus.onnx
  • speech_tokenizer_v2.onnx

The companion MCP installer assembles the base snapshot and overlays llm.safetensors automatically.

Local MCP Usage

git clone --recursive https://github.com/feedingstick321-maker/cosyvoice2-ko-sft-mcp.git
cd cosyvoice2-ko-sft-mcp
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1
.\.venv\Scripts\cosyvoice-ko-prepare.exe

Then register the executable with an MCP client:

codex mcp add cosyvoice-ko -- "$PWD\.venv\Scripts\cosyvoice-ko-mcp.exe"
claude mcp add --transport stdio --scope user cosyvoice-ko -- "$PWD\.venv\Scripts\cosyvoice-ko-mcp.exe"

Training Data

The model was fine-tuned using AI Hub's ๊ฐ์„ฑ ๋ฐ ๋ฐœํ™” ์Šคํƒ€์ผ๋ณ„ ์Œ์„ฑํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ. The source audio, labels, parquet files, speech tokens, embeddings, and production audio are not included in this repository.

๋ณธ ๋ชจ๋ธ์€ ๊ณผํ•™๊ธฐ์ˆ ์ •๋ณดํ†ต์‹ ๋ถ€์˜ ์žฌ์›์œผ๋กœ ํ•œ๊ตญ์ง€๋Šฅ์ •๋ณด์‚ฌํšŒ์ง„ํฅ์›์˜ ์ง€์›์„ ๋ฐ›์•„ ๊ตฌ์ถ•๋œ AI Hub์˜ '๊ฐ์„ฑ ๋ฐ ๋ฐœํ™” ์Šคํƒ€์ผ๋ณ„ ์Œ์„ฑํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ'๋ฅผ ํ™œ์šฉํ•˜์—ฌ ํ•™์Šต๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Dataset page: https://www.aihub.or.kr/aihubdata/data/view.do?dataSetSn=466

Intended Use

  • Korean narration, podcast drafts, local agent workflows, accessibility prototypes
  • Private/local synthesis where text and reference audio should remain on-device
  • Research and evaluation of Korean prosody and voice-conditioned TTS

Limitations

  • Output quality depends strongly on reference-audio quality and matching prompt text.
  • Long text should be segmented into sentence or utterance units.
  • This checkpoint does not include a distributable fixed-speaker spk2info.pt; use a reference voice you have permission to use.
  • It may produce pronunciation, prosody, loudness, or stability errors and requires listening review for production use.
  • RTX 3060/5060 Ti support refers to local inference. Throughput depends on driver, PyTorch build, text length, and selected precision.

Responsible Use

Do not impersonate people, evade consent, or distribute generated audio deceptively. Users are responsible for the rights to every registered reference voice and for clearly disclosing synthetic audio where required.

License and Attribution

Code and base model lineage are Apache-2.0. See LICENSE and NOTICE. This is a community model and is not an official FunAudioLLM, Alibaba, NIA, Anthropic, or OpenAI release.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for sonselfa/CosyVoice2-KO-SFT-v6-epoch3

Finetuned
(10)
this model