diff --git a/crates/leleka-runtime/src/qwen_forward/session.rs b/crates/leleka-runtime/src/qwen_forward/session.rs index 8c467cce..6fcd6dc2 100644 --- a/crates/leleka-runtime/src/qwen_forward/session.rs +++ b/crates/leleka-runtime/src/qwen_forward/session.rs @@ -462,6 +462,11 @@ impl<'driver> QwenStepTxn<'_, 'driver> { return Err(Error::Unsupported(Stage::Executor)); } match output { + // A token callback without a produced logits/argmax is a skipped + // forward (Unsupported), distinct from a wrong callback token. + Some(_) if !self.prefill_finished && self.forward_output.is_none() => { + return Err(Error::Unsupported(Stage::Executor)); + } Some(value) if !self.prefill_finished && self.forward_output == Some(value) => {} None if self.prefill_finished && self.forward_output.is_none() => {} _ => return Err(Error::IdentityMismatch),