jssaluja/sravaani-sggs-ncer-train-196823-epochs-21-test-2246
This model fine-tunes the pretrained SraVaani-1.0 FastConformer encoder for Punjabi Gurbani automatic speech recognition. It uses a new 512-piece Gurbani SentencePiece BPE vocabulary and CTC head. Music-only examples with empty transcripts account for approximately 2.5% of training presentations. The original speech-only release is a separate checkpoint.
Model description
- Audio: 16 kHz mono, with the 128-bin SraVaani frontend.
- Output: 512 SentencePiece pieces and a CTC blank with ID 512.
- Final weights: uniform average of epochs 17–21.
Intended uses & limitations
The model is intended for Sri Guru Granth Sahib paath and kirtan. Verify its raw output against Gurbani before showing it to users. Music-only validation measures text emitted on these clips; it does not measure whether the model preserves quiet vocals or generalizes to unrelated recordings. The speech set was monitored during training and is development data rather than a new blind test. No license metadata is asserted here; the original release's terms should not be assumed to cover this checkpoint.
Inference
final/model.pt contains the encoder and CTC head state dictionaries. Use the matching final/gurbani_512.model tokenizer and the SraVaani frontend with greedy CTC decoding. This is not a Transformers pipeline() or a self-contained NeMo .nemo checkpoint. The earlier int8 ONNX release corresponds to the original speech-only model.
For training resume, last-checkpoint/checkpoint.pt stores the latest epoch's model, optimizer, scheduler, and tokenizer. See the training source.
Training and evaluation data
Training used 196,507 eligible verse-only speech clips and 316 distinct music-only clips, for 196,823 distinct training clips. The sampler repeated the music training clips for 5,039 music presentations per epoch. Music validation used 80 clips from different source videos than the music training clips. Speech development covered 2,246 clips: 677 kirtan and 1,569 paath. Source collection names are not published.
Training procedure
Training hyperparameters
- Head-only with frozen encoder: 1 epoch at learning rate 0.001.
- Full model: 20 epochs, encoder learning rate 5e-05, and head learning rate 10 times higher.
- AdamW with 1000 warmup steps, cosine decay, and weight decay 0.01.
- Duration bucketing with up to 400.0 padded audio seconds per training batch, base-model SpecAugment, bfloat16 autocast, and seed 42.
Training results
The averaged checkpoint was evaluated with greedy CTC decoding. Values below are error rates as fractions. WER is word error rate and CER is character error rate. CCER removes spaces before computing CER; NCER removes spaces and Gurmukhi matras.
| Speech development population | WER | CER | NCER | CCER |
|---|---|---|---|---|
| All (2,246) | 0.1447 | 0.0478 | 0.0341 | 0.0540 |
| Kirtan (677) | 0.2126 | 0.0855 | 0.0858 | 0.0957 |
| Paath (1,569) | 0.1334 | 0.0415 | 0.0253 | 0.0469 |
On music-only validation, 1 of 80 clips produced nonempty text (1.25%). The per-epoch results below are for individual checkpoints before averaging. See TensorBoard and log_history.json for full metrics.
| Epoch | Phase | Training CTC loss | CCER | CER | NCER | WER | Kirtan WER | Kirtan NCER | Music clips with text |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 7.2148 | 0.2193 | 0.1970 | 0.1518 | 0.5463 | 0.7340 | 0.3525 | 4/80 |
| 2 | 2 | 1.4889 | 0.1132 | 0.1007 | 0.0633 | 0.3304 | 0.4558 | 0.1660 | 0/80 |
| 3 | 2 | 1.0540 | 0.1078 | 0.0960 | 0.0653 | 0.3045 | 0.4232 | 0.1581 | 0/80 |
| 4 | 2 | 0.9280 | 0.1061 | 0.0954 | 0.0649 | 0.2940 | 0.4077 | 0.1649 | 0/80 |
| 5 | 2 | 0.8099 | 0.0979 | 0.0867 | 0.0596 | 0.2751 | 0.3921 | 0.1540 | 0/80 |
| 6 | 2 | 0.7243 | 0.1004 | 0.0903 | 0.0644 | 0.2791 | 0.3714 | 0.1476 | 2/80 |
| 7 | 2 | 0.6485 | 0.0924 | 0.0819 | 0.0568 | 0.2569 | 0.3480 | 0.1415 | 0/80 |
| 8 | 2 | 0.5883 | 0.0839 | 0.0742 | 0.0522 | 0.2327 | 0.3284 | 0.1334 | 0/80 |
| 9 | 2 | 0.5223 | 0.0764 | 0.0679 | 0.0475 | 0.2116 | 0.3123 | 0.1227 | 5/80 |
| 10 | 2 | 0.4628 | 0.0790 | 0.0698 | 0.0485 | 0.2139 | 0.2988 | 0.1189 | 1/80 |
| 11 | 2 | 0.4135 | 0.0715 | 0.0633 | 0.0443 | 0.1973 | 0.2754 | 0.1085 | 2/80 |
| 12 | 2 | 0.3609 | 0.0655 | 0.0579 | 0.0397 | 0.1807 | 0.2602 | 0.1011 | 1/80 |
| 13 | 2 | 0.3218 | 0.0653 | 0.0576 | 0.0401 | 0.1800 | 0.2532 | 0.1024 | 2/80 |
| 14 | 2 | 0.2841 | 0.0623 | 0.0554 | 0.0387 | 0.1719 | 0.2389 | 0.0953 | 0/80 |
| 15 | 2 | 0.2562 | 0.0602 | 0.0535 | 0.0385 | 0.1627 | 0.2389 | 0.0978 | 2/80 |
| 16 | 2 | 0.2317 | 0.0567 | 0.0502 | 0.0365 | 0.1540 | 0.2254 | 0.0921 | 0/80 |
| 17 | 2 | 0.2090 | 0.0578 | 0.0514 | 0.0368 | 0.1560 | 0.2217 | 0.0902 | 1/80 |
| 18 | 2 | 0.1905 | 0.0573 | 0.0505 | 0.0356 | 0.1554 | 0.2234 | 0.0904 | 1/80 |
| 19 | 2 | 0.1753 | 0.0570 | 0.0505 | 0.0361 | 0.1540 | 0.2228 | 0.0903 | 1/80 |
| 20 | 2 | 0.1657 | 0.0533 | 0.0472 | 0.0338 | 0.1436 | 0.2108 | 0.0833 | 1/80 |
| 21 | 2 | 0.1582 | 0.0541 | 0.0479 | 0.0347 | 0.1458 | 0.2134 | 0.0858 | 1/80 |
Framework versions
Training ran with PyTorch 2.11.0 (CUDA 12.8), using the AI4Bharat NeMo fork.