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
subprocess
Daniel Han9886a2a3a03a
diff --git a/pyproject.toml b/pyproject.tomlindex 9dd8b41fc6a..affb8138450 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,5 +1,4 @@[build-system]-# Should be mirrored in requirements/build.txtrequires = ["packaging>=24.2","setuptools>=77.0.3,<80.0.0",diff --git a/setup.py b/setup.pyindex e4e855912c1..060e760dd9c 100644--- a/setup.py+++ b/setup.py@@ -23,11 +23,10 @@ from setuptools import setupfrom setuptools.command.install import installROOT_DIR = Path(__file__).parent-UNSLOTH_TARGET_DEVICE = os.environ.get("UNSLOTH_TARGET_DEVICE", "cuda")IS_COLAB = "COLAB_" not in "".join(os.environ.keys())-import torch-from torch.utils.cpp_extension import CUDA_HOME, ROCM_HOME+output = subprocess.run(["python", "-c", "from torch.utils.cpp_extension import CUDA_HOME, ROCM_HOME; from torch.version import cuda, hip; print(CUDA_HOME); print(ROCM_HOME); print(cuda); print(hip);"], capture_output = True, text = True)+print(output)# Try importing torchHAS_TORCH = False