Views
No views yet
| Property | Value |
|---|---|
| Base model | openbmb/VoxCPM1.5 (800M params) |
| LoRA rank (r) | 64 |
| LoRA alpha | 32 |
| Training steps | 3500 |
| Training samples | 400 clips |
| Final loss | 0.750 |
| Sample rate | 44.1 kHz |
pip install git+https://github.com/openbmb/VoxCPM.git1from voxcpm import VoxCPM
2from huggingface_hub import snapshot_download
3import soundfile as sf
4
5# Download LoRA
6lora_path = snapshot_download("aisyahsyihab/voxcpm-lora-indonesian-female-v2")
7
8# Load model with LoRA
9model = VoxCPM.from_pretrained(
10 "openbmb/VoxCPM1.5",
11 lora_weights_path=lora_path,
12 load_denoiser=False
13)
14
15# Generate speech
16audio = model.generate(
17 text="Halo, apa kabar hari ini?",
18 cfg_value=2.5,
19 normalize=True
20)
21
22# Save output
23sf.write("output.wav", audio, model.tts_model.sample_rate)1lora:
2 enable_lm: true
3 enable_dit: true
4 enable_proj: false
5 r: 64
6 alpha: 32
7 dropout: 0.0
8 target_modules_lm: ["q_proj", "v_proj", "k_proj", "o_proj"]
9 target_modules_dit: ["q_proj", "v_proj", "k_proj", "o_proj"]
10
11training:
12 batch_size: 4
13 grad_accum_steps: 4
14 learning_rate: 0.0001
15 warmup_steps: 100
16 max_steps: 4000