请求加入做种队列,或现在用 pf download litert-community/Qwen3-ASR-1.7B 获取(CLI 指南)。
Qwen/Qwen3-ASR-1.7B-hf converted to the LiteRT-LM (.litertlm) format for on-device speech recognition with Google's LiteRT-LM runtime. Audio in, text out, one file.
On 2026-11-17 Qwen3-ASR-1.7B.litertlm (the 30 s file) was replaced with a file whose prefill/decode graph is rewritten for the GPU, with every weight unchanged. On a Galaxy S26 GPU the new file decoded 28.5 to 28.8 tokens/s in the first of each run's three iterations, and the previous file 25.4 to 26.4, each after a 512-token prefill (LiteRT-LM v0.19.0); later iterations of some runs were slowed by the phone's GPU thermal limit (see the end of Performance). The new file was run only with LiteRT-LM 0.19.0 to 0.19.2; earlier runtimes were not tried with it.
Qwen3-ASR-1.7B is Qwen's speech recognition model (2.04 B parameters). A 24-layer audio encoder feeds a 28-layer Qwen3 language model, which writes language <name><asr_text><transcript>. The model card lists language identification and recognition for 30 languages and 22 Chinese dialects; this file was scored on English, Mandarin and Japanese.
The files run on the generic audio path of the released runtime (earlier versions of the files: the 30 s file measured with litert-lm-api 0.17.1, the 15 s file with 0.18.0; the 15 s file also loads and answers on 0.17.1, in the Android sample below). The runtime cuts 16 kHz PCM into 10 ms frames and hands the file's audio encoder a window of 30 s or 15 s, depending on the file; the encoder computes the log-mel spectrogram itself. No runtime change is needed.
Galaxy S26 (SM-S942Q), CPU with 4 threads, airplane mode on, LiteRT-LM 0.17.1 through the Kotlin Conversation API (litertlm-android), an earlier version of the 30 s file. The clips are FLEURS test sentence 1698 read in Mandarin, English and Japanese (CC BY 4.0; one linear gain per clip evens out the recording levels). The app plays each clip through the phone's speaker, then sends it in a new conversation. The seconds are the app's wall time of the call, with the language model and audio encoder on the CPU.
| File | Recipe | Size |
|---|---|---|
Qwen3-ASR-1.7B-15s.litertlm |
LM int8 dynamic (weights) with an int8 embedding table · audio encoder fp16 weights, fp32 compute, 15 s window · prefill signatures for 128 and 256 tokens | 2.70 GB |
Qwen3-ASR-1.7B.litertlm |
LM int8 dynamic (weights) with an int8 embedding table · audio encoder fp16 weights, fp32 compute, 30 s window | 2.69 GB |
The two files hold the same weights. The 15 s file encodes a clip in 15 s windows (195 audio tokens per window), so a clip of up to 15 s costs half the encoder and prefill work of the 30 s file; its measured response times are in the Performance section. An earlier version of the 30 s file is the one in the screenshots above; the Android sample below ran earlier versions of both files on litertlm-android 0.17.1.
Only the 30 s file has the GPU graph of 2026-11-17. The 15 s file was not replaced and keeps the earlier graph form.
| Section | Content | Size |
|---|---|---|
tf_lite_audio_encoder_hw |
log-mel front end (the original feature extractor's STFT, Slaney filterbank and normalization), 24-layer encoder, projector | 637 MB |
tf_lite_prefill_decode |
Qwen3 language model, int8, KV cache 1024 tokens | 1.74 GB (30 s file), 1.75 GB (15 s file) |
tf_lite_embedder |
token embedding table, int8 | 313 MB |
HF_Tokenizer_Zlib |
tokenizer | 2.1 MB |
LlmMetadataProto |
prompt template, stop tokens, audio settings | 0.9 kB |
One message holds one clip. The runtime zero-fills the window after the clip, and the encoder turns every window into a fixed number of audio tokens: 390 for the 30 s file, 195 for the 15 s file. Encoding and prefill therefore cost the same for a 4 s clip as for a 14 s clip on the 15 s file (or a 29 s clip on the 30 s file); only decoding grows with the transcript. With the 15 s file a clip longer than 15 s goes through two windows: the 28 FLEURS clips of 15.1–29.3 s in the set below were scored that way. Clips longer than 30 s were not tested with either file.
The answer is language <name><asr_text><transcript>. Split it at <asr_text>; the scores below use the text after the tag. On the FLEURS clips below every Mandarin and Japanese clip was tagged correctly; one English clip (two on the GPU run) came back as language None followed by the English transcript.
Forced language. Add a text item language Chinese<asr_text> (or another language name) to the same message. The template places it at the start of the answer, as the qwen-asr package does for a forced language, and the model then writes the transcript only (11 of 11 Mandarin and Japanese clips tried).
Prompt. The template renders <|im_start|>user<|audio_start|> + audio + <|audio_end|><|im_end|><|im_start|>assistant\n, the prompt of litert-torch's Qwen3-ASR export. The checkpoint's own chat template adds an empty system turn and newlines. With that template this file scored Mandarin CER 6.65 % and Japanese CER 6.06 % on the set below, and 8 of 50 Mandarin clips came back tagged English (with a Chinese transcript). System messages are ignored by the template.
FLEURS test, 50 clips per language, ground truth raw_transcription. Greedy decoding, one conversation per clip.
| Run | English WER | Mandarin CER | Japanese CER |
|---|---|---|---|
| Original model, PyTorch fp32 (transformers 5.14.1), this file's prompt | 4.35 % (50/1150) | 6.04 % (118/1954) | 5.24 % (141/2689) |
| Original model, PyTorch fp32, the checkpoint's chat template | 4.35 % (50/1150) | 6.86 % (134/1954) | 5.50 % (148/2689) |
| 15 s file, LiteRT-LM 0.18.0 (Python), Apple M4 Max, CPU | 4.35 % (50/1150) | 6.19 % (121/1954) | 5.84 % (157/2689) |
| 15 s file, LiteRT-LM 0.18.0 (Python), Apple M4 Max, LM on the GPU (WebGPU over Metal), audio on the CPU | 4.44 % (51/1150) | 6.24 % (122/1954) | 5.21 % (140/2689) |
| 30 s file, LiteRT-LM 0.17.1 (Python), Apple M4 Max, CPU | 4.43 % (51/1150) | 6.19 % (121/1954) | 5.73 % (154/2689) |
| 30 s file, LiteRT-LM 0.17.1 (Python), Apple M4 Max, LM on the GPU (WebGPU over Metal), audio on the CPU | 4.52 % (52/1150) | 6.19 % (121/1954) | 5.32 % (143/2689) |
No clip came back empty. WER counts words after uppercasing and removing punctuation. CER counts characters after NFKC normalization and lowercasing, with all punctuation, separators and whitespace removed. The 30 s file on LiteRT-LM 0.18.0 scored 4.43 % / 6.40 % / 5.99 % on the CPU and 4.52 % / 6.19 % / 5.32 % on the GPU (the CPU transcripts of 20 of the 155 clips differ between the two runtime versions).
The 30 s file's rows and figures above were measured on earlier versions of that file. The new file was compared with the file it replaced on the 150 clips above plus 5 example clips (155 clips) on a Mac with litert-lm 0.19.2 (greedy decoding, audio encoder on the CPU). On the CPU with 1 thread, the new file gave the same answer as the previous file for all 155 clips, byte for byte (154 clips on 2026-11-15; one clip, whose first run with the new file hit the runtime's 10-minute time limit while the test process was paused, was run again with both files on 2026-11-17). With the LM on the Mac GPU (2026-11-15), the two files gave the same answer for 154 of the 155 clips; scored with the same script as the table above (score_fleurs.py in the reproduction scripts): English WER 4.52 % and Mandarin CER 6.19 % with both files, Japanese CER 5.24 % with the previous file and 5.32 % with the new file.
The 30 s file's numbers in this section above its last part were measured on earlier versions of that file. The new 30 s file's speeds were measured on a Galaxy S26 (GPU and CPU) and a Pixel 11 Pro (GPU); they are in the last part of this section. This card has no Mac or Pixel 8a speed for the new file.
One clip, warm process (the model loaded and the runtime caches present), greedy, the answer complete: the seconds cover the audio encoder, the prefill and the decoding of the transcript. The clip is the 6.4 s English FLEURS sentence 1698 shown above (23 output tokens); the Mandarin (9.7 s, 25 tokens) and Japanese (11.0 s, 38 tokens) clips of the same sentence are in parentheses. Mac: median of 5 calls in one process, LiteRT-LM 0.18.0 (Python), no other measurement running on the Mac, other processes running. Phones: the LiteRT-LM v0.18.0 prebuilt command-line tool, one process per clip, the phone rested to an unthrottled state before each process; on the phones the audio encoder runs on the CPU and its share moves with the phone's thermal state (on the S26, 0.25–0.76 s for the same clip and bytes within one series of runs), so the phone rows are ranges over the processes measured. On the phones the Mandarin clip's process ran first in each series of runs and wrote the runtime caches.
| Device | Backend | 15 s file | 30 s file |
|---|---|---|---|
| Apple M4 Max | LM on the GPU (WebGPU over Metal), audio encoder CPU | 0.34 s (0.36 / 0.46) | 0.54 s (0.56 / 0.65) |
| Apple M4 Max | CPU, 4 threads | 0.85 s (0.89 / 1.14) | 1.19 s (1.24 / 1.50) |
| Galaxy S26 (SM-S942Q) | LM on the GPU (OpenCL), audio encoder CPU | 1.40–1.51 s (1.60 / 2.07) | 2.11–2.81 s (2.82 / 2.77) |
| Galaxy S26 (SM-S942Q) | CPU, 4 threads | 1.55 s (2.18 / 2.17) | 2.11 s (2.18 / 2.70) |
| Pixel 8a | LM on the GPU (OpenCL), audio encoder CPU | 5.03–6.33 s (7.03 / 6.49) | 9.86–9.98 s (11.89 / 10.01) |
| Pixel 8a | CPU, 4 threads | 5.10 s (6.85 / 6.21) | 8.39 s (11.95 / 9.48) |
Galaxy S26, the 15 s file, LiteRT-LM v0.18.0 command-line tool with --benchmark, one process per clip, the prompt 203 tokens (195 audio + 8 text), the weight caches present:
| Backend | Prefill | Decode | Time to first token | Peak private footprint |
|---|---|---|---|---|
LM on the GPU (OpenCL, prefill_256 and decode fully delegated), audio encoder CPU |
762–787 tokens/s | 23.5–26.0 tokens/s | 0.30–0.31 s | 2.41 GB |
| CPU, 4 threads | 511–571 tokens/s (one process 243) | 22.9–25.7 tokens/s | 0.39–0.44 s (one process 0.88 s) | 4.10 GB |
Time to first token covers the prefill and the first decode step; the audio encoder's time comes before it (0.25–0.29 s on these runs). On the GPU the whole 203-token prompt goes through the prefill_256 signature in one call; on the CPU the runtime feeds it through prefill_128 in two calls, so the CPU numbers of the 15 s file equal the 30 s file's per token.
Apple M4 Max, LiteRT-LM 0.17.1 (Python), the 150 FLEURS clips above plus 5 example clips (155 clips, 4–29 s, 1,836 s of audio). Other jobs were running on the machine (load average 4.5–8.5), so read the times as an upper bound:
| Backend | Processing time | Real-time factor | Per clip | Peak RSS |
|---|---|---|---|---|
| CPU, 4 threads | 272 s | 0.148 (6.7× faster than real time) | 1.04–3.17 s, median 1.70 s | 4.54 GB ¹ |
| LM on the GPU (WebGPU over Metal), audio encoder on the CPU | 105 s | 0.057 (17.5× faster than real time) | 0.53–1.06 s, median 0.66 s | 4.79 GB ² |
¹ With the CPU weight caches already written. Peak RSS includes the memory-mapped weights. The first load writes about 3.0 GB of CPU weight caches (encoder 1.27 GB, LM 1.73 GB) into cache_dir, or next to the model file when none is set; a first load that wrote them peaked at 6.62 GB.
² This run was the first GPU load and wrote the GPU caches (1.72 GB) during the run.
Galaxy S26 (SM-S942Q), CPU, 4 threads, LiteRT-LM command-line tool built from the v0.16.1 release tag with --benchmark, one process per clip: an English, a Mandarin and a Japanese FLEURS clip, the English one twice. The prompt is 398 tokens (390 audio + 8 text). The CPU frequency limit was at its maximum before every run:
| Run | Prefill | Decode | Time to first token | Peak private footprint |
|---|---|---|---|---|
| First run, writes the weight caches | 329 tokens/s | 22.8 tokens/s | 1.25 s | 3.47 GB |
| Next 3 runs, caches loaded | 538–547 tokens/s | 25.0–25.6 tokens/s | 0.77–0.78 s | 4.23 GB |
All four transcripts equal the Mac CPU run.
Each run prefills 512 tokens and generates 256 tokens, three times in one process (three iterations), with a text prompt (LM only, no audio) and a context of 1,024 tokens. The program is litert_lm_advanced_main built from the LiteRT-LM v0.19.0 source (commit 771b06e1; the tag's own commit after it changes only Package.swift and README.md), run with --backend=gpu or --backend=cpu and flags including --async=false --benchmark --benchmark_prefill_tokens=512 --benchmark_decode_tokens=256 --num_iterations=3 --max_num_tokens=1024 on 2026-11-17. The CPU runs used 4 threads, the program's default. In each row of the table, the previous file and the new file had four runs in the order previous, new, new, previous. Each run is a new process and started at Android's thermal status 0. Each value is one run's mean of iterations 2–3, so it leaves out iteration 1, the first pass after the engine starts.
| Phone and backend | Prefill, tok/s (previous, new, new, previous) | Decode, tok/s (previous, new, new, previous) | New / previous, runs 2 and 1 | New / previous, runs 3 and 4 |
|---|---|---|---|---|
| Galaxy S26 GPU, first set | 283.41 †, 479.86, 325.31 †, 450.70 | 24.29 †, 29.25, 29.01 †, 26.67 | prefill ×1.693, decode ×1.204 | prefill ×0.722, decode ×1.088 |
| Galaxy S26 GPU, second set | 436.01, 359.61 †, 475.52, 276.71 † | 26.00, 26.77 †, 29.36, 25.14 † | prefill ×0.825, decode ×1.029 | prefill ×1.718, decode ×1.168 |
| Pixel 11 Pro GPU | 366.34, 383.29, 378.31, 367.63 | 11.61, 12.25, 12.20, 11.83 | prefill ×1.046, decode ×1.055 | prefill ×1.029, decode ×1.031 |
| Galaxy S26 CPU | 510.88, 497.78, 511.19, 483.91 | 20.17, 20.83, 20.03, 19.92 | prefill ×0.974, decode ×1.033 | prefill ×1.056, decode ×1.006 |
† On the Galaxy S26 (SM-S942Q) GPU the four runs were made twice (two sets), and in each set one run of each file was slowed by the phone: during its iterations 2–3 the GPU driver's thermal level (0 = no limit) reached 7 or more, where the driver holds the GPU clock at 726 MHz or less instead of 1,300 MHz. Every Galaxy S26 GPU pair in the table therefore has one slowed run, and its prefill ratio follows that run: ×1.693 and ×1.718 where the previous file's run was slowed, ×0.722 and ×0.825 where the new file's run was. In the first set the new file's slowed run prefilled at 0.678 of the speed of its other run (325.31 / 479.86) and the previous file's at 0.629 (283.41 / 450.70), so the ×0.722 is inside the spread between two runs of one file.
The second set was run because of that ×0.722. How to read it was fixed before it ran: compare the iterations 2–3 in which the thermal level stayed below 7 in both runs of a pair, or iteration 1 when there is none. In the second set there was none for either pair (the level reached 9 in iterations 2 and 3 of the second and the fourth run), so both pairs were read on iteration 1. Iteration 1 of each Galaxy S26 GPU run:
| Set | Prefill, tok/s (previous, new, new, previous) | Decode, tok/s (previous, new, new, previous) | New / previous, runs 2 and 1 | New / previous, runs 3 and 4 |
|---|---|---|---|---|
| First | 448.88, 483.10, 479.61, 455.71 | 25.40, 28.77, 28.57, 26.38 | prefill ×1.076, decode ×1.133 | prefill ×1.052, decode ×1.083 |
| Second | 451.25, 480.79, 480.02, 454.26 | 25.72, 28.47, 28.75, 25.93 | prefill ×1.065, decode ×1.107 | prefill ×1.057, decode ×1.109 |
In iteration 1 the thermal level stayed below 7 in all eight runs (5 at most). The comparison of the two files on this phone rests on the second set's row; the first set's row was not part of that reading. A system app (com.google.android.gms) was in the foreground when each Galaxy S26 run started. On the Pixel 11 Pro, Android's thermal status was 1 at most in every run.
On the Galaxy S26 CPU a warm-up run of the new file came before the four runs and is not counted. The first pair's prefill ratio is ×0.974: its shortfall of 0.0256 is inside the 0.0262 between the new file's own two runs (497.78 / 511.19), so it was read as the spread between runs, not as a slowdown. In every CPU run the CPU frequency limit (scaling_max_freq) was at its maximum in the first reading, 3,628,800 kHz for one core group and 4,742,400 kHz for the other, and was later read as low as 1,996,800 and 1,977,600 kHz (the warm-up and the first run) or 1,785,600 and 1,747,200 kHz (the other three runs). Iterations 2–3 ran slower than iteration 1 (new file, iteration 1: prefill 741.57 and 753.86 tok/s, decode 25.81 and 26.08 tok/s).
On both phones the new file and the previous file gave the same answers for three FLEURS clips (en_us_1661, cmn_hans_cn_1661 and ja_jp_1661), byte for byte, with the LM on the GPU, the audio encoder on the CPU and greedy decoding. Against the reference texts both files made 0 errors in 19 English words, 0 in 28 Mandarin characters and 5 in 49 Japanese characters.
GPU or CPU on the Galaxy S26, with the new file on this workload: the GPU decodes faster and the CPU prefills faster. Decode, each run's mean of iterations 2–3: 26.77 to 29.36 tok/s on the GPU, 20.03 and 20.83 tok/s on the CPU (iteration 1: 28.47 to 28.77 against 25.81 and 26.08). Prefill: 497.78 and 511.19 tok/s on the CPU, 325.31 to 479.86 tok/s on the GPU (iteration 1: 741.57 and 753.86 against 479.61 to 483.10). Neither backend is faster in both, so this card does not name one for this file on the phone. The Pixel 11 Pro CPU was not run with the new file.
Python (pip install litert-lm-api; with earlier versions of the files, the 30 s file was run on 0.17.1 and the 15 s file on 0.18.0). On 2026-11-17 the block below was run as written on litert-lm-api 0.19.2 on a Mac, with the file name set to Qwen3-ASR-1.7B.litertlm: once with the 30 s file now in this repo and once with the file it replaced. transcribe takes a 16 kHz mono WAV of up to 30 s; prefix is text the answer starts with, for example language Chinese<asr_text> to force the language, and the return value is the answer after it. Open the file you downloaded; the code is the same for the 15 s and the 30 s file:
import litert_lm
from litert_lm import Content, Contents, Message
from litert_lm.interfaces import CPU
engine = litert_lm.Engine("Qwen3-ASR-1.7B-15s.litertlm", backend=CPU(), audio_backend=CPU())
sampler = litert_lm.SamplerConfig(top_k=1, top_p=1.0, temperature=0.0)
def response_text(resp):
# litert-lm-api 0.15-0.17.1 return a dict of content parts; later builds return a Message whose str() is its text
if type(resp) is dict:
return "".join(p.get("text", "") for p in resp.get("content", []) if isinstance(p, dict))
return str(resp)
def transcribe(wav_path, prefix=""):
items = [Content.AudioFile(wav_path)]
if prefix:
items.append(Content.Text(prefix))
conv = engine.create_conversation(sampler_config=sampler)
try:
return response_text(conv.send_message(Message.user(Contents.of(*items))))
finally:
conv.close()
raw = transcribe("clip.wav")
print(raw.partition("<asr_text>")[2].strip())
For the Chinese example clip the 30 s file returns language Chinese<asr_text>开放时间:早上九点至下午五点。 and the script prints the text after the tag; the 15 s file returns the same sentence in traditional characters, 開放時間:早上九點至下午五點。 (earlier versions of both files, run with this block on litert-lm-api 0.18.0; on the 50 Mandarin FLEURS clips, whose ground truth is simplified, the 15 s file scores CER 6.19 %). In the 2026-11-17 run of this block, the 30 s file now in this repo and the file it replaced both printed 开放时间:早上九点至下午五点。 for this clip. backend=GPU() (from litert_lm.interfaces) puts the language model on the GPU. Keep audio_backend=CPU(): the audio encoder does not run on the GPU delegate (create_conversation fails). The Kotlin Conversation API takes the same calls. In the Galaxy S26 app above (litertlm-android), the engine is built with Backend.CPU for both the model and the audio, and each clip is sent as Content.AudioFile in a new conversation.
Sample app (Android): android/ — one app for both files and two other models (Qwen3-ASR-1.7B, Qwen3-ASR-1.7B-15s, Fun-ASR-Nano-2512, Confucius4-R2T2): a model picker, hold-to-talk up to 30 s and three FLEURS clips, with a device check. Galaxy S26, language model and audio encoder on the CPU (4 threads), litertlm-android 0.17.1, wall time per call: the 30 s file 2.49 s for the 6.4 s English clip and 2.38 s for the 9.7 s Mandarin clip (2026-10-09); the 15 s file 1.79 s and 2.32 s (2026-10-14, where its device check passed all 14 steps: the three clips, a microphone recording, a 30 s message in two windows, release and reload). The sample's README has the full rows.
On Android the S26 rows above for earlier versions of the files came from the command-line tool: litert_lm_advanced_main --backend=cpu --audio_backend=cpu --sampler_backend=cpu --num_cpu_threads=4 --model_path=Qwen3-ASR-1.7B-15s.litertlm --cache_dir=cache --max_num_tokens=1024 --max_output_tokens=256 --benchmark --input_prompt='[audio:/path/clip.wav]' (--backend=gpu for the GPU rows; the 30 s file with its own file name).
If you download these files with the litert-lm command-line tool (PyPI litert-lm, not the litert_lm_advanced_main program above) and it stops right after the download with no error message of its own (a bus error; exit status 138 on a Mac) or with an error log that contains too large for file size, the downloaded file may be incomplete. The litert-lm CLI (0.14.0 to 0.19.2, and litert-lm-nightly 0.20.0.dev20261112) can keep an incomplete download in ~/.litert-lm/cache/huggingface/litert-community/Qwen3-ASR-1.7B/ and uses it again on later runs without checking its size. Delete that file and run the command again (after an import, run the import again). This was measured with other models' files, not with these.
If you downloaded Qwen3-ASR-1.7B.litertlm with the litert-lm CLI's --from-huggingface-repo before it was replaced on 2026-11-17 (11:56 UTC), delete it from ~/.litert-lm/cache/huggingface/litert-community/Qwen3-ASR-1.7B/, then run your command again (after an import, run the import again). Without deleting it, the litert-lm CLI (0.14.0 to 0.19.2) keeps running the previous file: it uses a file it finds there without checking it against this repo. The previous file stays at revision 1f1141b.
Measurements of Qwen3-ASR-1.7B-15s.litertlm on this page made before 2026-11-09 used earlier files, not the current one.
Android GPU with LiteRT-LM v0.18.0 and v0.18.1. Qwen3-ASR-1.7B-15s.litertlm and Qwen3-ASR-1.7B.litertlm keep some of their weights outside the model graph (LiteRT's external weights), and on a Pixel 8a the GPU backend of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on a Qwen3-0.6B file with external weights (LiteRT-LM#3986).
Windows GPU (measured 2026-11-10). On the one Windows laptop tested, the GPU backend did not reach the CPU backend's accuracy with Qwen3-ASR-1.7B.litertlm (the file of 2026-11-09 to 2026-11-17, sha256 4d585d41…). Use the CPU backend on Windows. The laptop is an MSI Stealth 16 AI+ (Core Ultra 9 386H, Windows 11) with LiteRT-LM 0.19.1 (Python); the language model ran on the GPU (WebGPU over Direct3D 12) and the audio encoder on the CPU. On the Intel GPU (Intel Graphics, Xe3-LPG) the file scored English WER 14.17 %, Mandarin CER 52.76 % and Japanese CER 70.51 %; on the RTX 5080 Laptop GPU, 14.61 % / 45.34 % / 139.09 % (a CER above 100 % means the wrong, missing and added characters together outnumber the characters of the references). The CPU backend on the same laptop scored 4.09 % / 6.55 % / 5.76 %. The clips and the scoring are those of the Correctness table. The prompt was the checkpoint's chat template (the table's second row; see Prompt above), not this file's own. Each figure is one run, and the GPU transcripts changed between runs: an earlier pass over 30 of the clips returned the same text as the scored run for 14 clips on the Intel GPU, 15 on the RTX and all 30 on the CPU backend. The cause is not known. This file's own prompt, the 15 s file and the file of 2026-11-17 were not run on Windows. Records: john-rocky/windows-audio-zoo (results/qwen3asr/litertlm-igpu.json, litertlm-rtx.json, litertlm-cpu.json).
From the second turn of a conversation on, LiteRT-LM puts the previous answer's stop token into the KV cache with a zero embedding, because these files hold the embedding table in its own section and the decoder takes embeddings, so later answers in a conversation can differ from the answer the model gives to the same messages in one prompt (read in the source of LiteRT-LM 0.16.0 to 0.18.1; measured with 0.18.1 on WeVisOne-VL-2B and Qwen2.5-Coder-1.5B-Instruct, not on these files). One question per conversation avoids it, as does a new conversation that starts with the earlier messages and the new question.
On LiteRT-LM 0.18.1 and 0.19.1, once a message fails because it does not fit in the context window, every later message in that conversation fails as well (the next one with Task failed with state: 7). Start a new conversation after such an error.
Apache 2.0, the license of the original model.
The conversion differs from a default export in three places:
The 15 s file (2026-10-13) came out of speed tuning of the 30 s file: the audio encoder re-exported with a 15 s window (input [1, 1500, 160], output [1, 195, 2048]; same weights, same fp16 recipe) and the language model re-exported with prefill signatures for 128 and 256 tokens (--prefill_lengths 128,256; same int8 recipe). Of the other forms tried, int4 (blockwise 32) LM weights failed the correctness check (the model stops after the language tag on half of the 155 clips), a dynamic-int8 encoder with the log-mel kept in float passed it with no gain on the GPU, and a 512-token KV cache passed on the CPU but failed on the GPU for Japanese.
These files are made for the Conversation API. The omni/asr runner in the LiteRT-LM repository was not run with them.
Scripts and a one-command reproduction: https://github.com/john-rocky/hf-to-litertlm/tree/main/qwen3_asr17_work.
In Qwen3-ASR-1.7B.litertlm the prefill/decode graph now has the GPU form: 28 odml.cache_update composites for the KV cache and 56 attention composites. The previous file had neither; a check of its graph counted 56 DYNAMIC_UPDATE_SLICE and 56 BATCH_MATMUL ops instead. The prefill length (128 tokens), the KV-cache length (1,024) and the weight quantization read the same before and after.
Only the prefill/decode graph section differs from the previous file: it went from 20,043,360 B to 20,219,904 B. The seven other sections (the two metadata sections, the tokenizer, the embedder graph, the audio encoder and the two weight sections) have the same size and sha256 as in the previous file. The file went from sha256 4d585d41… (2,693,087,232 B) to a10efff2… (2,693,267,456 B).
With litert-lm 0.19.0, 0.19.1 and 0.19.2 on a Mac, on the CPU and on the GPU, the new file and the file it replaced both transcribed two test clips, to the same text byte for byte. The Mac comparison on 155 clips is under Correctness and the phone runs are in the last part of Performance.
Qwen3-ASR-1.7B-15s.litertlm was not replaced.
Apart from the parts that name the file of 2026-11-17, this card's measurements of the 30 s file were made with its earlier versions.
有文件?提交种子。
提交种子Qwen/Qwen3-ASR-1.7B-hf