jssaluja/zipformer-large-causal-sggs-ncer-train-107387-epochs-50-test-1569
This model is a Zipformer transducer (icefall zipformer size large) trained from scratch on private Punjabi Gurbani speech.
It achieves the following results on the evaluation set:
- Loss: 2.0341
- Wer: 0.5329
- Wil: 0.7453
- Mer: 0.5183
- Cer: 0.2170
- Ncer: 0.1884
- Ccer: 0.2389
Model description
- Architecture: icefall Zipformer
largetransducer, 151,203,546 parameters - train_scope:
verse_only - best_model_metric:
ncer(0.18823617788461539 at epoch 48) - smoke_test: False
- train rows: 107387
- test rows: 1569
- Checkpoint selection uses full-dev greedy decode, not a subsample.
Intended uses & limitations
Punjabi Gurbani and general-Punjabi ASR. Not a transformers CTC checkpoint; load model.pt with the icefall Zipformer used to train it.
Inference
model.pt is the Zipformer state dict and bpe.model is the SentencePiece model trained with it (vocab 1000, blank id 0). This is not a transformers checkpoint, so pipeline() will not load it. Greedy CTC on the auxiliary head is the decode used for the CER numbers above.
pip install torch torchaudio sentencepiece lhotse datasets huggingface_hub soundfile
git clone https://github.com/k2-fsa/icefall
import torch, sentencepiece as spm
from huggingface_hub import hf_hub_download
repo = 'jssaluja/zipformer-large-causal-sggs-ncer-train-107387-epochs-50-test-1569'
weights = hf_hub_download(repo, 'model.pt')
bpe = spm.SentencePieceProcessor(model_file=hf_hub_download(repo, 'bpe.model'))
# build the network with train_zipformer's build_model() from the training
# CLI defaults, then: model.load_state_dict(torch.load(weights, map_location='cpu'))
# 16 kHz mono -> 80-dim Lhotse fbank -> per-utterance mean/std.
# ids = greedy argmax over model.ctc_output(encoder_out), drop blank 0 and repeats.
# text = bpe.decode(ids)
Training and evaluation data
Source collection names are not published.
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.045
- max_duration: 600.0
- seed: 20260830
- optimizer: ScaledAdam with clipping_scale=2.0 and Eden (lr_batches=7500, lr_epochs=3.5)
- num_epochs: 50
- mixed_precision_training: Native BF16 AMP
Training results
(table generated directly from epoch-end full-dev history, keyed by metric name -- avoids a transformers model-card column-ordering bug seen in earlier runs. Validation Loss is the training objective on the dev cuts, sum / target tokens, not MMS CTC eval_loss.)
| Training Loss | Epoch | Step | Ccer | Cer | Validation Loss | Mer | Ncer | Wer | Wil |
|---|---|---|---|---|---|---|---|---|---|
| 4.9913 | 1.0 | 922 | 0.5090 | 0.4678 | 3.6158 | 0.8293 | 0.4704 | 0.8637 | 0.9650 |
| 2.1648 | 2.0 | 1845 | 0.4152 | 0.3866 | 3.1215 | 0.7591 | 0.3626 | 0.7942 | 0.9317 |
| 1.9689 | 3.0 | 2766 | 0.3783 | 0.3500 | 3.0654 | 0.7237 | 0.3185 | 0.7705 | 0.9126 |
| 1.8397 | 4.0 | 3687 | 0.3604 | 0.3348 | 2.8858 | 0.7044 | 0.3050 | 0.7464 | 0.8998 |
| 1.7708 | 5.0 | 4609 | 0.3799 | 0.3515 | 2.9738 | 0.7190 | 0.3276 | 0.7399 | 0.9063 |
| 1.7112 | 6.0 | 5532 | 0.3604 | 0.3301 | 2.7708 | 0.6861 | 0.3100 | 0.7152 | 0.8863 |
| 1.6629 | 7.0 | 6454 | 0.3459 | 0.3193 | 2.7244 | 0.6844 | 0.2893 | 0.7125 | 0.8856 |
| 1.6268 | 8.0 | 7376 | 0.3336 | 0.3058 | 2.6767 | 0.6570 | 0.2774 | 0.6918 | 0.8664 |
| 1.6026 | 9.0 | 8298 | 0.3261 | 0.3007 | 2.6166 | 0.6373 | 0.2705 | 0.6704 | 0.8493 |
| 1.5889 | 10.0 | 9220 | 0.3310 | 0.3052 | 2.7433 | 0.6565 | 0.2731 | 0.6889 | 0.8650 |
| 1.6092 | 11.0 | 10141 | 0.3511 | 0.3263 | 2.8464 | 0.6828 | 0.2922 | 0.7040 | 0.8822 |
| 1.6420 | 12.0 | 11062 | 0.3292 | 0.3040 | 2.6760 | 0.6530 | 0.2776 | 0.6818 | 0.8623 |
| 1.6387 | 13.0 | 11984 | 0.3091 | 0.2834 | 2.5578 | 0.6304 | 0.2536 | 0.6576 | 0.8458 |
| 1.6089 | 14.0 | 12905 | 0.3337 | 0.3061 | 2.6508 | 0.6445 | 0.2790 | 0.6714 | 0.8553 |
| 1.5786 | 15.0 | 13828 | 0.3065 | 0.2816 | 2.5593 | 0.6230 | 0.2570 | 0.6555 | 0.8401 |
| 1.5546 | 16.0 | 14751 | 0.3244 | 0.2986 | 2.6485 | 0.6353 | 0.2764 | 0.6524 | 0.8461 |
| 1.5211 | 17.0 | 15674 | 0.3260 | 0.2996 | 2.7898 | 0.6438 | 0.2749 | 0.6814 | 0.8562 |
| 1.4834 | 18.0 | 16596 | 0.3161 | 0.2893 | 2.6575 | 0.6297 | 0.2648 | 0.6512 | 0.8444 |
| 1.4506 | 19.0 | 17517 | 0.3026 | 0.2765 | 2.5375 | 0.6181 | 0.2472 | 0.6393 | 0.8358 |
| 1.4387 | 20.0 | 18440 | 0.3038 | 0.2797 | 2.5500 | 0.6179 | 0.2546 | 0.6395 | 0.8340 |
| 1.4052 | 21.0 | 19361 | 0.2912 | 0.2655 | 2.3788 | 0.5926 | 0.2396 | 0.6119 | 0.8135 |
| 1.3833 | 22.0 | 20283 | 0.3150 | 0.2886 | 2.7308 | 0.6319 | 0.2616 | 0.6663 | 0.8472 |
| 1.3527 | 23.0 | 21205 | 0.2703 | 0.2480 | 2.2669 | 0.5702 | 0.2181 | 0.5932 | 0.7933 |
| 1.3277 | 24.0 | 22128 | 0.2860 | 0.2610 | 2.4128 | 0.5937 | 0.2333 | 0.6138 | 0.8141 |
| 1.3119 | 25.0 | 23050 | 0.2848 | 0.2605 | 2.4456 | 0.5913 | 0.2300 | 0.6211 | 0.8135 |
| 1.2889 | 26.0 | 23971 | 0.3020 | 0.2788 | 2.6516 | 0.6145 | 0.2469 | 0.6368 | 0.8310 |
| 1.2743 | 27.0 | 24892 | 0.2709 | 0.2474 | 2.2953 | 0.5756 | 0.2175 | 0.6000 | 0.7994 |
| 1.2498 | 28.0 | 25814 | 0.2853 | 0.2614 | 2.3689 | 0.5892 | 0.2361 | 0.6109 | 0.8098 |
| 1.2394 | 29.0 | 26736 | 0.2730 | 0.2508 | 2.2371 | 0.5700 | 0.2256 | 0.5948 | 0.7933 |
| 1.2174 | 30.0 | 27659 | 0.2737 | 0.2509 | 2.2242 | 0.5676 | 0.2273 | 0.5867 | 0.7898 |
| 1.2060 | 31.0 | 28580 | 0.2737 | 0.2508 | 2.3598 | 0.5711 | 0.2231 | 0.5928 | 0.7941 |
| 1.1873 | 32.0 | 29502 | 0.2715 | 0.2473 | 2.3218 | 0.5680 | 0.2250 | 0.5907 | 0.7920 |
| 1.1642 | 33.0 | 30425 | 0.2653 | 0.2426 | 2.2598 | 0.5564 | 0.2179 | 0.5855 | 0.7812 |
| 1.1503 | 34.0 | 31347 | 0.2688 | 0.2443 | 2.3109 | 0.5622 | 0.2275 | 0.5835 | 0.7874 |
| 1.1352 | 35.0 | 32269 | 0.2698 | 0.2466 | 2.2891 | 0.5592 | 0.2261 | 0.5758 | 0.7822 |
| 1.1188 | 36.0 | 33190 | 0.2612 | 0.2389 | 2.1998 | 0.5583 | 0.2129 | 0.5828 | 0.7828 |
| 1.1048 | 37.0 | 34113 | 0.2501 | 0.2287 | 2.0742 | 0.5319 | 0.2081 | 0.5502 | 0.7568 |
| 1.0957 | 38.0 | 35035 | 0.2684 | 0.2474 | 2.2569 | 0.5682 | 0.2178 | 0.5949 | 0.7924 |
| 1.0782 | 39.0 | 35957 | 0.2467 | 0.2229 | 2.0362 | 0.5207 | 0.2072 | 0.5369 | 0.7473 |
| 1.0623 | 40.0 | 36878 | 0.2482 | 0.2258 | 2.0478 | 0.5339 | 0.2026 | 0.5503 | 0.7601 |
| 1.0510 | 41.0 | 37800 | 0.2472 | 0.2256 | 2.1033 | 0.5336 | 0.1994 | 0.5525 | 0.7601 |
| 1.0401 | 42.0 | 38723 | 0.2510 | 0.2289 | 2.0889 | 0.5283 | 0.2051 | 0.5532 | 0.7534 |
| 1.0310 | 43.0 | 39646 | 0.2410 | 0.2199 | 2.0450 | 0.5266 | 0.1903 | 0.5503 | 0.7540 |
| 1.0113 | 44.0 | 40569 | 0.2493 | 0.2273 | 2.1364 | 0.5298 | 0.2020 | 0.5477 | 0.7561 |
| 1.0111 | 45.0 | 41490 | 0.2489 | 0.2277 | 2.2651 | 0.5398 | 0.1966 | 0.5638 | 0.7669 |
| 0.9947 | 46.0 | 42412 | 0.2516 | 0.2289 | 2.1189 | 0.5349 | 0.2066 | 0.5502 | 0.7606 |
| 0.9823 | 47.0 | 43334 | 0.2513 | 0.2288 | 2.0568 | 0.5289 | 0.2057 | 0.5463 | 0.7550 |
| 0.9686 | 48.0 | 44256 | 0.2346 | 0.2151 | 1.9613 | 0.5107 | 0.1882 | 0.5296 | 0.7365 |
| 0.9602 | 49.0 | 45178 | 0.2366 | 0.2157 | 2.0597 | 0.5188 | 0.1893 | 0.5369 | 0.7451 |
| 0.9478 | 50.0 | 46100 | 0.2389 | 0.2170 | 2.0341 | 0.5183 | 0.1884 | 0.5329 | 0.7453 |
Framework versions
- Pytorch 2.12.0+cu126
- icefall 6fd674312c1d87bd9fc888d623cb3e347ac019ff