Repository navigation
Closed
Labels
currently fixingAm fixing now!
Description
Using Python 3.11, pytorch 2.5.1, cuda 12.4 here.
I was able to install a triton wheel of this windows port to ensure compatibility.
https://github.com/woct0rdho/triton-windows
I also locally built a complete wheel for flash attention 2.6.3 to support training, not just inference.
The following command gets pretty far:
pip install --upgrade "unsloth[cu124-ampere-torch250] @ git+https://github.com/unslothai/unsloth.git"
The following prerequistes were satisfied:
Requirement already satisfied: bitsandbytes>=0.43.3 in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (0.44.1)
Requirement already satisfied: packaging in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (24.1)
Requirement already satisfied: ninja in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (1.11.1.1)
Requirement already satisfied: flash-attn>=2.6.3 in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (2.6.3)
Requirement already satisfied: torch in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from bitsandbytes>=0.43.3->unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (2.5.1+cu124)
Requirement already satisfied: numpy in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from bitsandbytes>=0.43.3->unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (1.26.4)
Requirement already satisfied: einops in c:\users\jim\appdata\local\programs\python\python311\lib\site-packages (from flash-attn>=2.6.3->unsloth@ git+https://github.com/unslothai/unsloth.git->unsloth[cu124-ampere-torch250]@ git+https://github.com/unslothai/unsloth.git) (0.8.0)
Unfortunately, this is the current obstacle:
ERROR: xformers-0.0.28.post2-cp311-cp311-manylinux_2_28_x86_64.whl is not a supported wheel on this platform.
Metadata
Metadata
Assignees
Labels
currently fixingAm fixing now!
Activity
[-]xformers incompatibility when installing directly on Windows 11 without WSL/WSL2[/-][+]Windows Support[/+]danielhanchen commentedon Dec 4, 2024
We plan to fix up pyproject.toml to enable Windows support!!
jtabox commentedon Dec 10, 2024
Is there anything one can do while waiting for the fix? I have the following installed:
but the installation fails because it tries to install
xformers 0.0.28.Also, from what I understand xformers 0.0.28 are for PyTorch 2.5.0, or am I wrong? So
PyTorch 2.4.0won't work anyway?danielhanchen commentedon Dec 12, 2024
@jtabox Sorry on the delay - could you try
pip install unsloth unsloth_zoo --no-deps- you will have to install all dependencies manually thoughjtabox commentedon Dec 12, 2024
It's no problem, no need to apologize :) Actually I pretended I'm
pipand went through the repo'spyproject.tomlstep-by-step, installing the correct dependencies manually, except the specific version of xformers, I kept the version I mentioned above. I had some installed already, installed a couple more and finally installedunsloth_zoo, and apparently it worked. Haven't tested extensively, but nothing has complained so far.Datbwoyyy commentedon Feb 17, 2025
Im Working on this
danielhanchen commentedon Feb 17, 2025
@Datbwoyyy Fantastic that'll be helpful! :)
versipellis commentedon Feb 19, 2025
@danielhanchen It's possible that
pyproject.tomlwas bugged when @jim-plus originally tested this, but the dependencies looked correct today when I tested it (I did add the latestxformerswheels in #1753, however). I do want to point out this line from the OP:When @jim-plus tried to install it, it appears to have been trying to install the Linux wheel, which was why that error was thrown - that shouldn't be happening.
rolandtannous commentedon Jun 7, 2025
Hi guys,
checkout this PR
#1841
The tutorial
https://docs.unsloth.ai/get-started/installing-+-updating/windows-installation
and this step by step small guide from a community member
#1849 (comment)
will close this for now. Feel free to comment on #1849 with any issues you are still having. thank you