Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
move min_sms in is_big_gpu inside DEVICE_TYPE if else (#2792)
DoubleMathew0a14b795d086
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex e40635222e3..84dd72e889d 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -543,16 +543,13 @@ def is_big_gpu(index) -> bool:if DEVICE_TYPE == "xpu":prop = torch.xpu.get_device_properties(index)+ min_sms = 16else:prop = torch.cuda.get_device_properties(index)+ min_sms = 80- min_sms = 16 if device.type == "xpu" else 80avail_sms = prop.multi_processor_countif avail_sms < min_sms:- log.warning(- "Not enough SMs to use max_autotune_gemm mode",- extra={"min_sms": min_sms, "avail_sms": avail_sms},- )return Falsereturn True