Skip to content

Commit aae027b

Browse files
committed
simplify code
Signed-off-by: Dongfeng Yu <dongfengy@nvidia.com>
1 parent 66ab46f commit aae027b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorrt_llm/_torch/modules/fused_moe/fused_moe_trtllm_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def create_weights(self):
251251
self._weights_created = True
252252
self._check_configs()
253253

254-
if (self.has_nvfp4 or self.has_w4a16_mxfp4 or self.has_w4a8_nvfp4_fp8
254+
if (self.has_w4a16_mxfp4 or self.has_w4a8_nvfp4_fp8
255255
or self.has_w4a8_mxfp4_fp8
256256
or self.has_w4a8_mxfp4_mxfp8) and not self.bias:
257257
self.w3_w1_bias = nn.Parameter(torch.zeros(

0 commit comments

Comments
 (0)