Downloads · 30 days
10
20% of all-time downloads
actorcritic/voxcpm2-finetuned-100hr
voxcpm2-finetuned-100hr is a text-to-speech model from actorcritic. Use it when you need text read aloud. It is set up for voxcpm.
This is a fine-tuned version of the VoxCPM2 model, optimized for Bengali text-to-speech generation. It was trained on a 100-hour Bengali speech dataset.
Downloads · 30 days
10
20% of all-time downloads
All-time downloads
51
Public
Parameters
2.3B
9.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.pth5 GB · 52%
From the Hugging Face model README
This is a fine-tuned version of the VoxCPM2 model, optimized for Bengali text-to-speech generation. It was trained on a 100-hour Bengali speech dataset.
Training a massive 3-billion parameter multimodal architecture normally requires multiple A100s. To squeeze the entire fine-tuning pipeline onto a single 48GB GPU (NVIDIA RTX A6000), the following advanced optimizations were utilized:
bfloat16, bypassing standard PyTorch 32-bit overhead and cutting memory usage in half.PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True was enabled, which prevented debilitating VRAM fragmentation crashes during dynamic context length generation and gradient accumulation.batch_size: 1 paired with grad_accum_steps: 32 (effective batch size 32) and capped max_batch_tokens: 3000 to prevent unpredictable sequence lengths from OOMing the 48GB limit during backward passes.(Note: The checkpoint with the lowest validation loss was actually step 500 (val loss: 0.8210), but this repository contains the final converged weights at step 1122).
You can use this model instantly by loading it with the official voxcpm repository:
import sys
import torch
import soundfile as sf
import os
# Ensure you have cloned the VoxCPM repo and added it to your python path
sys.path.insert(0, "/path/to/VoxCPM/src")
import voxcpm
# 1. Provide the path to these downloaded HF weights
model_path = "./voxcpm2-finetuned-100hr"
# 2. Initialize the model
model = voxcpm.VoxCPM(voxcpm_model_path=model_path)
# 3. Enter your target text
text = "ধান ফুরাল, পান ফুরাল, খাজনার উপায় কী? আর কটা দিন সবুর করো, রসুন বুনেছি।"
print(f"Generating audio for text: '{text}'")
# 4. Generate
wav = model.generate(
text=text,
cfg_value=2.0,
inference_timesteps=10,
normalize=True,
denoise=False
)
# 5. Save the output
output_path = "output.wav"
sample_rate = model.tts_model.sample_rate
sf.write(output_path, wav, sample_rate)
print(f"✅ Success! Audio saved to {output_path}")