[Tiny] Fix assert syntax warning in compressed_tensors_w4a4_mxint4_moe.py (#18899)
This commit is contained in:
+2
-3
@@ -89,9 +89,8 @@ class CompressedTensorsMxInt4MoE(CompressedTensorsMoEScheme):
|
|||||||
**extra_weight_attrs,
|
**extra_weight_attrs,
|
||||||
):
|
):
|
||||||
assert (
|
assert (
|
||||||
params_dtype == torch.bfloat16,
|
params_dtype == torch.bfloat16
|
||||||
f"Params dtype should be torch.bfloat16, but got: {params_dtype}",
|
), f"Params dtype should be torch.bfloat16, but got: {params_dtype}"
|
||||||
)
|
|
||||||
|
|
||||||
extra_weight_attrs.update({"quant_method": self.strategy})
|
extra_weight_attrs.update({"quant_method": self.strategy})
|
||||||
w13_weight = torch.nn.Parameter(
|
w13_weight = torch.nn.Parameter(
|
||||||
|
|||||||
Reference in New Issue
Block a user