jssaluja/sravaani-sggs-ncer-train-196507-epochs-21-test-2246
This model is a CTC fine-tune of the pretrained SraVaani-1.0 FastConformer encoder, fine-tuned end to end (ARTPARK-IISc/SraVaani-1.0) with a new 512-piece Gurbani SentencePiece (BPE) vocabulary and CTC head, trained on private Punjabi Gurbani speech. It achieves the following results on the evaluation set (final model: average of epochs 17, 18, 19, 20, 21, greedy CTC):
- Wer: 0.1421
- Cer: 0.0480
- Ncer: 0.0347
- Ccer: 0.0539
- Kirtan rows only (677 rows): Wer 0.2017, Cer 0.0856, Ccer 0.0960, Ncer 0.0851
- Paath rows only (1569 rows): Wer 0.1322, Cer 0.0417, Ccer 0.0467, Ncer 0.0261
Model description
- Architecture: SraVaani-1.0 FastConformer encoder, fine-tuned end to end + new 1x1 convolution CTC head
- Output: 512 pieces + CTC blank, blank id 512 (the last id)
- train_scope:
verse_only - final model: average of the last 5 epochs
- train rows: 196507
- test rows: 2246
Intended uses & limitations
Punjabi Gurbani (Sri Guru Granth Sahib paath and kirtan) ASR. Output is raw acoustic text and should be matched to real Gurbani before it is shown to users.
Not a transformers checkpoint, so pipeline() will not load it.
Inference
For ready-to-run CPU inference, use the int8 ONNX export: jssaluja/sggs-asr-sravaani-v2-onnx.
The final/model.pt file contains the fine-tuned encoder and head state dictionaries; export it with
export_sravaani_onnx.py.
The model uses 16 kHz audio, a 128-bin SraVaani frontend, and a 512-piece SentencePiece tokenizer.
Training and evaluation data
Train rows: 196507. Eval rows: 2246. Source collection names are not published.
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- phase 1 (encoder frozen, head only): 1 epoch, learning_rate: 0.001
- phase 2 (full model): 20 epochs, learning_rate: 5e-05 (encoder), 10x for the head
- warmup_steps: 1000, weight_decay: 0.01
- batches: padded audio up to 400.0 seconds per batch, duration-bucketed
- seed: 42
- optimizer: AdamW, linear warmup then decay
- augmentation: SpecAugment from the base model
- mixed_precision_training: bf16 autocast
- final weights: average of the last 5 epochs
Training results
(table generated directly from the epoch-end evaluation history, keyed by metric name. Phase 1 is the head-only epoch, phase 2 the full-model epochs. Training Loss is the CTC loss.)
| Training Loss | Epoch | Phase | Ccer | Cer | Ncer | Wer | Kirtan Wer | Kirtan Ncer |
|---|---|---|---|---|---|---|---|---|
| 4.1984 | 1.0 | 1 | 0.2322 | 0.2097 | 0.1687 | 0.5599 | 0.7222 | 0.3738 |
| 1.5618 | 2.0 | 2 | 0.1190 | 0.1067 | 0.0741 | 0.3330 | 0.4519 | 0.1704 |
| 1.0721 | 3.0 | 2 | 0.1080 | 0.0966 | 0.0678 | 0.2957 | 0.4275 | 0.1734 |
| 0.9406 | 4.0 | 2 | 0.0959 | 0.0849 | 0.0582 | 0.2678 | 0.3564 | 0.1399 |
| 0.8269 | 5.0 | 2 | 0.0986 | 0.0875 | 0.0651 | 0.2673 | 0.3664 | 0.1515 |
| 0.7373 | 6.0 | 2 | 0.0962 | 0.0864 | 0.0588 | 0.2661 | 0.3430 | 0.1374 |
| 0.6529 | 7.0 | 2 | 0.0857 | 0.0758 | 0.0517 | 0.2349 | 0.3304 | 0.1390 |
| 0.5783 | 8.0 | 2 | 0.0741 | 0.0653 | 0.0464 | 0.2051 | 0.2925 | 0.1168 |
| 0.5203 | 9.0 | 2 | 0.0770 | 0.0686 | 0.0487 | 0.2100 | 0.2836 | 0.1156 |
| 0.4707 | 10.0 | 2 | 0.0729 | 0.0643 | 0.0481 | 0.1953 | 0.2908 | 0.1216 |
| 0.4187 | 11.0 | 2 | 0.0695 | 0.0618 | 0.0430 | 0.1905 | 0.2660 | 0.1042 |
| 0.3780 | 12.0 | 2 | 0.0758 | 0.0677 | 0.0476 | 0.1991 | 0.2630 | 0.1077 |
| 0.3417 | 13.0 | 2 | 0.0664 | 0.0590 | 0.0418 | 0.1769 | 0.2415 | 0.1015 |
| 0.3014 | 14.0 | 2 | 0.0608 | 0.0544 | 0.0394 | 0.1630 | 0.2276 | 0.0945 |
| 0.2640 | 15.0 | 2 | 0.0613 | 0.0545 | 0.0398 | 0.1624 | 0.2252 | 0.0957 |
| 0.2472 | 16.0 | 2 | 0.0603 | 0.0534 | 0.0387 | 0.1599 | 0.2213 | 0.0934 |
| 0.2228 | 17.0 | 2 | 0.0632 | 0.0561 | 0.0409 | 0.1659 | 0.2280 | 0.0970 |
| 0.2036 | 18.0 | 2 | 0.0558 | 0.0496 | 0.0362 | 0.1482 | 0.2076 | 0.0866 |
| 0.1902 | 19.0 | 2 | 0.0558 | 0.0499 | 0.0363 | 0.1480 | 0.2030 | 0.0866 |
| 0.1797 | 20.0 | 2 | 0.0559 | 0.0498 | 0.0358 | 0.1464 | 0.2117 | 0.0919 |
| 0.1700 | 21.0 | 2 | 0.0524 | 0.0463 | 0.0341 | 0.1366 | 0.2004 | 0.0861 |
Framework versions
- Pytorch 2.11.0
- NeMo: AI4Bharat fork 8dce88cf8e