Direct Windows support for Unsloth! #1849
Replies: 14 comments 15 replies
-
Btw @adityaghai07 @Captain-T2004 would you guys mind checking to see if I wrote the documentation correctly? It's Method #1: https://docs.unsloth.ai/get-started/installing-+-updating/windows-installation Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
So, i have an issue: #1870 |
Beta Was this translation helpful? Give feedback.
-
Not sure why, but
have no version attribute. |
Beta Was this translation helpful? Give feedback.
-
I managed to get Unsloth to work, but I ran into this Triton error. So I had to fix that. Also, I had to run my Python code from the MSVC Developer terminal so that I could get access to the CMake function. Also, to download the trained model, we need to build Llama.cpp manually. |
Beta Was this translation helpful? Give feedback.
-
unsloth env set up
I get this issue
Tried vllm installation with
every time the issue below pops up |
Beta Was this translation helpful? Give feedback.
-
I encountered problems when I export the model on windows, This is the code. # Save to 8bit Q8_0
if True: model.save_pretrained_gguf("model", tokenizer)
# Remember to go to https://huggingface.co/settings/tokens for a token!
# And change hf to your username!
if False: model.push_to_hub_gguf("hf/model", tokenizer, token = "")
# Save to 16bit GGUF
if False: model.save_pretrained_gguf("model", tokenizer, quantization_method = "f16")
if False: model.push_to_hub_gguf("hf/model", tokenizer, quantization_method = "f16", token = "")
# Save to q4_k_m GGUF
if False: model.save_pretrained_gguf("model", tokenizer, quantization_method = "q4_k_m")
if False: model.push_to_hub_gguf("hf/model", tokenizer, quantization_method = "q4_k_m", token = "")
# Save to multiple GGUF options - much faster if you want multiple!
if False:
model.push_to_hub_gguf(
"hf/model", # Change hf to your username!
tokenizer,
quantization_method = ["q4_k_m", "q8_0", "q5_k_m"],
token = "", # Get a token at https://huggingface.co/settings/tokens
) And this is the problem
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
when i import unsloth,there is an error:
pytorch2.6+cu126,gpu card GTX1080ti,python3.12 |
Beta Was this translation helpful? Give feedback.
-
cuda_12.1, windows 11
pip install "unsloth[windows] @ git+https://github.com/unslothai/unsloth.git" after the pip command , i found its install torch2.6 with out cuda , so i install torch with this: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 the MSVC version is 19.43 after install when i import unsloth i got this error
|
Beta Was this translation helpful? Give feedback.
-
@adityaghai07 @Captain-T2004 It looks like Triton can be pip installed on Windows! https://pypi.org/project/triton-windows/
|
Beta Was this translation helpful? Give feedback.
-
This solution emerged through collaborative troubleshooting with @deepseek Chat AI, which handled 90% of the technical heavy lifting. Subject: Stable Windows Workaround: Disabling xFormers for Unsloth Installation Validated Solution 1. Critical Configuration Change
2. Clean Installation Process
Verification Testing Environment: RTX 4060 Ti (16GB VRAM) Windows 10 Pro 22H2 CUDA 12.1 / PyTorch 2.5.1+cu121 Test Model: unsloth/llama-2-7b-bnb-4bit Successful Execution:
Observed Metrics: VRAM usage: ~8GB GPU temperature: 32°C idle → 49°C under load Generation time: ~45s for 200 tokens Known Considerations
Suggested Documentation Addition
Attached: [unsloth_backup_requirements.txt] with complete dependency list from our working configuration. We're happy to provide additional test cases or environment details if helpful. |
Beta Was this translation helpful? Give feedback.
-
Hi, I get the following error when I try importing unsloth on Windows after installing it using the installation guide on it's Website: https://docs.unsloth.ai/get-started/installing-+-updating/windows-installation `
Not sure why this is happening, given I have followed everything correctly. I am trying to do this on RTX 3060 GPU, CUDA 12.8, Triton 3.3. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
An error occurred when I tried the following command:pip install "unsloth[windows] @ git+https://github.com/unslothai/unsloth.git" ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 2025.3.2 Requires-Python <=3.12,>=3.9 pytorch2.6+cu12.4,GPU RTX2080ti,python3.12 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks to @adityaghai07 and @Captain-T2004 in #1841 you are now able to install Unsloth directly via Windows.
TUTORIAL: https://docs.unsloth.ai/get-started/installing-+-updating/windows-installation
If anyone has tested it out - please let us know if it works well and if there are any issues! Thank you
Feature Overview
These changes allow user to install unsloth on windows directly without any dependency issues using a simple command:
Implementation Details
Reasoning
Testing Details
Beta Was this translation helpful? Give feedback.
All reactions