Fix gpu-fault issue when run deepseek-r1 and enable dp (#20841)

Co-authored-by: wunhuang <wunhuang@amd.com>
This commit is contained in:
kk
2026-03-19 17:36:12 +08:00
committed by GitHub
parent cb8105fe28
commit c8f0122acf

View File

@@ -1952,7 +1952,7 @@ class AiterAttnBackend(AttentionBackend):
raise ValueError("Invalid forward mode")
def get_cuda_graph_seq_len_fill_value(self):
return 1
return 1 if self.num_draft_tokens is None else self.num_draft_tokens
def update_verify_buffers_to_fill_after_draft(
self, spec_info: SpecInput, cuda_graph_bs: Optional[int]