Skip to main content

Module decode

Module decode 

Source
Expand description

Explicit developer adapters for the canonical Etalon Qwen engine. Product generation uses NativeProductSession::decode_qwen_into with retained sources.

Structs§

Qwen4ExpDecodeReceipt
Measurement receipt for a real multi-token decode run. trunk_* and ple_* counts come from the readers’ own counters, not estimates.
Qwen4ExpDecodeScratch
All per-step scratch, allocated once and shared across every layer. The GDN and QSA paths run sequentially, so one set of buffers serves both.
Qwen4ExpSession
Owned mutable state for a live Qwen4Exp sequence. Allocated once at session start; the per-token step only mutates slices inside it.
Qwen4ExpTraceBuffer
Qwen4ExpTraceRecord
One observed tensor inside a token step, for lab-style localization of a divergent stage. layer is u32::MAX for the embedding/final stages.
Qwen4ExpTraceSummary

Enums§

Qwen4ExpDecodeError

Constants§

QWEN4EXP_TRACE_META_LAYER
Layer sentinel for records that do not belong to a numbered block.

Traits§

Qwen4ExpTraceSink

Functions§

decode_step
decode_tokens