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 Han746ff24ed256
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index cafb1282f7b..4566302ed02 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -43,7 +43,7 @@ if SUPPORTS_GEMMA:
if SUPPORTS_GEMMA2:
from .gemma2 import FastGemma2Model
pass
-
+import torch
def _get_dtype(dtype):
__DTYPE_MAP = {