nemotron-asr-streaming-farsi for LiteRT
This repository is a conversion of mehdi-hf/nemotron-asr-streaming-farsi (streaming Persian speech recognition, fine-tuned from nvidia/nemotron-3.5-asr-streaming-0.6b) to LiteRT, made with litert-torch 0.10.0 and ai-edge-quantizer 0.10.0 for LiteRT 2.3.0: it transcribes Persian audio in 320 ms chunks as they arrive, and on a Galaxy S26 a chunk takes a median 26.6 ms with its float16 subsampling and conformer graph on the NPU, 60.3 ms on the GPU and 58.5 ms with float16 arithmetic on the CPU. These are short runs of 10 to 25 utterances (measured 2026-11-08). On the 852 utterances of FLEURS's Persian test split that the original's card scores, scored with the original's own text normalization, the word error rate on the Galaxy S26's NPU is 9.138 %, against 9.045 % for our float32 PyTorch run of the original.
Speed still being tuned (updates follow).
The original is a cache-aware streaming FastConformer encoder with an RNN-T decoder and a language prompt; its fine-tune gave it a new 1,024-piece Persian tokenizer and a new decoder, and it uses the base model's fa-IR prompt. This conversion keeps its streaming design at a look-ahead of 0.32 s (lookahead 3, 320 ms chunks): the chunking and the caches follow transformers' Nemotron3_5AsrForRNNT streaming generation, and every cache is a graph input and output, so the host carries the state from one chunk to the next. The graphs are plain PyTorch modules that read the checkpoint's weights (no NeMo), exported with litert-torch. The speeds on this card are for this repository's .tflite files run with LiteRT 2.3.0's C API (the Android runner below), not for LiteRT-LM or for any other conversion of this model.
Files
| file | bytes | what | backend |
|---|---|---|---|
nemotron_asr_mel.tflite |
964,732 | log-mel front end: mel_first (the first 4,040 samples → 25 frames) and mel (5,520 samples → 32 frames) |
CPU |
nemotron_asr_pre.tflite |
18,402,700 | the 8× subsampling with its three convolution caches: pre_first and pre (25 or 32 mel frames → 4 frames of 1,024) |
CPU |
nemotron_asr_conformer_f16_cpu.tflite |
1,217,291,232 | the 24-layer conformer for one chunk (conformer), its attention and convolution caches as inputs and outputs; float16 weights, its LayerNorm inputs rescaled so that float16 arithmetic does not overflow, and its relative-position matmuls written as fully connected layers so that XNNPACK runs its arithmetic in float16 (4,090 of the graph's 4,093 nodes; the three concatenations at its end stay on LiteRT's own CPU kernel) |
CPU |
nemotron_asr_conformer_pre_f16.tflite |
1,191,615,072 | pre and the conformer in one graph (conformer_pre), with the same float16 weights and LayerNorm rescale |
NPU |
nemotron_asr_conformer_f16.tflite |
1,182,197,680 | the conformer with the same float16 weights and LayerNorm rescale | GPU |
nemotron_asr_conformer_f32.tflite |
2,350,467,936 | the conformer in float32 | CPU (the Python example) |
nemotron_asr_decoder_f32.tflite |
33,159,144 | RNN-T prediction network (predict) and joint network (joint) in float32 |
CPU (beside every conformer file, and in the Python example) |
tokenizer.json |
389,006 | the original's tokenizer, unchanged | host |
processor_config.json |
616 | the original's processor settings, unchanged; prompt_dictionary gives the prompt id |
host |
nemotron_stream_runner.cc, build_android.sh |
83,707 and 3,294 | a command-line runner for Android (LiteRT C API) and its build script; the runner reads the model files from its arguments | |
rnnt_text.py |
796 | turns the runner's token ids into text | host |
LICENSE |
2,629 | the OpenMDW License Agreement, version 1.1, the original's file | |
NOTICE |
722 | the original's notice, unchanged |
Take mel, pre, conformer_f16_cpu and decoder_f32 for a phone's CPU (1.27 GB), mel, conformer_pre_f16 and decoder_f32 for the NPU (1.23 GB), mel, pre, conformer_f16 and decoder_f32 for the GPU (1.23 GB), or mel, pre, conformer_f32 and decoder_f32 for the Python example on a desktop (2.40 GB).
How it works
audio (16 kHz mono) → 320 ms chunks → mel → pre → conformer (caches in, caches out) → greedy RNN-T → text
- Chunks. Append 5,520 zero samples to the audio. Chunk 0 is samples [0, 4,040) through
mel_firstandpre_first; chunk k ≥ 1 is the 5,520 samples from 3,744 + 5,120 (k − 1) throughmelandpre, for every k whose chunk ends before the end of the padded audio. Each chunk adds 5,120 new samples (320 ms) and gives 4 encoder frames. The original's live-streaming snippet appends two chunks of zeros (2 × 5,520 = 11,040 samples at this look-ahead) for the same reason, so that the end of the audio is transcribed. - Caches.
conformertakesx[1, 4, 1024] (the chunk'sembedsfrompre),neg_mask[1, 1, 4, 60],k_cacheandv_cache[24, 8, 56, 128] (each layer's last 56 frames of keys and values, right-aligned),conv_cache[24, 1024, 8] (each layer's convolution context) andone_hot[1, 128]; it returnsenc_proj[1, 4, 640] andk_out,v_out,conv_out, which are the next chunk's caches. At the start of an utterance the caches are zeros, andneg_maskis −30,000 on the first 56 − min(56, 4k) of its 60 key slots in chunk k and 0 elsewhere (the slots not filled yet).precarriescache0,cache1andcache2the same way, frompre_first's outputs on. - One graph on the NPU.
conformer_prerunspreandconformerin one call: it takes the chunk's 32 mel frames (mel) andpre's three caches in place ofx, plus two row masks,pre_m0[1, 1, 16, 1] andpre_m1[1, 1, 8, 1], and returnsconformer's outputs withpre's next caches. The masks are 1 except in chunk 0, which goes in as 7 zero rows followed bymel_first's 25 rows, with zeros on the first 3 rows ofpre_m0and on the first row ofpre_m1; that givespre_first's result. The runner's--conf-mode fuseddoes this. - Language.
one_hotis 1 at index 38 and 0 elsewhere: the original'sprocessor_config.jsonmapsfa-IR,faandautoall to prompt 38, the base model'sfa-IRprompt that the fine-tune was trained with. The original's card says the base model's other languages are not supported. - Decoding (on the host). Start from
predict(token = 1024 (blank), h = c = 0). For each encoder frame,joint(dec_out, frame)gives 1,025 logits; take the arg-max: blank moves to the next frame, any other token is emitted and fed topredict, which gives the nextdec_out,handc; after 10 tokens on one frame, move to the next frame. The decoder state runs on across chunks. - Text.
Tokenizer.decode(ids, skip_special_tokens=True)withtokenizer.json. The tokenizer has the zero-width non-joiner (U+200C) as a piece of its own, so the text keeps it inside words such asمیرود. - Look-ahead. The original supports lookahead 0, 3, 6 and 13 (80 ms to 1.12 s); its card recommends 1.12 s (13) for the best accuracy and 0.32 s (3) for lower latency. These files are for 0.32 s only.
Use it
1. Download
pip install -U huggingface_hub
hf download mlboydaisuke/nemotron-asr-streaming-farsi-LiteRT --local-dir nemotron-asr-farsi
cd nemotron-asr-farsi
2. Your audio
Both runners below read 16 kHz mono 16-bit WAV files listed in audio/index.tsv with their language-locale. The block below writes them from any format ffmpeg reads; replace the two lines before EOF with your files (no spaces in the names). Keep fa-IR as the locale: the Python block reads the prompt from processor_config.json, where fa-IR, fa and auto all give prompt 38, but the Android runner has the base model's table of locales built in, where fa is not listed and auto is prompt 101, while the original was fine-tuned only with the fa-IR prompt.
mkdir -p audio && : > audio/index.tsv && i=0
while read -r f locale; do
id=$(printf %03d $i)
ffmpeg -nostdin -loglevel error -y -i "$f" -ac 1 -ar 16000 -c:a pcm_s16le "audio/$id.wav"
printf '%s\t%s\t%s.wav\t%s\n' "$id" "$(basename "$f")" "$id" "$locale" >> audio/index.tsv
i=$((i + 1))
done <<'EOF'
sample1.wav fa-IR
sample2.wav fa-IR
EOF
The accuracy tables below score the FLEURS files as published (32-bit float), and this block writes 16-bit PCM, which can change a transcript. On two FLEURS Persian test utterances written through this block, every Galaxy S26 backend and the desktop runner below gave the text of our float32 PyTorch reference (Accuracy, below) from the 16-bit files, and the NPU emitted the same tokens at the same encoder frames as from the 32-bit files.
3a. On a desktop (Python, CPU)
Save this as transcribe.py in the nemotron-asr-farsi folder. It streams each file chunk by chunk through the float32 files, as a live input would arrive, and prints, per file, the number of chunks and the median time per chunk:
import json
import sys
import time
import wave
import numpy as np
from ai_edge_litert.interpreter import Interpreter
from tokenizers import Tokenizer
def signatures(path, threads):
it = Interpreter(model_path=path, num_threads=threads)
return {name: it.get_signature_runner(name) for name in it.get_signature_list()}
mel = signatures("nemotron_asr_mel.tflite", 1)
pre = signatures("nemotron_asr_pre.tflite", 1)
conformer = signatures("nemotron_asr_conformer_f32.tflite", 4)["conformer"]
decoder = signatures("nemotron_asr_decoder_f32.tflite", 1)
predict, joint = decoder["predict"], decoder["joint"]
tokenizer = Tokenizer.from_file("tokenizer.json")
PROMPT = json.load(open("processor_config.json"))["prompt_dictionary"]
BLANK, FIRST, NEXT = 1024, 4040, 5520 # blank id (the last of the 1,025 ids); samples of the first chunk and of every later chunk
def read_wav(path): # 16 kHz mono 16-bit PCM
with wave.open(path) as w:
assert (w.getframerate(), w.getnchannels(), w.getsampwidth()) == (16000, 1, 2), path
return np.frombuffer(w.readframes(w.getnframes()), "<i2").astype(np.float32) / 32768
def transcribe(audio, locale):
x = np.concatenate([audio, np.zeros(NEXT, np.float32)]) # the zeros carry the last real samples through
one_hot = np.zeros((1, 128), np.float32)
one_hot[0, PROMPT[locale]] = 1
k_cache = np.zeros((24, 8, 56, 128), np.float32)
v_cache = np.zeros((24, 8, 56, 128), np.float32)
conv_cache = np.zeros((24, 1024, 8), np.float32)
state = predict(token=np.array([[BLANK]], np.int32), h=np.zeros((2, 1, 640), np.float32), c=np.zeros((2, 1, 640), np.float32))
ids, chunk_ms, chunk, start = [], [], 0, 0
while chunk == 0 or start + NEXT < len(x):
t0 = time.perf_counter()
if chunk == 0:
p = pre["pre_first"](mel=mel["mel_first"](pcm=x[None, :FIRST])["mel"])
else:
m = mel["mel"](pcm=x[None, start:start + NEXT])["mel"]
p = pre["pre"](mel=m, cache0=p["cache0_out"], cache1=p["cache1_out"], cache2=p["cache2_out"])
mask = np.zeros((1, 1, 4, 60), np.float32)
mask[..., :56 - min(56, 4 * chunk)] = -30000.0 # the cache slots not filled yet
out = conformer(x=p["embeds"], neg_mask=mask, k_cache=k_cache, v_cache=v_cache, conv_cache=conv_cache, one_hot=one_hot)
k_cache, v_cache, conv_cache = out["k_out"], out["v_out"], out["conv_out"]
for frame in range(4): # greedy RNN-T, at most 10 tokens per encoder frame
for _ in range(10):
token = int(np.argmax(joint(dec_out=state["dec_out"], enc_frame=out["enc_proj"][:, frame])["logits"]))
if token == BLANK:
break
ids.append(token)
state = predict(token=np.array([[token]], np.int32), h=state["h_out"], c=state["c_out"])
chunk_ms.append((time.perf_counter() - t0) * 1000)
chunk += 1
start = 3744 + 5120 * (chunk - 1)
return tokenizer.decode(ids, skip_special_tokens=True), chunk_ms
for line in open(sys.argv[1] + "/index.tsv", encoding="utf-8"):
_, name, wav, locale = line.rstrip("\n").split("\t")[:4]
text, ms = transcribe(read_wav(sys.argv[1] + "/" + wav), locale)
print(f"{name}\t{locale}\t{len(ms)} chunks, median {np.median(ms):.1f} ms per chunk\t{text}")
pip install ai-edge-litert==2.3.0 tokenizers numpy
python transcribe.py audio
3b. On an Android phone (native runner)
Build the runner with the Android NDK r29 (we built it on macOS; the path below is Android Studio's default there). The script downloads the LiteRT 2.3.0 C headers (litert_cc_sdk.zip from LiteRT's GitHub release) and the runtime libraries (Google's Maven), and checks their sha256.
NDK=$HOME/Library/Android/sdk/ndk/29.0.13113456 bash build_android.sh
Copy the runner, the CPU files and your audio to the phone, run it, and turn its output into text:
adb shell mkdir -p /data/local/tmp/nemotron-asr-farsi
adb push nemotron_stream_runner libs/libLiteRt.so nemotron_asr_mel.tflite nemotron_asr_pre.tflite nemotron_asr_conformer_f16_cpu.tflite nemotron_asr_decoder_f32.tflite audio /data/local/tmp/nemotron-asr-farsi/
adb shell chmod 755 /data/local/tmp/nemotron-asr-farsi/nemotron_stream_runner
On the Galaxy S26 (the settings of its CPU row in Performance):
adb shell 'cd /data/local/tmp/nemotron-asr-farsi && LD_LIBRARY_PATH=. ./nemotron_stream_runner --accel cpu --libdir . \
--model nemotron_asr_conformer_f16_cpu.tflite --conf-xnn-flags 7 --mel-first nemotron_asr_mel.tflite --mel nemotron_asr_mel.tflite \
--pre-first nemotron_asr_pre.tflite --pre nemotron_asr_pre.tflite \
--predict nemotron_asr_decoder_f32.tflite --joint nemotron_asr_decoder_f32.tflite --threads 4 --state copy \
--fixtures audio --count $(grep -c . audio/index.tsv) --rounds 0 --dump none --out out' > out.jsonl
pip install tokenizers
python rnnt_text.py tokenizer.json out.jsonl
The runner streams the files one after another, each from fresh caches, after streaming the first file once as a warm-up. Each line of out.jsonl that starts with {"kind":"utt" holds one file's token ids (tok), each token's encoder frame (frame) and, per chunk, the time from handing its samples to mel to the end of its decoding (chunk_ms), with the times of the stages (mel_ms, pre_ms, conf_ms, dec_ms). The stream_summary line gives the median and 90th percentile of chunk_ms over the files and rtf_stream, the summed chunk time over the audio time. --conf-xnn-flags 7 asks XNNPACK for float16 arithmetic in the conformer (7 = XNNPACK's default flags 3 with FORCE_FP16, 4); without it, XNNPACK runs the same file in float32 arithmetic. --threads sets the CPU threads of every graph, and --state swap alternates two sets of cache buffers instead of copying each cache output into its input after the chunk (--state copy, the runner's default). The runner reads the vocabulary size from the decoder file and takes its last id (1024) as blank. The CPU and NPU runs print GPU accelerator could not be loaded and registered on stderr: the GPU library is not on the phone until the GPU block below copies it, and nothing else changes.
NPU (Galaxy S26, Qualcomm Hexagon). The runner compiles conformer_pre_f16 for the Hexagon NPU on the phone the first time (LiteRT's Qualcomm compiler plugin, on-device JIT) and keeps the result in --cache-dir; mel and the decoder run on the CPU. --conf-mode fused tells the runner that this graph holds pre: it feeds the chunk's mel frames to it and opens no pre graph. It needs LiteRT's Qualcomm plugin libraries (libLiteRtDispatch_Qualcomm.so and libLiteRtCompilerPlugin_Qualcomm.so, from the litert-npu-runtime-qualcomm package that build_android.sh fetches) and the QNN libraries of the Qualcomm AI Runtime SDK (QAIRT) 2.50.0.260828, which you download from Qualcomm; copy these eight files flat into a folder qnn/: from lib/aarch64-android/, libQnnHtp.so, libQnnHtpPrepare.so, libQnnHtpV81Stub.so, libQnnHtpV81CalculatorStub.so, libQnnSystem.so, libQnnIr.so and libQnnSaver.so; from lib/hexagon-v81/unsigned/, libQnnHtpV81Skel.so. The block uses the runner, mel, decoder_f32 and the audio that the push block above copied. Run it before the GPU block, with other apps closed (the first compile takes the runner up to 6.0 GB, see Notes); run the same block again and the graph loads from the cache.
adb push libs/libLiteRtDispatch_Qualcomm.so libs/libLiteRtCompilerPlugin_Qualcomm.so qnn/. nemotron_asr_conformer_pre_f16.tflite /data/local/tmp/nemotron-asr-farsi/
adb shell 'cd /data/local/tmp/nemotron-asr-farsi && LD_LIBRARY_PATH=. ADSP_LIBRARY_PATH="/data/local/tmp/nemotron-asr-farsi;/vendor/dsp/cdsp;/vendor/lib/rfsa/adsp;/system/lib/rfsa/adsp;/dsp" \
./nemotron_stream_runner --accel npu+cpu --libdir . --cache-dir cache --conf-mode fused \
--model nemotron_asr_conformer_pre_f16.tflite --mel-first nemotron_asr_mel.tflite --mel nemotron_asr_mel.tflite \
--predict nemotron_asr_decoder_f32.tflite --joint nemotron_asr_decoder_f32.tflite \
--fixtures audio --count $(grep -c . audio/index.tsv) --rounds 0 --dump none --out out' > out_npu.jsonl
GPU. Push libs/libLiteRtClGlAccelerator.so, the f16 conformer and decoder_f32, and run with --accel gpu --gpu-precision fp16:
adb push libs/libLiteRtClGlAccelerator.so nemotron_asr_conformer_f16.tflite nemotron_asr_decoder_f32.tflite /data/local/tmp/nemotron-asr-farsi/
adb shell 'cd /data/local/tmp/nemotron-asr-farsi && LD_LIBRARY_PATH=. ./nemotron_stream_runner --accel gpu --gpu-precision fp16 --libdir . \
--model nemotron_asr_conformer_f16.tflite --mel-first nemotron_asr_mel.tflite --mel nemotron_asr_mel.tflite \
--pre-first nemotron_asr_pre.tflite --pre nemotron_asr_pre.tflite \
--predict nemotron_asr_decoder_f32.tflite --joint nemotron_asr_decoder_f32.tflite \
--fixtures audio --count $(grep -c . audio/index.tsv) --rounds 0 --dump none --out out' > out_gpu.jsonl
To remove everything from the phone: adb shell rm -rf /data/local/tmp/nemotron-asr-farsi.
Accuracy
Word error rate (%) and character error rate (%) on FLEURS's Persian test split, the 852 utterances that the original's card scores (of the split's 871, the original's evaluation code leaves out the 19 whose transcript has a Latin letter), against our PyTorch reference: transformers 5.22.1 Nemotron3_5AsrForRNNT in float32, the same chunks with the same 5,520 zeros appended, greedy decoding, the fa-IR prompt. WER and CER are scored as the original's evaluation code scores them: its Persian normalizer (github.com/mallahyari/nemotron-asr-streaming-farsi at commit b45f6f0: the zero-width non-joiner read as a space, punctuation removed, Arabic letter forms folded to Persian, numbers spelled out) on both sides, then corpus WER and CER (characters with their spaces) with jiwer. The third row scores the same text as the Open ASR Leaderboard scores it, against FLEURS' raw_transcription (its multilingual normalizer, which keeps the zero-width non-joiner inside a word and does not fold the Arabic letter forms, compound merging, kaldialign).
Every utterance, on a Mac (Apple M4 Max) with ai-edge-litert 2.3.0. The float32 files give the reference's text on all of the 852 utterances. f16_cpu ran on the Mac's CPU with XNNPACK's float16 arithmetic (flags 7), as on the phone's CPU; conformer_pre_f16 and the f16 conformer ran on the Mac's GPU with float16 arithmetic (Metal), the first in place of the phone's NPU, whose numbers are in the second table, the second as on the phone's GPU.
| FLEURS Persian test, 852 utterances | PyTorch reference and the float32 files | f16_cpu + decoder_f32 (CPU files) |
conformer_pre_f16 + decoder_f32 (NPU files) |
f16 conformer + decoder_f32 (GPU files) |
|---|---|---|---|---|
| WER | 9.045 | 9.045 | 9.045 | 9.045 |
| CER | 3.027 | 3.031 | 3.034 | 3.024 |
| WER, Open ASR Leaderboard scoring | 15.684 | 15.689 | 15.679 | 15.679 |
The original's card reports 9.03 % WER and 3.03 % CER on these 852 utterances at the same 0.32 s look-ahead with NeMo's streaming script, and 9.02 % WER with transformers; our float32 PyTorch run gives 9.045 % and 3.027 %.
On the Galaxy S26, with the NPU backend of the Performance table:
| phone, backend | utterances | WER | CER | WER, Open ASR Leaderboard scoring |
|---|---|---|---|---|
| PyTorch reference | 852 | 9.045 | 3.027 | 15.684 |
Galaxy S26, NPU (conformer_pre_f16 + decoder_f32) |
852 | 9.138 | 3.042 | 15.693 |
Performance
Each row times the first 5 utterances of an 82-utterance subset of FLEURS's Persian test split (picked at random, seed 20261108), streamed 2 to 5 times over in one process after a warm-up utterance (Workload, below the table).
| phone | backend | chunk ms, median | chunk ms, 90th percentile | RTF | conformer per chunk (ms) | decoding per chunk (ms) | peak memory |
|---|---|---|---|---|---|---|---|
| Galaxy S26 | NPU (Hexagon): conformer_pre_f16; decoder_f32 and mel on the CPU, 4 threads |
26.642 | 28.760 | 0.0847 | 25.112 | 1.165 | 2.53 GB (2,466,488 kB) |
| Galaxy S26 | GPU (Adreno, float16 arithmetic): f16 conformer; decoder_f32, mel and pre on the CPU, 4 threads |
60.258 | 67.168 | 0.1825 | 53.502 | 3.268 | 6.09 GB (5,947,976 kB) |
| Galaxy S26 | CPU: f16_cpu (float16 arithmetic) + decoder_f32, 4 threads |
58.504 | 64.169 | 0.1640 | 54.401 | 1.552 | 2.68 GB (2,613,512 kB) |
- chunk ms = the time from handing a chunk's samples to
meluntil its 4 encoder frames are decoded, as the runner in "Use it" measures it (chunk_ms); a chunk holds 320 ms of new audio, so a chunk under 320 ms keeps up with live input. RTF = the summed chunk time over the audio time (rtf_stream). The conformer and decoding columns are the medians of the runner'sconf_ms(the input writes, the run, the output reads and the cache move; on the NPU it includespre, which runs inside that graph) anddec_msper chunk. - Workload: the first 5 utterances of the 82-utterance subset, in one process after one warm-up utterance: 5 passes over them on the NPU (25 utterances), 4 on the GPU (20) and 2 on the CPU (10). The NPU row is the mean of two such runs, made in the order A B B A against a decoder with int8 weights that is not in this repository (25.932 ms, within 3 % of the float32 decoder, which ships); the GPU and CPU rows are one run each; the peak memory is the run's VmHWM, on the NPU the larger of its two runs' (GB = kB × 1024 / 10⁹). At the start of each run the phone's Android thermal status was 1 and 0 for the NPU row's two runs (after 186 s and 187 s of rest), 1 for the GPU row's (after 184 s) and 2 for the CPU row's (after 180 s).
- Galaxy S26 (SM-S942Q, Android 16); LiteRT 2.3.0 from Google's Maven; on the NPU the QNN libraries of QAIRT 2.50.0.260828 for Hexagon v81; 2026-11-08.
Notes
- First NPU run. On a Galaxy S26 the on-device compile of
conformer_pre_f16took 12.2–16.6 s in two runs and 19.8 s in a third that started at thermal status 3; the compiled graph takes 1.20 GB (1,175,471 kB) in the cache folder, and a later run loads it from the cache in 0.39–1.00 s (7 runs). While it compiles, the runner's peak memory is 4.5–6.0 GB (VmHWM 4,424,256–5,825,248 kB) and the phone's available memory went down to 2.48 GB (2,425,660 kB) in one of the runs. Start the first NPU run with other apps closed. The runner puts one graph on the NPU. - GPU and float16. In this checkpoint's encoder the variance of a LayerNorm input row reaches 138,853 over the 4,959 chunks of our range check (100 utterances of FLEURS's Persian validation split), beyond float16's largest value 65,504. The
f16conformer scales each of its 144 LayerNorm inputs by 2^-k (k = 2–9 per norm) and its epsilon by 4^-k, which leaves the float32 result the same function and keeps every scaled input within 32 of its row mean on those chunks; its float16 weights are the float32 weights rounded to the nearest float16.f16_cpu,conformer_pre_f16and thef16conformer carry this rescale; the float32 file runs without it. - CPU and float16. In LiteRT 2.3.0, XNNPACK's float16 mode refuses a matrix multiplication whose second input is a constant, and each conformer layer applies its relative-position embedding that way (24 such matmuls), so the original layout cannot run in float16 arithmetic on the CPU.
f16_cpufolds each layer's query projection into that term and computes it as one fully connected layer on the attention input (952 × 1,024 weights per layer, 4.0 % more fully connected weights in all); the GPU and NPU files keep the original layout. - Repeated runs of
f16_cpu. To see whether multi-threaded float16 arithmetic changes a result from one process to the next, we scored the 852 utterances three times on the Mac, each time in new processes with the conformer on two threads: WER 9.045 each time withf16_cpuon its CPU, every utterance with the same tokens at the same encoder frames. - Clocks in the Galaxy S26 rows. In the GPU row's run (104 s), the GPU's clock cap (kgsl) fell from 1,300 MHz to 646 MHz 30 s after the start. In the CPU row's run (44 s), the CPU clock caps began to fall 2–4 s after the start and reached their lowest at 21 s, the prime cores' from 4.74 to 1.50 GHz and the other cores' from 3.63 to 1.56 GHz.
- Converted from the weights of mehdi-hf/nemotron-asr-streaming-farsi at revision
b70aff5, rewritten as plain PyTorch graphs (the 24 conformer layers in one graph, the caches as inputs and outputs, the LSTM step as explicit gates; inf16_cputhe relative-position term as fully connected layers, inconformer_pre_f16preand the conformer in one graph) and exported with litert-torch 0.10.0; checked against transformers 5.22.1'sNemotron3_5AsrForRNNTstreaming generation.
License
The model files are a conversion of mehdi-hf/nemotron-asr-streaming-farsi, a fine-tune of nvidia/nemotron-3.5-asr-streaming-0.6b, and are distributed under the OpenMDW License Agreement, version 1.1 (LICENSE; openmdw.ai/license/1-1), as the original is. LICENSE and NOTICE are the original's files, unchanged; the notice reads: "This model is a fine-tune of nvidia/nemotron-3.5-asr-streaming-0.6b by NVIDIA (https://huggingface.co/nvidia/nemotron-3.5-asr-streaming-0.6b), used and redistributed under the OpenMDW License Agreement, version 1.1 (see LICENSE)", and it lists the fine-tuning data and their licenses. tokenizer.json and processor_config.json are the original's files. The runner and the scripts (nemotron_stream_runner.cc, build_android.sh, rnnt_text.py) are under the Apache License 2.0.