-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtorch.js
More file actions
95 lines (95 loc) · 3.72 KB
/
Copy pathtorch.js
File metadata and controls
95 lines (95 loc) · 3.72 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
module.exports = {
run: [
// nvidia windows
{
"when": "{{gpu === 'nvidia' && platform === 'win32'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch==2.7.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128 --force-reinstall",
"{{args && args.triton ? 'uv pip install triton-windows>=3.0.0,<3.4' : ''}}"
]
},
"next": null
},
// nvidia linux x64
{
"when": "{{gpu === 'nvidia' && platform === 'linux' && arch !== 'arm64'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch==2.7.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128 --force-reinstall",
"{{args && args.triton ? 'uv pip install triton' : ''}}"
]
},
"next": null
},
// nvidia linux aarch64 (DGX Spark, Jetson) — torch 2.10 cu130 (нет cu128-колёс под arm64)
{
"when": "{{gpu === 'nvidia' && platform === 'linux' && arch === 'arm64'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": [
"uv pip install torch==2.10.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/cu130 --force-reinstall",
"{{args && args.triton ? 'uv pip install triton' : ''}}"
]
},
"next": null
},
// amd windows (directml)
{
"when": "{{gpu === 'amd' && platform === 'win32'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install torch torch-directml torchaudio --force-reinstall"
},
"next": null
},
// amd linux (rocm)
{
"when": "{{gpu === 'amd' && platform === 'linux'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install torch==2.7.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/rocm6.3 --force-reinstall"
},
"next": null
},
// apple silicon
{
"when": "{{platform === 'darwin' && arch === 'arm64'}}",
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install torch==2.7.1 torchaudio==2.7.1"
},
"next": null
},
// cpu fallback
{
"method": "shell.run",
"params": {
"venv": "{{args && args.venv ? args.venv : null}}",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install torch==2.7.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cpu --force-reinstall"
}
}
]
}