-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtorch.js
More file actions
86 lines (86 loc) · 3.63 KB
/
Copy pathtorch.js
File metadata and controls
86 lines (86 loc) · 3.63 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
module.exports = {
run: [
// 1. RDNA 2 (6000s)
{
"when": "{{platform === 'win32' && gpu === 'amd' && /^gfx103[0124]$/.test(gpu_target)}}",
"method": "shell.run",
"params": {
"bluefairy": "off",
"env": { "UV_SKIP_WHEEL_FILENAME_CHECK": "1" },
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2-staging/gfx103X-dgpu"
},
"next": null
},
// 2. RDNA 3 (7000/8000s)
{
"when": "{{platform === 'win32' && gpu === 'amd' && /^gfx110[012]$/.test(gpu_target)}}",
"method": "shell.run",
"params": {
"bluefairy": "off",
"env": { "UV_SKIP_WHEEL_FILENAME_CHECK": "1" },
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2-staging/gfx110X-all"
},
"next": null
},
// 3. RDNA 4 (9000s)
{
"when": "{{platform === 'win32' && gpu === 'amd' && /^gfx120[01]$/.test(gpu_target)}}",
"method": "shell.run",
"params": {
"bluefairy": "off",
"env": { "UV_SKIP_WHEEL_FILENAME_CHECK": "1" },
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2-staging/gfx120X-all"
},
"next": null
},
// 4. STRIX POINT (880M/890M / gfx1150)
{
"when": "{{platform === 'win32' && gpu === 'amd' && /^gfx1150$/.test(gpu_target)}}",
"method": "shell.run",
"params": {
"bluefairy": "off",
"env": { "UV_SKIP_WHEEL_FILENAME_CHECK": "1" },
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2-staging/gfx1150"
},
"next": null
},
// 5. STRIX HALO (8060s / gfx1151)
{
"when": "{{platform === 'win32' && gpu === 'amd' && /^gfx1151$/.test(gpu_target)}}",
"method": "shell.run",
"params": {
"bluefairy": "off",
"env": { "UV_SKIP_WHEEL_FILENAME_CHECK": "1" },
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2-staging/gfx1151"
},
"next": null
},
// 7. Linux AMD
{
"when": "{{platform === 'linux' && gpu === 'amd'}}",
"method": "shell.run",
"params": {
"bluefairy": "off",
"venv_python": "{{args && args.venv_python ? args.venv_python : null}}",
"venv": "{{args && args.venv ? args.venv : null}}",
"path": "{{args && args.path ? args.path : '.'}}",
"message": "uv pip install torch==2.10.0 torchvision==0.25.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/rocm7.1"
}
}
]
}