Skip to content

Add Kroko XL offline ASR and improve Zipformer inference - #1273

Merged
0xShug0 merged 4 commits into
mainfrom
feature/kroko-asr-xl
Nov 13, 2026
Merged

0xShug0 merged 4 commits into
mainfrom
feature/kroko-asr-xl

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Adds Kroko XL English offline ASR to the existing kroko_asr family, including ONNX-to-GGUF conversion and usage documentation. Existing causal packages retain their stateful streaming path.

Inference reuses framework modules and session-owned prepared graphs, with batched relative attention, channel-fast subsampling, graph-based predictor/joiner projections and sparse filterbank computation. Framework attention and convolution implementations remain opt-in through C++ configuration; Kroko selects them internally without new public options. Existing callers retain their default implementations. No GGML kernel changes.

Validation

Warmed A→B→B→A, eight threads, Q8 packages, greedy decoding, with 6-, 14- and 28-second inputs. Each block includes a warmup followed by three measured requests per input. Timings use session.wall_ms.

The existing Community 64-L package compares against main (33ca47fcb). XL compares against the initial XL port (407ef25a7), since main does not support XL.

Model / backend Before RTF, 28 s After RTF, 28 s Inference-time reduction
Community 64-L / CPU 0.02623 0.01725 34.2%
Community 64-L / CUDA 0.01324 0.00634 52.2%
XL / CPU 0.03664 0.01088 70.3%
XL / CUDA 0.00633 0.00121 81.0%
  • All compared transcripts match exactly across both packages, backends and input lengths.
  • Unchanged shared-module caller regression check: Sherpa KWS detections, timestamps and confidence values match exactly, including long→short reuse. Controlled timing differences range from −2.7% to +2.7%.
  • New model-independent CPU FP32 convolution unit test passes all 80 configurations, with two executions using changed inputs and weights per configuration. Both convolution modules, layouts and implementations are checked against independent scalar convolution with double accumulation, covering bias, batches, stride, padding and dilation (absolute tolerance 2e-5).
  • Debug build passes.

@0xShug0 0xShug0 added the new model Request for new model support label Nov 13, 2026
@0xShug0
0xShug0 merged commit bf3cabb into main Nov 13, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/kroko-asr-xl branch November 13, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new model Request for new model support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant