Files
Table with columns: Path, Contents| Path | Contents |
|---|
adapter_model.safetensors, adapter_config.json | use this: the adapter at step 4,500 (byte-identical to checkpoint-4500/) |
MANIFEST.json | role, step, size and SHA-256 of every file |
checkpoint-4500/ | the last checkpoint with optimizer, scheduler and trainer_state.json, for resuming |
checkpoints/checkpoint-*/ | earlier adapters (every 500 steps from 500 to 4,500) |
trainer_state.json | loss curve and step log |
inference.py | loads base + adapter + SNAC and writes two example sentences |
Quick start
The base model is gated: request access at
canopylabs/orpheus-3b-0.1-pretrained, then log in.
A GPU with 16 GB or more is recommended (Apple MPS and CPU work, slowly).
pip install torch torchaudio transformers peft snac soundfile huggingface_hubhuggingface-cli loginhuggingface-cli download EMTIAZZ/bangladeshi-bangla-tts-orpheus-3b-small-data inference.py --local-dir .python inference.py # writes output_1_happy.wav and output_2_calm.wav (24 kHz)
inference.py loads the base model, resizes its embeddings to 156,940 tokens, applies this adapter, generates
audio tokens (temperature 0.6, top-p 0.95, repetition penalty 1.1) and decodes them with
hubertsiuzdak/snac_24khz. Emotion tags from Orpheus such as <laugh>, <sigh> and <gasp> also work.
Training status
Training was stopped at step 4,500 of 97,750 planned steps (epoch 0.46 of 10), as recorded in
checkpoint-4500/trainer_state.json. The released adapter is that step-4,500 checkpoint. Intermediate adapters in
checkpoints/ are labelled by step in their folder names.
Reproduce training
- Base model:
canopylabs/orpheus-3b-0.1-pretrained, LoRA via Unsloth, Hugging Face Trainer, one H100.
- Data: ~39,000 Bangla clips from one speaker (Adiba).
- The exact training arguments are saved in
checkpoint-4500/training_args.bin and the full log in
checkpoint-4500/trainer_state.json; LoRA rank, alpha and target modules are in adapter_config.json.
- To continue training, load
checkpoint-4500/ with Trainer(..., resume_from_checkpoint="checkpoint-4500").
- The Bangla TTS data pipeline is public at EMTIAZ-RUET/bangladeshi-bangla-tts-finetuning.
Other versions
Demo: bangladeshi-bangla-tts-demo-orpheus (paused)
Limitations
- Needs access to the gated base model.
- Slow on CPU.
- English loanwords may come out with English phonemes.
Author
Emtiaz Uddin Ahmed, Dhaka, Bangladesh · Website · GitHub · Hugging Face