[Bugfix] Do not assume a stream decoder in MRv2 eager-MTP preprocess (#8484)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-10-05 09:29:38 -04:00
1 parent 5351cd6645
commit 023716ecc4
2 files changed
+8 -2

No files matched your search

@@ -760,7 +760,8 @@ class OmniModelState(DefaultModelState):
n_tok = int(input_batch.num_scheduled_tokens[i])
if (
self._eager_mtp
and self.model.stream_decoder is not None
# Only the Qwen3-TTS Talker has an in-Talker streaming codec.
and getattr(self.model, "stream_decoder", None) is not None
and self._eager_state.replay_inputs(
buf["req_id"],
req_idx,