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.

Update loader.py

Daniel Han26fea0ff3580
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 91016a13ba3..247c72f43fb 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -204,6 +204,17 @@ class FastLanguageModel(FastLlamaModel):
"Unsloth: Please install vLLM before enabling `fast_inference`!\n"
"You can do this in a terminal via `pip install vllm`"
)
+ if DEVICE_TYPE_TORCH == "cuda":
+ for i in range(DEVICE_COUNT):
+ # [TODO] DGX Spark vLLM breaks
+ if "NVIDIA GB10" in str(torch.cuda.get_device_name(i)).upper():
+ print(
+ "Unsloth: DGX Spark detected - `fast_inference=True` is currently broken as of January 2026.\n"
+ "Defaulting to native Unsloth inference."
+ )
+ fast_inference = False
+ break
+
# [TODO] For now fast_inference only works with fast_inference ie vLLM
if load_in_fp8 != False:
if not fast_inference:
@@ -744,6 +755,17 @@ class FastModel(FastBaseModel):
"Unsloth: Please install vLLM before enabling `fast_inference`!\n"
"You can do this in a terminal via `pip install vllm`"
)
+ if DEVICE_TYPE_TORCH == "cuda":
+ for i in range(DEVICE_COUNT):
+ # [TODO] DGX Spark vLLM breaks
+ if "NVIDIA GB10" in str(torch.cuda.get_device_name(i)).upper():
+ print(
+ "Unsloth: DGX Spark detected - `fast_inference=True` is currently broken as of January 2026.\n"
+ "Defaulting to native Unsloth inference."
+ )
+ fast_inference = False
+ break
+
# [TODO] For now fast_inference only works with fast_inference ie vLLM
if load_in_fp8 != False:
if not fast_inference: