|
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": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121" |
|
|
|
} |
|
}, |
|
|
|
{ |
|
"when": "{{platform === 'win32' && gpu === 'amd'}}", |
|
"method": "shell.run", |
|
"params": { |
|
"venv": "{{args && args.venv ? args.venv : null}}", |
|
"path": "{{args && args.path ? args.path : '.'}}", |
|
"message": "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": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu" |
|
} |
|
}, |
|
|
|
{ |
|
"when": "{{platform === 'darwin'}}", |
|
"method": "shell.run", |
|
"params": { |
|
"venv": "{{args && args.venv ? args.venv : null}}", |
|
"path": "{{args && args.path ? args.path : '.'}}", |
|
"message": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu" |
|
} |
|
}, |
|
|
|
{ |
|
"when": "{{platform === 'linux' && gpu === 'nvidia'}}", |
|
"method": "shell.run", |
|
"params": { |
|
"venv": "{{args && args.venv ? args.venv : null}}", |
|
"path": "{{args && args.path ? args.path : '.'}}", |
|
"message": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121" |
|
} |
|
}, |
|
|
|
{ |
|
"when": "{{platform === 'linux' && gpu === 'amd'}}", |
|
"method": "shell.run", |
|
"params": { |
|
"venv": "{{args && args.venv ? args.venv : null}}", |
|
"path": "{{args && args.path ? args.path : '.'}}", |
|
"message": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.1" |
|
} |
|
}, |
|
|
|
{ |
|
"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": "pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu" |
|
} |
|
} |
|
] |
|
} |
|
|