From 90a0d66e1e46f67ceba1c1c5061180e6af1cc748 Mon Sep 17 00:00:00 2001 From: Mohammad Miadh Angkad <176301910+mmangkad@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:54:30 +0800 Subject: [PATCH] [Tiny] Fix assert syntax warning in compressed_tensors_w4a4_mxint4_moe.py (#18899) --- .../schemes/compressed_tensors_w4a4_mxint4_moe.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/sglang/srt/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a4_mxint4_moe.py b/python/sglang/srt/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a4_mxint4_moe.py index 47db28201..8419efcb8 100644 --- a/python/sglang/srt/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a4_mxint4_moe.py +++ b/python/sglang/srt/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a4_mxint4_moe.py @@ -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(