[Tiny] Fix assert syntax warning in compressed_tensors_w4a4_mxint4_moe.py (#18899)
This commit is contained in:
committed by
GitHub
parent
7e41ac6c8d
commit
90a0d66e1e
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user