[Tiny] Fix assert syntax warning in compressed_tensors_w4a4_mxint4_moe.py (#18899)

This commit is contained in:
Mohammad Miadh Angkad
2026-02-17 12:54:30 +08:00
committed by GitHub
parent 7e41ac6c8d
commit 90a0d66e1e

View File

@@ -89,9 +89,8 @@ class CompressedTensorsMxInt4MoE(CompressedTensorsMoEScheme):
**extra_weight_attrs,
):
assert (
params_dtype == torch.bfloat16,
f"Params dtype should be torch.bfloat16, but got: {params_dtype}",
)
params_dtype == torch.bfloat16
), f"Params dtype should be torch.bfloat16, but got: {params_dtype}"
extra_weight_attrs.update({"quant_method": self.strategy})
w13_weight = torch.nn.Parameter(