Lapillus-v2 for Core ML

A Core ML conversion of davitlive5/Lapillus-v2 (revision b6e8646f874534ad2f6b43878031e743744afd61), an Eastern Armenian speech recognition model by Davit Ghazaryan: a 115M-parameter FastConformer hybrid RNN-T + CTC model fine-tuned from nvidia/stt_hy_fastconformer_hybrid_large_pc. It writes Armenian with punctuation and capitals; numbers come out as words. On ArmBench-ASR it is the best open model under a commercial licence (combined WER 18.21%, Common Voice 7.02%).

Converted for Shshuk, a local dictation app for macOS. The weights are the original's, unchanged and in fp32.

Files

  • Encoder.mlmodelc: NeMo's own preprocessor (pre-emphasis, STFT, 80 mel bands, log, per-feature normalization over the real frames), the 17-layer encoder and the joint's encoder projection, traced as one graph. One function per window, weights shared: window5, window10, window20, window30 (the default). Inputs audio [1, N] float32 at 16 kHz, zero padded to the window, and length [1] int32 (the real samples); outputs projected [1, T, 640] float32 (encoder frames already projected into the joint space) and frames [1] int32 (the real frames).
  • decoder.bin, decoder.json: float32 little-endian weights of the prediction network (embedding 1025x640 with the blank row zero, one LSTM layer of 640, gates i f g o, biases summed) and of the joint (predictor projection 640x640, output 640x1025), with offsets and shapes. Run greedy RNN-T on the CPU: at most 10 symbols per frame, blank id 1024.
  • vocab.txt: the 1024 SentencePiece pieces, piece id per line, then <blk> 1024.

Accuracy check

On 25 clips of the FLEURS hy_am test split, this encoder on the GPU with the greedy loop above gives NeMo's greedy RNN-T text on all 25 (WER 5.91% after lowercasing and removing punctuation; Whisper large-v3 gave 58.7% on the same clips). An fp16 build changed 2 of 25 and the Neural Engine produced no usable output, which is why this one is fp32 on the GPU. On an M5 Pro the encoder takes about 10 ms for a 5 s window and 25 ms for 30 s.

The conversion script is scripts/convert_lapillus.py in Shshuk.

License

CC BY 4.0, as the original. Lapillus-v2 by Davit Ghazaryan, derived from NVIDIA's stt_hy_fastconformer_hybrid_large_pc (CC BY 4.0). Conversion by KUBERSTAR.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for kuberstar-com/lapillus-v2-coreml