/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
icefall
Опубликована
21 окт 2026

zipformer-large-sggs-ncer-train-epochs-90-scratch-20261021

Распознавание речиАудио → текст
0скачиваний за 30 дней0лайковвеса обновлены22 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Zipformer large для распознавания речи на панджаби, включая чтение Gurbani, в текст.

Это модель распознавания речи на базе Zipformer large transducer, разработанная jssaluja и обученная с нуля на частной коллекции аудиозаписей панджаби и Gurbani. Она предназначена для преобразования речи на панджаби, в том числе чтения Gurbani, в текст. Модель содержит около 150 млн параметров и обучена с использованием Icefall; для инференса требуется совместимая реализация Zipformer и файлы модели SentencePiece. Это не чекпойнт Transformers и не загружается через pipeline().

На тестовом наборе указаны WER 0,3753 и CER 0,1446; лучший результат по NCER получен на эпохе 87. Для обучения использованы 108 629 строк, для оценки — 1 569. Данные обучения и оценки частные, их коллекции не опубликованы. Лицензия CC BY-NC 4.0 разрешает использование с атрибуцией, но запрещает коммерческое применение.

Сценарии применения

  • транскрибация речи на панджаби
  • распознавание чтения Gurbani
  • получение текста из аудиозаписей на панджаби

Ограничения

Оценочные показатели получены на частном наборе данных, поэтому переносимость на другие источники речи не установлена; коллекции обучения и оценки не раскрыты. Для запуска нужны Icefall Zipformer и соответствующие файлы SentencePiece; модель несовместима с Transformers pipeline().

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Распознавание речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

jssaluja/zipformer-large-sggs-ncer-train-epochs-90-scratch-20261021

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: 1.4586
  • Wer: 0.3753
  • Wil: 0.5707
  • Mer: 0.3664
  • Cer: 0.1446
  • Ncer: 0.1254
  • Ccer: 0.1590

Model description

  • Architecture: icefall Zipformer large transducer, 150,362,074 parameters
  • train_scope: verse_only
  • best_model_metric: ncer (0.12163461538461538 at epoch 87)
  • smoke_test: False
  • train rows: 108629
  • 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.

ONNX v0.1 inference

For CPU inference without rebuilding the Icefall model, use the dynamically quantized v0.1 ONNX export at jssaluja/zipformer-large-sggs-ncer-train-epochs-90-scratch-20261021-onnx. It was exported from the final epoch-90 checkpoint (the best-NCER checkpoint for this training run is epoch 87). It accepts 16 kHz mono float32 PCM and returns frame-level CTC scores (1,000 classes, blank ID 0); it does not return text or timestamps directly.

Install the inference dependencies:

pip install huggingface_hub onnxruntime sentencepiece soundfile scipy numpy

This example loads an audio file, converts it to 16 kHz mono, runs greedy CTC decoding, removes blank ID 0, collapses repeated IDs, and decodes with the matching SentencePiece model:

from math import gcd

import numpy as np
import onnxruntime as ort
import sentencepiece as spm
import soundfile as sf
from huggingface_hub import hf_hub_download
from scipy.signal import resample_poly

repo_id = "jssaluja/zipformer-large-sggs-ncer-train-epochs-90-scratch-20261021-onnx"
model_path = hf_hub_download(repo_id, "sggs-large-epoch90.int8.onnx")
tokenizer_path = hf_hub_download(repo_id, "bpe.model")

session = ort.InferenceSession(model_path, providers=["CPUExecutionProvider"])
tokenizer = spm.SentencePieceProcessor(model_file=tokenizer_path)


