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
fix for intel memory (#3513)
Lei Zhenyuan57a03c35f431
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex deaaec26ae7..65492808983 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1014,7 +1014,8 @@ def get_statistics(local_files_only = False):pass_get_statistics(None)_get_statistics("repeat", force_download = False)- vram = torch.cuda.get_device_properties(0).total_memory / 1024 / 1024 / 1024+ total_memory = torch.xpu.get_device_properties(0).total_memory if DEVICE_TYPE == "xpu" else torch.cuda.get_device_properties(0).total_memory+ vram = total_memory / 1024 / 1024 / 1024if vram <= 8 : vram = 8elif vram <= 16: vram = 16elif vram <= 20: vram = 20