-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtorch.js
More file actions
69 lines (66 loc) · 3.24 KB
/
torch.js
File metadata and controls
69 lines (66 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
run: [
// windows nvidia 50 series
{
"when": "{{gpu === 'nvidia' && platform === 'win32' && kernel.gpu_model && / 50.+/.test(kernel.gpu_model) }}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch==2.7.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 --force-reinstall",
"uv pip install -U triton-windows",
"uv pip install https://github.com/woct0rdho/SageAttention/releases/download/v2.1.1-windows/sageattention-2.1.1+cu128torch2.7.0-cp310-cp310-win_amd64.whl --force-reinstall"
]
},
"next": null
},
// linux nvidia 50 series
{
"when": "{{gpu === 'nvidia' && platform === 'linux' && kernel.gpu_model && / 50.+/.test(kernel.gpu_model) }}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 --force-reinstall",
"uv pip install git+https://github.com/thu-ml/SageAttention.git"
]
},
"next": null
},
// nvidia windows
{
"when": "{{gpu === 'nvidia' && platform === 'win32'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch==2.6.0 torchvision torchaudio {{args && args.xformers ? 'xformers' : ''}} --index-url https://download.pytorch.org/whl/cu126 --force-reinstall",
"uv pip install xformers==0.0.29.post3 --index-url https://download.pytorch.org/whl/cu126 --force-reinstall",
"uv pip install -U triton-windows==3.2.0.post18 --force-reinstall",
"uv pip install https://github.com/woct0rdho/SageAttention/releases/download/v2.1.1-windows/sageattention-2.1.1+cu126torch2.6.0-cp310-cp310-win_amd64.whl --force-reinstall",
"uv pip install https://huggingface.co/lldacing/flash-attention-windows-wheel/resolve/main/flash_attn-2.7.4+cu126torch2.6.0cxx11abiFALSE-cp310-cp310-win_amd64.whl"
]
},
"next": null
},
// nvidia linux
{
"when": "{{gpu === 'nvidia' && platform === 'linux'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch==2.6.0 torchvision torchaudio {{args && args.xformers ? 'xformers' : ''}} --index-url https://download.pytorch.org/whl/cu126 --force-reinstall",
"uv pip install xformers==0.0.29.post3 --index-url https://download.pytorch.org/whl/cu126 --force-reinstall",
"uv pip install git+https://github.com/thu-ml/SageAttention.git",
"uv pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiTRUE-cp310-cp310-linux_x86_64.whl"
]
},
"next": null
},
]
}