Views
No views yet
saumilyajj/Qwen3-TTS-12Hz-1.7B-Base-hindi-ft. Uploads intentionally omit the data/ directory (prepared training corpus); datasets are fetched locally via scripts/download_datasets.py / ./scripts/train.sh. See MODEL_CARD.md for checkpoint layout and training metadata.1pip install -r requirements.txt
2# Optional: pip install bitsandbytes # Reduces optimizer memory ~4x during training1# Using sample reference audio (English)
2python scripts/quick_test.py --ref-audio sample_ref.wav --text "नमस्ते, यह हिंदी में एक परीक्षण है।" --output output.wav
3
4# Download sample ref audio if you don't have one
5python scripts/quick_test.py --download-sample --text "अभी न जाओ छोड़ कर के दिल अभी भरा नहीं" --output hindi_output.wav
6
7# Using Hindi reference voice
8python scripts/quick_test.py --ref-audio data/hindi/audio/utt_000001.wav \
9 --text "अभी न जाओ छोड़ कर के दिल अभी भरा नहीं अभी अभी तो आई हो अभी अभी तो" \
10 --language Auto --output hindi_output.wavpython scripts/inference.py --ref-audio sample_ref.wav --text "Your text here" --output output.wav1# Default: Base model on port 7860
2./scripts/run_radio.sh
3
4# Or directly
5python scripts/radio_app.py --model Qwen/Qwen3-TTS-12Hz-1.7B-Base --port 78601# 1. Set GPU (e.g., dedicated GPU 3)
2export CUDA_VISIBLE_DEVICES=3
3
4# 2. Download datasets and run full pipeline
5./scripts/train.sh
6
7# Or step by step:
8./scripts/train.sh download # Download IndicTTS-Hindi + replay data
9./scripts/train.sh # Prepare data + fine-tunemodel/ (paths.output_dir in config.yaml). Use checkpoint-final or checkpoint-best:python scripts/quick_test.py --model model/checkpoint-final --ref-audio sample_ref.wav --text "नमस्ते" --output ft_output.wavtext-2-voice/
├── config.yaml # GPU, paths, datasets, training config
├── scripts/
│ ├── inference.py # Core load_model + generate (voice cloning)
│ ├── quick_test.py # CLI for single-phrase generation
│ ├── radio_app.py # Gradio app (default voices + upload)
│ ├── run_radio.sh # Launch Gradio with config
│ ├── train.sh # Fine-tuning pipeline
│ ├── download_datasets.py
│ ├── merge_with_replay.py
│ └── eval_phrases.py # Test phrases for batch eval
├── finetuning/
│ ├── prepare_data.py # Extract audio codes for training
│ ├── sft_12hz.py # Fine-tuning script
│ └── dataset.py
├── data/
│ ├── hindi/ # Hindi audio + train_raw.jsonl (local only; not pushed to HF)
│ └── replay/ # English replay data
├── model/ # Fine-tuned checkpoints (checkpoint-final, checkpoint-best)
└── sample_ref.wav # Sample reference (or use --download-sample)config.yaml for:gpu.device_ids, gpu.device — target GPU for training/inferencepaths.data_dir, paths.output_dirdatasets.hindi.primary, datasets.replay_sourcestraining.batch_size, lr, num_epochs, hindi_ratio, replay_ratio