From 2697047c2041304cfffcf3e80b73a309dd48d700 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Fri, 17 Oct 2025 04:55:21 -0700 Subject: [PATCH] Update device_type.py --- unsloth/device_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/device_type.py b/unsloth/device_type.py index ac70d26795..194ae08be2 100644 --- a/unsloth/device_type.py +++ b/unsloth/device_type.py @@ -81,7 +81,7 @@ if DEVICE_TYPE == "hip": if "blocksize = 64 if not HIP_ENVIRONMENT else 128" in inspect.getsource(Params4bit): ALLOW_PREQUANTIZED_MODELS = False import bitsandbytes - ALLOW_BITSANDBYTES = Version(bitsandbytes.__version__) > Version("0.48.2.dev0") + ALLOW_BITSANDBYTES = Version(bitsandbytes.__version__) >= Version("0.48.2.dev0") except: pass pass