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
CI: add PyPI extra-index to CPU torch installs to fix sympy resolution (#6660)
Daniel Hanba41e798d67a
diff --git a/.github/workflows/consolidated-tests-ci.yml b/.github/workflows/consolidated-tests-ci.ymlindex b56a6c2615e..bd9c0a532d9 100644--- a/.github/workflows/consolidated-tests-ci.yml+++ b/.github/workflows/consolidated-tests-ci.yml@@ -209,7 +209,7 @@ jobs:'peft>=0.18,<0.20' 'accelerate>=0.34,<2' \ipython# torchvision: unsloth_zoo.vision_utils imports it at module scope.- pip install --index-url https://download.pytorch.org/whl/cpu \+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple \'torch>=2.4,<2.11' 'torchvision<0.26'# transformers + trl from the matrix combo.pip install "$RESOLVED_TRANSFORMERS_SPEC"@@ -2166,7 +2166,7 @@ jobs:python -m pip install --upgrade pip# Match the matrix job's torch path so unsloth_zoo's# `import torch` resolves to the same CPU build.- pip install --index-url https://download.pytorch.org/whl/cpu \+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple \'torch>=2.4,<2.11' 'torchvision<0.26'pip install \'numpy<3' protobuf sentencepiece \diff --git a/.github/workflows/mlx-ci.yml b/.github/workflows/mlx-ci.ymlindex 424a706d7ce..a2f716a93c2 100644--- a/.github/workflows/mlx-ci.yml+++ b/.github/workflows/mlx-ci.yml@@ -163,7 +163,7 @@ jobs:'pytest==9.0.3' \'pytest-asyncio==1.3.0' \'httpx==0.28.1'- pip install --index-url https://download.pytorch.org/whl/cpu \+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple \'torch==2.10.0'# github.com occasionally 500s on the git fetch; retry the# zoo install so a single upstream blip does not fail CI.diff --git a/.github/workflows/notebooks-ci.yml b/.github/workflows/notebooks-ci.ymlindex 2edcae8ab2e..0e0b35dd4dc 100644--- a/.github/workflows/notebooks-ci.yml+++ b/.github/workflows/notebooks-ci.yml@@ -263,7 +263,7 @@ jobs:# unsloth_zoo.vision_utils imports PIL at module top, and the# easiest way to get a torch-compatible PIL on a CPU runner is# to let torchvision pull the right Pillow version.- pip install --index-url https://download.pytorch.org/whl/cpu \+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple \'torch>=2.8,<2.11' 'torchvision<0.26'# Pin to the same versions update_all_notebooks.py installs in# generated notebooks. Keep these in lockstep with PIN_TRL /diff --git a/.github/workflows/studio-backend-ci.yml b/.github/workflows/studio-backend-ci.ymlindex ea60252cf6a..bce355458a8 100644--- a/.github/workflows/studio-backend-ci.yml+++ b/.github/workflows/studio-backend-ci.yml@@ -76,7 +76,7 @@ jobs:# Torch CPU + transformers are required by a chunk of the backend test# suite (gpu_selection, kv_cache_estimation, utils). CPU-only torch# keeps the install ~250 MB / ~1 min on a clean runner.- pip install --index-url https://download.pytorch.org/whl/cpu 'torch>=2.4,<2.11'+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple 'torch>=2.4,<2.11'pip install 'transformers>=4.51,<5.5'- name: Backend tests@@ -137,7 +137,7 @@ jobs:pyyaml jinja2 mammoth unpdf requests typer \'numpy<3' pytest pytest-asyncio httpx# torchvision: unsloth_zoo.vision_utils imports it at module scope.- pip install --index-url https://download.pytorch.org/whl/cpu \+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple \'torch>=2.4,<2.11' 'torchvision<0.26'pip install 'transformers>=4.51,<5.5'# bitsandbytes: hard import in unsloth/models/_utils.py. Recentdiff --git a/.github/workflows/studio-windows-inference-smoke.yml b/.github/workflows/studio-windows-inference-smoke.ymlindex 08a0ee782d4..8186c072118 100644--- a/.github/workflows/studio-windows-inference-smoke.yml+++ b/.github/workflows/studio-windows-inference-smoke.yml@@ -1384,7 +1384,7 @@ jobs:- name: PyTorch CPU wheel installs and imports (no Visual Studio)run: |python -m pip install --upgrade pip- python -m pip install torch --index-url https://download.pytorch.org/whl/cpu+ python -m pip install torch --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simplepython -c "import torch; print('torch', torch.__version__, 'cuda?', torch.cuda.is_available())"- name: Install Studio (--local, --no-torch) with no build tools presentdiff --git a/.github/workflows/version-compat-ci.yml b/.github/workflows/version-compat-ci.ymlindex 599b53df1d9..e492d21e996 100644--- a/.github/workflows/version-compat-ci.yml+++ b/.github/workflows/version-compat-ci.yml@@ -242,7 +242,7 @@ jobs:run: |python -m pip install --upgrade pip# CPU torch (vllm/peft/st all depend on it).- pip install --index-url https://download.pytorch.org/whl/cpu \+ pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple \'torch>=2.4,<2.11' 'torchvision<0.26' 'torchcodec<0.10'# torchcodec is a hard requirement on transformers 5.x:# transformers/audio_utils.py:55 does