VoxCPM2 Ewe β Full SFT
Full fine-tune of VoxCPM2 on Ewe speech data. Trained by FarmerlineML for the darli AI agricultural voice assistant.
Training Details
| Parameter | Value |
|---|---|
| Base model | openbmb/VoxCPM2 (2B) |
| Method | Full SFT (all parameters) |
| Learning rate | 1e-5 |
| Batch size | 1 (grad accum 16, effective batch 16) |
| Sample rate | 16kHz (AudioVAE encoder input) |
| Final step | 1550 |
Validation Loss:
| Step | loss/total | loss/diff | loss/stop |
|---|---|---|---|
| 0 | 0.722163 | 0.644357 | 0.051871 |
| 500 | 0.611810 | 0.600968 | 0.007228 |
| 1000 | 0.559539 | 0.557900 | 0.001092 |
| 1500 | 0.601089 | 0.591601 | 0.006325 |
Datasets:
Usage
from voxcpm import VoxCPM
import soundfile as sf
import numpy as np
model = VoxCPM.from_pretrained(
"FarmerlineML/voxcpm2-ewe-sft",
load_denoiser=False,
)
def trim_audio(wav, sr, silence_thresh=0.01, max_silence_secs=2.0):
abs_wav = np.abs(wav)
window = int(0.05 * sr)
n_wins = len(abs_wav) // window
max_sil = int(max_silence_secs / 0.05)
silence_count, cut_sample = 0, len(wav)
for w in range(n_wins):
chunk = abs_wav[w * window:(w + 1) * window]
if chunk.max() < silence_thresh:
silence_count += 1
if silence_count >= max_sil:
cut_sample = (w - max_sil + 1) * window
break
else:
silence_count = 0
return wav[:min(cut_sample + int(0.1 * sr), len(wav))]
wav = model.generate(
text="Εdi na wΓ²", # TODO: replace with a real Ewe example phrase
reference_wav_path="your_ewe_speaker.wav",
cfg_value=2.0,
inference_timesteps=15,
retry_badcase=False,
max_len=max(50, len(text) * 4),
)
wav = trim_audio(wav, 48000)
sf.write("output.wav", wav, 48000)
Repo Structure
βββ model.safetensors # Model weights (~9.2GB)
βββ audiovae.pth # AudioVAE decoder
βββ config.json # Model architecture config
βββ tokenizer.json # Tokenizer
βββ training/
β βββ train.log # Full training log
β βββ val_loss_summary.txt # Validation losses per checkpoint
β βββ training_state.json # Final training state
βββ tensorboard/ # TensorBoard event files
Notes
- Reference audio is required at inference for voice identity anchoring
- Use
max_len=max(50, len(text) * 4)to prevent hallucination after sentence end - A post-generation 2-second silence trim is strongly recommended
- Downloads last month
- 112
Model tree for FarmerlineML/voxcpm2-ewe-sft
Base model
openbmb/VoxCPM2