Direct Windows support for Unsloth! #1849
Replies: 10 comments 13 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.
-
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.
-
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