[Bugfix][Spec Decode] Skip uniform spec-decode padding for diffusion models (#47464)

Signed-off-by: kl527 <kl527@cornell.edu>
Signed-off-by: Kyung Sub Lee (Daniel) <66861800+kl527@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kyung Sub Lee (Daniel)
2026-07-07 09:25:12 +00:00
committed by GitHub
co-authored by Claude Fable 5
parent 066f02ae94
commit c5b66233b2
2 changed files with 37 additions and 0 deletions
+2
View File
@@ -811,8 +811,10 @@ class Scheduler(SchedulerInterface):
# Pad new decode requests to uniform spec decoding size to
# preserve full cudagraph for this step.
# Not for diffusion where draft tokens can't be padded.
if (
(self.num_spec_tokens > 0 and self.dynamic_sd_lookup is None)
and self.num_sampled_tokens_per_step > 0
and num_new_tokens == 1
and (scheduled_running_reqs and not prefill_scheduled)
):