Views
No views yet
FunAudioLLM/Fun-CosyVoice3-0.5B-2512step_007500/.speech_embedding and llm_decoder modules.examples/mac_tts_server.py is one such loader.brew install ffmpeg on macOS).1step_007500/
2 config.json
3 lora_weights.pt
4 speech_embedding.pt
5 llm_decoder.pt
6examples/
7 mac_tts_server.py
8requirements-macos-api.txt
9checksums.sha256speech_embedding module.llm_decoder module.config.json.optimizer.pt or scheduler.pt, because those are only needed to resume training and are not required for inference.apache-2.0 on Hugging Face:FunAudioLLM/Fun-CosyVoice3-0.5B-2512FunAudioLLM/CosyVoiceCC BY-SA 3.0 or the Free Art License, with attribution requirements. Treat this repository as: base model Apache-2.0, fine-tune trained on CC BY-SA-style Polish audiobook data.v7, step 007500, timestamped 2026-05-16 07:11:32.step_007500/config.json:| Field | Value |
|---|---|
| step | 7500 |
| loss | 3.7873 |
| acc | 0.2557 |
| validation split | 0.05 |
| batch size | 4 |
| gradient accumulation | 8 |
| max epochs | 20 |
| max speech length | 750 |
| bf16 | true |
| gradient checkpointing | true |
| label smoothing | 0.1 |
| gradient clip | 1.0 |
| LoRA rank | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.1 |
| LoRA LR | 0.0001 |
| speech embedding LR | 0.0002 |
| decoder LR | 0.0002 |
| warmup steps | 300 |
cross_lingual_official25020260515large-v3-turbodataset_eop_prompt, dataset_cached_spk, official_cached_spk8You are a helpful assistant.<|endofprompt|>{text}examples/mac_tts_server.py applies the checkpoint this way:pretrained_models/Fun-CosyVoice3-0.5B.step_007500/config.json.lora_weights.pt into the LLM and merge it with merge_and_unload().speech_embedding.pt.llm_decoder.pt.q_proj, k_proj, v_proj, o_proj, down_proj1git clone https://github.com/FunAudioLLM/CosyVoice.git
2cd CosyVoice
3git submodule update --init --recursive
4python -m venv .venv
5source .venv/bin/activate
6pip install -r ../requirements-macos-api.txt1from modelscope import snapshot_download
2
3snapshot_download(
4 "FunAudioLLM/Fun-CosyVoice3-0.5B-2512",
5 local_dir="pretrained_models/Fun-CosyVoice3-0.5B",
6)1cd ..
2huggingface-cli download Stanslab/cosyvoice3-wolnelektury-v7 \
3 --local-dir cosyvoice3-wolnelektury-v71# Option 1: Provide a default reference audio file at startup
2python ../cosyvoice3-wolnelektury-v7/examples/mac_tts_server.py \
3 --model-dir pretrained_models/Fun-CosyVoice3-0.5B \
4 --checkpoint-dir ../cosyvoice3-wolnelektury-v7/step_007500 \
5 --prompt-wav path/to/your/reference_audio.wav \
6 --host 127.0.0.1 \
7 --port 5055
8
9# Option 2: Start without a default file (you must upload a WAV in the API call)
10python ../cosyvoice3-wolnelektury-v7/examples/mac_tts_server.py \
11 --model-dir pretrained_models/Fun-CosyVoice3-0.5B \
12 --checkpoint-dir ../cosyvoice3-wolnelektury-v7/step_007500 \
13 --port 5055Note on--prompt-wav: This model requires a short reference audio clip (WAV, a few seconds of clean Polish speech) to perform cross-lingual or zero-shot synthesis. You can provide a default file at startup OR upload it dynamically with each API request (see below).
curl http://127.0.0.1:5055/health1# Using the default prompt wav (if provided at server startup):
2curl -X POST http://127.0.0.1:5055/tts \
3 -F "text=To jest test polskiej syntezy mowy." \
4 -F "speed=1.0" \
5 --output output.wav
6
7# OR uploading a specific reference voice for this request:
8curl -X POST http://127.0.0.1:5055/tts \
9 -F "text=To jest test z dynamicznym głosem." \
10 -F "prompt_wav=@my_voice_sample.wav" \
11 --output output_dynamic.wavYou are a helpful assistant.<|endofprompt|><|endofprompt|>.samples/ directory:1# Generate a sample
2curl -X POST http://127.0.0.1:5055/tts \
3 -F "text=Witaj, to jest przykładowy głos wygenerowany przez model CosyVoice3 dostrojony na danych Wolne Lektury." \
4 --output sample_v7.wav
5
6# Upload to Hugging Face
7hf upload Stanslab/cosyvoice3-wolnelektury-v7 sample_v7.wav samples/sample_v7.wavchecksums.sha256. The original preserved full training archive, not included here, had SHA256:898ab90db149f2e564356f34f21efb57d7f9828b31ef5c4d0066c627b4388749