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
Add torch 2.9.1
Daniel Han49607bf27fd6
diff --git a/pyproject.toml b/pyproject.tomlindex 59fc94ee4b7..cced1c75afa 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -273,10 +273,22 @@ cu128onlytorch280 = [cu130onlytorch280 = []cu126onlytorch290 = [+ "xformers @ https://download.pytorch.org/whl/cu126/xformers-0.0.33.post1-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)",+ "xformers @ https://download.pytorch.org/whl/cu126/xformers-0.0.33.post1-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')",]cu128onlytorch290 = [+ "xformers @ https://download.pytorch.org/whl/cu128/xformers-0.0.33.post1-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)",+ "xformers @ https://download.pytorch.org/whl/cu128/xformers-0.0.33.post1-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')",]cu130onlytorch290 = [+ "xformers @ https://download.pytorch.org/whl/cu130/xformers-0.0.33.post1-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)",+ "xformers @ https://download.pytorch.org/whl/cu130/xformers-0.0.33.post1-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')",+]+cu126onlytorch291 = [+]+cu128onlytorch291 = [+]+cu130onlytorch291 = []cu118 = ["unsloth[huggingface]",@@ -453,6 +465,21 @@ cu130-torch290 = ["bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0","unsloth[cu130onlytorch290]",]+cu126-torch291 = [+ "unsloth[huggingface]",+ "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0",+ "unsloth[cu126onlytorch291]",+]+cu128-torch291 = [+ "unsloth[huggingface]",+ "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0",+ "unsloth[cu128onlytorch291]",+]+cu130-torch291 = [+ "unsloth[huggingface]",+ "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0",+ "unsloth[cu130onlytorch291]",+]kaggle = ["unsloth[huggingface]",]@@ -721,6 +748,21 @@ cu130-ampere-torch290 = ["bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0","unsloth[cu130onlytorch290]",]+cu126-ampere-torch291 = [+ "unsloth[huggingface]",+ "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0",+ "unsloth[cu126onlytorch291]",+]+cu128-ampere-torch291 = [+ "unsloth[huggingface]",+ "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0",+ "unsloth[cu128onlytorch291]",+]+cu130-ampere-torch291 = [+ "unsloth[huggingface]",+ "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0",+ "unsloth[cu130onlytorch291]",+]flashattentiontorch260abiFALSEcu12x = ["flash-attn @ https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp39-cp39-linux_x86_64.whl ; ('linux' in sys_platform) and python_version == '3.9'","flash-attn @ https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl ; ('linux' in sys_platform) and python_version == '3.10'",diff --git a/unsloth/_auto_install.py b/unsloth/_auto_install.pyindex f6cf6cfc94d..a283ad00dac 100644--- a/unsloth/_auto_install.py+++ b/unsloth/_auto_install.py@@ -34,6 +34,7 @@ elif v < V('2.7.9'): x = 'cu{}{}-torch270'elif v < V('2.8.0'): x = 'cu{}{}-torch271'elif v < V('2.8.9'): x = 'cu{}{}-torch280'elif v < V('2.9.1'): x = 'cu{}{}-torch290'+elif v < V('2.9.2'): x = 'cu{}{}-torch291'else: raise RuntimeError(f"Torch = {v} too new!")if v > V('2.6.9') and cuda not in ("11.8", "12.6", "12.8", "13.0"): raise RuntimeError(f"CUDA = {cuda} not supported!")x = x.format(cuda.replace(".", ""), "-ampere" if is_ampere else "")