Skip to content

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.

fix for inductor no attribute prop.multi_processor_count (#2803)

Lei Zhenyuan48d51bac5f98
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 0658f3f8fc1..05c05ae9ffa 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -556,10 +556,10 @@ from unsloth import DEVICE_TYPE
def is_big_gpu(index) -> bool:
if DEVICE_TYPE == "xpu":
- prop = torch.xpu.get_device_properties(index)
+ prop = DeviceProperties.create(torch.device("xpu", index) if type(index) is int else index)
min_sms = 16
else:
- prop = torch.cuda.get_device_properties(index)
+ prop = DeviceProperties.create(torch.device("cuda", index) if type(index) is int else index)
min_sms = 80
avail_sms = prop.multi_processor_count