Update README.md
Browse files
README.md
CHANGED
@@ -1,36 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# π§± xFormers for Windows: Torch 2.8.0.dev + CUDA 12.8 + Python 3.12
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
---
|
10 |
|
11 |
-
|
12 |
|
13 |
-
|
14 |
|
15 |
```bash
|
16 |
-
pip install https://
|
17 |
```
|
18 |
|
19 |
-
β
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
---
|
22 |
-
## π¦
|
23 |
-
|
24 |
-
torchaudio
|
25 |
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
https://download.pytorch.org/whl/nightly/cu128/torch-2.8.0.dev20250416+cu128-cp312-cp312-win_amd64.whl
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
|
35 |
Install directly via `pip` from Hugging Face:
|
36 |
|
|
|
1 |
+
|
2 |
+
# xFormers for Windows (Torch 2.8.0.dev + CUDA 12.8 + Python 3.12)
|
3 |
+
|
4 |
+
Prebuilt `xformers` wheel for Windows 10/11 compatible with:
|
5 |
+
|
6 |
+
- **Torch**: 2.8.0.dev20250502+cu128
|
7 |
+
- **Torchvision**: 0.22.0.dev20250502+cu128
|
8 |
+
- **Torchaudio**: 2.6.0.dev20250502+cu128
|
9 |
+
- **CUDA**: 12.8
|
10 |
+
- **Python**: 3.12.x (CPython)
|
11 |
+
|
12 |
+
---
|
13 |
+
|
14 |
+
## β
Installation Instructions
|
15 |
+
|
16 |
+
directly install the tested version used in this build:
|
17 |
+
````
|
18 |
+
pip install https://download.pytorch.org/whl/nightly/cu128/torch-2.8.0.dev20250502%2Bcu128-cp312-cp312-win_amd64.whl
|
19 |
+
````
|
20 |
+
Install xformers Wheel
|
21 |
+
|
22 |
+
````
|
23 |
+
pip install https://huggingface.co/czmahi/xformers-windows-torch2.8-cu128-py312/resolve/main/latest-torch2.8-python3.12-xformers-comfyui-windows/xformers-0.0.31%2B8fc8ec5a.d20250503-cp312-cp312-win_amd64.whl
|
24 |
+
````
|
25 |
+
|
26 |
+
## download manully wheel from the link go the then find then downlaod and install
|
27 |
+
https://download.pytorch.org/whl/nightly/cu128
|
28 |
+
|
29 |
+
torchvision-0.22.0.dev20250502+cu128-cp312-cp312-win_amd64.whl
|
30 |
+
|
31 |
+
torchaudio-2.6.0.dev20250502+cu128-cp312-cp312-win_amd64.whl
|
32 |
+
|
33 |
+
torch-2.8.0.dev20250502+cu128-cp312-cp312-win_amd64.whl
|
34 |
+
|
35 |
+
|
36 |
+
### old version Install PyTorch Nightly (with CUDA 12.8 support)
|
37 |
+
```bash
|
38 |
+
pip install --upgrade --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
# π§± xFormers for Windows: Torch 2.8.0.dev + CUDA 12.8 + Python 3.12
|
43 |
|
44 |
+
## β
Installation Guide for xFormers (Torch 2.8.0.dev + CUDA 12.8 + Python 3.12)
|
45 |
+
|
46 |
+
This prebuilt wheel is tested and built for:
|
47 |
+
|
48 |
+
- β
Python **3.12.x**
|
49 |
+
- β
PyTorch **2.8.0.dev (nightly)** with **CUDA 12.8**
|
50 |
+
- β
Windows 64-bit
|
51 |
+
- β
RTX 3000 series cards will work nividia Windows 64-bit
|
52 |
+
### π§ 1. Install Python 3.12
|
53 |
+
|
54 |
+
Download and install from:
|
55 |
+
π https://www.python.org/downloads/release/python-3120/
|
56 |
+
|
57 |
+
Make sure Python and pip are available in your terminal:
|
58 |
+
|
59 |
+
```bash
|
60 |
+
python --version
|
61 |
+
pip --version
|
62 |
+
```
|
63 |
|
64 |
---
|
65 |
|
66 |
+
### βοΈ 2. Install Nightly Torch, TorchVision, and TorchAudio
|
67 |
|
68 |
+
Use the official PyTorch nightly index for CUDA 12.8:
|
69 |
|
70 |
```bash
|
71 |
+
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
|
72 |
```
|
73 |
|
74 |
+
> β
Confirm version after install:
|
75 |
+
|
76 |
+
```bash
|
77 |
+
python -c "import torch; print(torch.__version__)"
|
78 |
+
# Should show: 2.8.0.dev + cu128
|
79 |
+
```
|
80 |
|
81 |
---
|
82 |
+
## π¦ Installation xformers:
|
|
|
|
|
83 |
|
84 |
+
torchaudio must install
|
85 |
+
```bash
|
86 |
+
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
|
87 |
+
```
|
88 |
|
89 |
+
```bash
|
90 |
+
pip install https://download.pytorch.org/whl/nightly/cu128/torch-2.8.0.dev20250416+cu128-cp312-cp312-win_amd64.whl --no-deps
|
91 |
+
```
|
92 |
+
|
93 |
+
download wheel for local setup: https://download.pytorch.org/whl/nightly/cu128/torch-2.8.0.dev20250416+cu128-cp312-cp312-win_amd64.whl
|
94 |
|
|
|
95 |
|
96 |
+
## π¦ Installation xformers update version :
|
97 |
+
|
98 |
+
before install update version see here for update
|
99 |
+
|
100 |
+
https://github.com/czmahi/xformers-windows-torch2.8-cu128-py312/blob/main/README_xformers_install.md
|
101 |
+
|
102 |
+
torchaudio must update
|
103 |
|
104 |
+
|
105 |
+
```bash
|
106 |
+
pip install --upgrade --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
|
107 |
+
```
|
108 |
+
wheel:
|
109 |
|
110 |
Install directly via `pip` from Hugging Face:
|
111 |
|