From da7517c9c9ab4d70a5526f18d14f9bdfcb16444e Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Wed, 6 Aug 2025 06:34:07 -0700 Subject: [PATCH] Update _utils.py --- unsloth/models/_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 7f0c2f6959..2e88e213e6 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -214,6 +214,14 @@ try: except: pass +# MXFP4 quantization requires triton >= 3.4.0 +try: + from transformers.quantizers.quantizer_mxfp4 import logger as mxfp4_logger + mxfp4_logger.addFilter(HideLoggingMessage("requires triton")) + del mxfp4_logger +except: + pass + # Errors out on # Some weights of Gemma3nForConditionalGeneration were not initialized from the model checkpoint from transformers.modeling_utils import logger as transformers_logger