Skip to content

Commit 83eda07

Browse files
committed
Fix: nvbugs/5222698 variable not defined
Signed-off-by: Zongfei Jing <[email protected]>
1 parent c8cea30 commit 83eda07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorrt_llm/_torch/models/modeling_deepseekv3.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def forward(
491491

492492
min_latency_mode = True if hidden_states.size(
493493
0
494-
) <= 128 and self.fusion_config.POST_MOE_FUSION and self.is_nvfp4 else False
494+
) <= 128 and self.fusion_config.POST_MOE_FUSION and self.is_nvfp4 and not using_prev_fusion else False
495495

496496
if residual is None:
497497
residual = hidden_states
@@ -510,6 +510,7 @@ def forward(
510510
)
511511

512512
if self.fusion_config.PRE_MOE_FUSION:
513+
hidden_states_fp4 = None
513514
# Custom AR Fusion for DeepseekV3
514515
if using_prev_fusion:
515516
# Custom AR Fusion for DeepseekV3

0 commit comments

Comments
 (0)