#Installing in windows, currently impossible ?

31 messages · Page 1 of 1 (latest)

rough abyss
#

Hi.
I tried many hours to install under windows 11, with CUDA 12.1
but seems not possible due to issues around xformers :

conda install -c xformers xformers returns** following packages are not available from current channels**
*so moving to *
pip install xformers==0.0.28.post2 returns Filename longer than 260 characters in ninja which seems known..https://github.com/facebookresearch/xformers/issues/1132
so moving to
using prebuilt https://github.com/facebookresearch/xformers/archive/refs/tags/v0.0.28.post2.zip ends in
File "C:\Users\37019Administrator\anaconda3\envs\unsloth_env\Lib\shutil.py", line 571, in copytree with os.scandir(src) as itr: ^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\Administrator\\Downloads\\xformers-0.0.28.post2\\third_party\\flash-attention\\flash_attn' [end of output]

Triton is succesfully installed in my environment.
I tried with torch 2.4 but doesn't seem the issue..
Any success ? What combination works in 12.1 under Windows ?

GitHub

Ive tried to use command to build for nightly PyTorch version on Win, problem is that it uses filenames waaay too long, so it just throws error and does obviously nothing. Not sure if its Python 3....

velvet magnet
#

I'd suggest you to use WSL instead of windows

rough abyss
velvet magnet
#

They said VS Code has support for WSL

rough abyss
#

Thanks..

velvet magnet
bright copper
rough abyss
bright copper
rough abyss
# bright copper what do you have binded besides pytorch? xformers only supports 12.4 on windows

made it following your advice.
pip install -U xformers --index-url https://download.pytorch.org/whl/cu124

it installed xformers 0.0.28.post3
Then as soon as I use the notebook it turns..

`ImportError: Unsloth: If you are in Colab, we updated the top cell install instructions - please change it to below then press Disconnect Runtime and then Restart it.

%%capture

Installs Unsloth, Xformers (Flash Attention) and all other packages!

!pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
!pip install --no-deps "xformers<0.0.27" "trl<0.9.0" peft accelerate bitsandbytes

Otherwise in local machines, your xformers version of 0.0.28.post3 is too new.
Please downgrade xformers via pip install --force-reinstall \"xformers<0.0.27\""

rough abyss
# bright copper I use 0.0.28.post2

For sure, that's what it suppose to work (Linux).
But I spent the full day yesterday and there is no combinatiuon working so far. And the suggestion does not work

bright copper
rough abyss
#

There is no way to have it installed

#

(xformers==0.0.28.post2)

bright copper
rough abyss
bright copper
rough abyss
#

let me retry. I have a fresh colab ready, but my perseverance will make it over this $hit, and my 3090 will be party tonight or hopefully tomorrow.

half tinsel
#

I didnt read this entire thread, but just install WSL2 if you didnt already.

#

You cant run these things on windows

#

WSL2 gives you linux.

#

And you can connect to vscode with built in support

rough abyss
bright copper
rough abyss