[NPU] fix dsv4 mtp condition on NPU graph (#32711)
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ class EAGLEDraftExtendNpuGraphRunner(EAGLEDraftExtendCudaGraphRunner):
|
|||||||
|
|
||||||
def _replay_graph(self, shape_key, forward_batch):
|
def _replay_graph(self, shape_key, forward_batch):
|
||||||
hf_config = self.model_runner.model_config.hf_config
|
hf_config = self.model_runner.model_config.hf_config
|
||||||
if not (is_deepseek_dsa(hf_config) and is_deepseek_v4(hf_config)):
|
if not (is_deepseek_dsa(hf_config) or is_deepseek_v4(hf_config)):
|
||||||
seq_lens = forward_batch.seq_lens_cpu.tolist() + [0] * (
|
seq_lens = forward_batch.seq_lens_cpu.tolist() + [0] * (
|
||||||
self.bs - self.raw_bs
|
self.bs - self.raw_bs
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class EAGLEDraftNpuGraphRunner(EAGLEDraftCudaGraphRunner):
|
|||||||
|
|
||||||
def _replay_graph(self, shape_key, forward_batch):
|
def _replay_graph(self, shape_key, forward_batch):
|
||||||
hf_config = self.model_runner.model_config.hf_config
|
hf_config = self.model_runner.model_config.hf_config
|
||||||
if not (is_deepseek_dsa(hf_config) and is_deepseek_v4(hf_config)):
|
if not (is_deepseek_dsa(hf_config) or is_deepseek_v4(hf_config)):
|
||||||
seq_lens_for_each_draft_step = []
|
seq_lens_for_each_draft_step = []
|
||||||
for speculative_step_id in range(self.speculative_num_steps - 1):
|
for speculative_step_id in range(self.speculative_num_steps - 1):
|
||||||
seq_lens_cpu = (
|
seq_lens_cpu = (
|
||||||
|
|||||||
Reference in New Issue
Block a user