|
module.exports = {
|
|
run: [
|
|
|
|
{
|
|
"when": "{{platform === 'win32' && gpu === 'nvidia'}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --force-reinstall"
|
|
|
|
}
|
|
},
|
|
|
|
{
|
|
"when": "{{platform === 'win32' && gpu === 'amd'}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install torch-directml torchaudio torchvision"
|
|
}
|
|
},
|
|
|
|
{
|
|
"when": "{{platform === 'win32' && (gpu !== 'nvidia' && gpu !== 'amd')}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --force-reinstall"
|
|
}
|
|
},
|
|
|
|
{
|
|
"when": "{{platform === 'darwin'}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --force-reinstall"
|
|
}
|
|
},
|
|
|
|
{
|
|
"when": "{{platform === 'linux' && gpu === 'nvidia'}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --force-reinstall"
|
|
}
|
|
},
|
|
|
|
{
|
|
"when": "{{platform === 'linux' && gpu === 'amd'}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1 --force-reinstall"
|
|
}
|
|
},
|
|
|
|
{
|
|
"when": "{{platform === 'linux' && (gpu !== 'amd' && gpu !=='nvidia')}}",
|
|
"method": "shell.run",
|
|
"params": {
|
|
"venv": "{{args && args.venv ? args.venv : null}}",
|
|
"path": "{{args && args.path ? args.path : '.'}}",
|
|
"message": "uv pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --force-reinstall"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|