[Bugfix] Skip _mamba_verify_update for idle batch (#20167)
This commit is contained in:
@@ -796,6 +796,11 @@ class EAGLEWorker(TpModelWorker):
|
||||
spec_info: EagleVerifyInput,
|
||||
seq_lens_pre_verify: torch.Tensor,
|
||||
):
|
||||
# Under DP attention, some ranks can be IDLE during target verify and never
|
||||
# initialize mamba forward metadata for this step.
|
||||
if batch.forward_mode.is_idle():
|
||||
return
|
||||
|
||||
accepted_length = (
|
||||
torch.tensor(
|
||||
res.accept_length_per_req_cpu,
|
||||
|
||||
Reference in New Issue
Block a user