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
Update setup.py
Daniel Han71f7bb26dfa1
diff --git a/setup.py b/setup.pyindex fc4c113166c..b411d4d18c5 100644--- a/setup.py+++ b/setup.py@@ -30,9 +30,7 @@ IS_COLAB = "COLAB_" not in "".join(os.environ.keys())HAS_TORCH = FalseHAS_CUDA = TrueHAS_HIP = False-CUDA_HOME = None-ROCM_HOME = None-torch = None+torch = Noneif importlib.util.find_spec("torch") is not None:try:import torch@@ -44,9 +42,13 @@ if importlib.util.find_spec("torch") is not None:except Exception as e:print(f"Unsloth: Importing torch failed with error = {str(e)}.")HAS_TORCH = False+ CUDA_HOME = None+ ROCM_HOME = None+else:+ CUDA_HOME = None+ ROCM_HOME = Nonepass-def load_module_from_path(module_name, path):spec = importlib.util.spec_from_file_location(module_name, path)module = importlib.util.module_from_spec(spec)