def transcribe(audio_path):
    audio, sample_rate = sf.read(audio_path, dtype="float32", always_2d=True)
    audio = audio.mean(axis=1)
    if sample_rate != 16000:
        divisor = gcd(sample_rate, 16000)
        audio = resample_poly(audio, 16000 // divisor, sample_rate // divisor)
    audio = np.ascontiguousarray(audio, dtype=np.float32)
    if audio.size == 0:
        raise ValueError("Audio file is empty")

    scores, output_lengths = session.run(
        ["log_probs", "out_len"],
        {
            "audio": audio[None, :],
            "audio_len": np.array([audio.size], dtype=np.int64),
        },
    )
    frame_ids = scores[0, : int(output_lengths[0])].argmax(axis=-1)
    token_ids = []
    previous = -1
    for token_id in frame_ids:
        token_id = int(token_id)
        if token_id != previous and token_id != 0:
            token_ids.append(token_id)
        previous = token_id
    return tokenizer.decode(token_ids)


print(transcribe("audio.wav"))

The example returns a transcript only; it does not calculate word timestamps. Use the matching bpe.model from the ONNX repository, not a tokenizer from another SGGS checkpoint.

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-sggs-ncer-train-epochs-90-scratch-20261021'
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

Train rows: 108629. Eval rows: 1569. 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: 90
  • 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 LossEpochStepCcerCerValidation LossMerNcerWerWil
4.72141.09420.45560.41913.21240.76790.41630.79550.9358
1.85782.018860.34190.31552.72830.67520.29370.70570.8797
1.68643.028280.33070.30512.68610.65850.28100.67970.8668
1.58124.037700.31410.28812.50920.63240.26440.65170.8462
1.52295.047120.29580.27242.34620.61200.24500.63860.8308
1.47806.056550.29980.27522.43380.60850.25210.63380.8272
1.43097.065970.28450.26052.28470.58720.23600.60700.8092
1.40718.075400.29160.26642.28490.58610.24700.60690.8066
1.37869.084830.27620.25282.26360.58390.23110.61170.8081
1.369510.094270.26310.23972.23870.56750.21050.58720.7934
1.372211.0103690.24450.22302.03810.54030.19920.55780.7667
1.371412.0113110.26230.24262.20150.56240.21720.58020.7841
1.389213.0122530.28030.25612.26790.57070.23380.58260.7916
1.387014.0131960.26270.24092.13840.55480.21830.56570.7767
1.357615.0141400.26440.24172.27630.56590.22080.58090.7904
1.341816.0150840.25540.23342.16580.55360.21230.56850.7790
1.301517.0160270.25670.23432.15920.54460.20910.55990.7693
1.282818.0169700.25970.23462.23100.54980.21270.56880.7776
1.253319.0179120.24320.22232.09630.53100.20060.54840.7566
1.234920.0188560.24470.22282.04470.52240.20250.53470.7469
1.212921.0197980.23550.21571.98780.51170.19320.52680.7363
1.187622.0207410.23940.21772.08520.51950.19400.53180.7454
1.163023.0216830.22700.20651.89840.49320.18210.50470.7178
1.143124.0226270.22530.20501.88960.50550.18150.51580.7315
1.126825.0235700.22680.20621.85780.49490.18560.50500.7191
1.111726.0245120.25840.23672.14740.54470.21450.55440.7669
1.087127.0254550.22720.20701.94870.49500.18180.50680.7191
1.069328.0263980.22020.20141.87320.48760.18100.49490.7103
1.056329.0273410.22740.20801.95420.50620.18740.51660.7304
1.032430.0282850.22890.20941.98080.50330.18380.51710.7291
1.013431.0292270.20400.18561.75440.45780.16300.46950.6807
0.990632.0301700.19440.17771.69600.44820.15530.45980.6683
0.981233.0311130.22530.20411.91170.47430.19120.48560.6968
0.962834.0320550.21780.19761.88370.47750.17850.49200.7022
0.950735.0329970.20870.18881.80080.46350.17010.47680.6876
0.933436.0339390.19350.17381.68950.44040.15370.45110.6646
0.918837.0348820.21150.19251.80450.46830.16690.47980.6916
0.907038.0358250.21140.19421.73760.46790.17100.47510.6868
0.892639.0367680.19940.18231.76250.45380.16330.46440.6754
0.884140.0377110.20950.19161.75050.46390.17330.47410.6843
0.864741.0386530.18770.17081.65770.43220.15230.44100.6515
0.851942.0395950.21420.19561.85780.47000.17360.47740.6907
0.842543.0405390.18700.16971.59870.42720.15080.43780.6469
0.830344.0414830.19700.17941.66660.44500.15890.45370.6647
0.819945.0424250.20060.18311.68020.42970.16540.43710.6440
0.810246.0433690.18360.16681.60290.42050.14670.43140.6385
0.789647.0443110.20710.18911.86320.45860.16670.47090.6804
0.782748.0452540.19080.17451.63530.44100.15230.45220.6614
0.776549.0461970.18330.16551.59170.42400.14570.43270.6433
0.768950.0471400.19470.17631.73430.44030.15560.45160.6612
0.753251.0480820.19870.18091.72390.43980.16060.44770.6577
0.753052.0490250.19400.17851.67970.43730.16060.44480.6521
0.738053.0499680.18880.17291.67970.42810.15110.43860.6444
0.729854.0509100.18580.17041.62680.42500.14930.43650.6414
0.722255.0518530.18230.16531.59030.41330.14690.42070.6286
0.711256.0527960.16710.15271.48150.39710.13030.40620.6093
0.702157.0537390.18350.16761.68380.42070.14890.42980.6371
0.685558.0546820.17110.15641.51470.39870.13330.40630.6097
0.686459.0556240.16930.15331.49340.38620.13670.39620.5971
0.683760.0565670.17640.16011.55990.40320.14130.41580.6180
0.675061.0575100.17000.15571.44870.39100.13760.39980.5994
0.674162.0584530.18130.16571.63480.42290.14650.43110.6398
0.662863.0593950.18050.16481.56410.40870.14760.41840.6224
0.648064.0603370.17100.15601.54860.39140.13560.39980.6011
0.645365.0612790.17170.15611.49590.39130.13650.39770.6015
0.637366.0622220.18250.16591.58680.41510.14680.42540.6310
0.632167.0631650.17300.15661.57500.39240.14010.40230.6047
0.625068.0641080.16630.15151.46040.38830.13180.39530.5972
0.616369.0650510.17940.16231.59470.40330.14770.41310.6177
0.608970.0659940.16480.15101.49130.37780.13190.38340.5811
0.614871.0669360.17620.16041.63560.40660.14020.41320.6203
0.600372.0678790.17110.15581.55970.39040.13870.39960.6008
0.598073.0688210.17410.15821.59230.40180.13860.40980.6151
0.592674.0697640.15860.14441.44780.37630.12230.38560.5843
0.590675.0707070.16630.15131.52020.38760.13200.39520.5972
0.579476.0716490.16710.15201.47040.37570.13710.38430.5816
0.574377.0725920.16750.15271.54360.38880.13320.40000.5999
0.574378.0735350.17220.15671.60240.38980.13890.39780.5998
0.565779.0744780.15500.14061.42450.36210.12420.36850.5669
0.561380.0754210.17500.15841.61490.39770.14050.40490.6103
0.553581.0763640.16310.14911.49700.38440.13050.39210.5935
0.550682.0773070.16580.15171.51430.38190.13380.39070.5900
0.544183.0782500.15830.14461.43500.36840.12780.37750.5735
0.540584.0791920.16120.14731.49700.37390.13010.38310.5792
0.542885.0801360.15890.14511.44260.37290.12630.38080.5795
0.534686.0810790.15990.14511.42210.36760.12850.37380.5729
0.535487.0820230.15220.13811.37610.35400.12160.35970.5555
0.530388.0829660.15870.14451.41440.36540.12730.37290.5694
0.525489.0839080.16130.14691.51360.37320.12480.38050.5788
0.516890.0848500.15900.14461.45860.36640.12540.37530.5707

Framework versions

  • Pytorch 2.12.0+cu126
  • icefall 6fd674312c1d87bd9fc888d623cb3e347ac019ff

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · icefall

Можно запустить

Подбираем GPU…

Ревизия весов
5b92343

0 моделей