Repository navigation
Backlog
Description
Problem
GigaAM-v4 has a stateful streaming mode in the reference implementation,
but the port in #285 wires only the offline full-context run path.
Streaming is unavailable end to end.
Evidence
src/arch/gigaam/model.cpp:935-939registers
stream_validate/begin/feed/finalize/reset = nullptr.capabilities.cppnever setssupports_streaming, so
transcribe_stream_begin()returnsTRANSCRIBE_ERR_NOT_IMPLEMENTED.scripts/convert-gigaam-v4.py:277writesstt.capability.streaming=false
and fixeschunk_size=-1/chunk_window=(-1,-1).reports/porting/gigaam/gigaam-v4-e2e-rnnt/intake.json:156records
"streaming": false;docs/models/gigaam.mdlists real-time streaming as
unsupported.- The v2 and v3 Conformer checkpoints have no streaming in the reference:
gigaam/streaming.pywas added with v4 on 2026-11-27. Streaming is a
Zapformer capability; the multilingual-v2 checkpoint is tracked separately
(see the note below).
Reference behaviour
From gigaam/streaming.py (salute-developers/GigaAM):
GigaAMStreamingreadsmodel.cfg["streaming"]["contexts"], a list of
{future_context_ms, left_context}presets. The v4 card shows
create_stream(future_context_ms=160); 160/320/640 ms are advertised.chunk_size = future_context_ms / frame_ms(40 ms), plusleft_context.ZapformerLayerStreamStatecachesquery,value,mean,
convolution.EncoderStreamStatekeeps pending frames, position, the frontend buffer,
and the per-layer states.transcribe_partial(packet)publishes committed text;flush()drains
the tail.to_onnx(streaming=True)exports the same graph.- The streaming config lives in the checkpoint, so the converted GGUF must
carry it.
Decisions
- Cover the released v4 checkpoints that carry
streaming.contexts. An
encoder without that config stays offline. A causal-only variant is a
follow-up if a checkpoint requires it. GigaAM-Multilingual-v2carries the same streaming contexts, but porting
it is a separate model effort (language conditioning, dual heads); it is
tracked in gigaam: stream GigaAM-Multilingual-v2 (Zapformer, language conditioning) #312. The streaming graph and hooks built here are shared with
it.- The converter writes every advertised context (160/320/640 ms). The graph
is parameterized by chunk size and left context, so one code path serves
them all;transcribe_stream_beginuses the smallest advertised context
by default. - GGUF schema, parallel arrays of the same length:
stt.gigaam.streaming.future_context_ms(array u32)stt.gigaam.streaming.left_context(array u32)stt.gigaam.streaming.frame_ms(u32, 40)
stt.capability.streamingis true only when both arrays are present and
non-empty.
Work items
- Converter/hparams: read
streaming.contextsfrom the checkpoint config
and write the arrays above; stop hard-codingstreaming=false. - Graph: build the Zapformer encoder with chunked attention (left + future
context) and per-layer KV/conv caches, plus the frontend buffer that
emits encoder frames per hop. - Decoder: carry the RNN-T state across chunks instead of resetting the
greedy decoder per chunk; publish committed/tentative text through
transcribe_stream_get_text(). - API: implement the stream hooks and set
supports_streaming=truefor v4
GGUFs that carry a streaming config; keep v3 offline. - Tests: golden parity against the reference at 160/320/640 ms on a short
utterance, plus a streaming smoke likemoonshine_streaming.
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(gigaam): keep the RNN-T decoder state across streaming chunks
feat(gigaam): read and write the v4 streaming hparams
feat(gigaam): keep the RNN-T decoder state across streaming chunks
feat(gigaam): keep the RNN-T decoder state across streaming chunks
feat(gigaam): read and write the v4 streaming hparams
fix(gigaam): validate the streaming decoder and hparams loader inputs
feat(gigaam): compute the streaming feed and attention geometry
feat(gigaam): stream the Zapformer frontend with conv caches
feat(gigaam): stream the Zapformer encoder with per-layer caches
feat(gigaam): stream the Zapformer frontend with conv caches
feat(gigaam): stream the Zapformer encoder with per-layer caches
feat(gigaam): keep the RNN-T decoder state across streaming chunks
feat(gigaam): read and write the v4 streaming hparams
fix(gigaam): validate the streaming decoder and hparams loader inputs
feat(gigaam): compute the streaming feed and attention geometry
feat(gigaam): stream the Zapformer frontend with conv caches
feat(gigaam): stream the Zapformer encoder with per-layer caches