[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:
co-authored by
Claude Fable 5
parent
066f02ae94
commit
c5b66233b2
@@ -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)
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user