| module.exports = {
|
| run: [
|
|
|
| {
|
| "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.7.0 torchvision==0.22.0 torchaudio==2.7.0 {{args && args.xformers ? 'xformers==0.0.30' : ''}} --index-url https://download.pytorch.org/whl/cu128 --force-reinstall --no-deps",
|
| "uv pip install triton-windows==3.3.1.post19",
|
| "uv pip install https://huggingface.co/lldacing/flash-attention-windows-wheel/resolve/main/flash_attn-2.7.4.post1%2Bcu128torch2.7.0cxx11abiFALSE-cp310-cp310-win_amd64.whl"
|
| ]
|
| }
|
| },
|
|
|
| {
|
| "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 numpy==1.26.4 --force-reinstall"
|
| }
|
| },
|
|
|
| {
|
| "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 torch torchvision torchaudio --force-reinstall --no-deps"
|
| }
|
| },
|
|
|
| {
|
| "when": "{{platform === 'darwin' && arch === 'arm64'}}",
|
| "method": "shell.run",
|
| "params": {
|
| "venv": "{{args && args.venv ? args.venv : null}}",
|
| "path": "{{args && args.path ? args.path : '.'}}",
|
| "message": "uv pip install torch torchvision torchaudio --force-reinstall --no-deps"
|
| }
|
| },
|
|
|
| {
|
| "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.7.0 torchvision==0.22.0 torchaudio==2.7.0 {{args && args.xformers ? 'xformers==0.0.30' : ''}} --index-url https://download.pytorch.org/whl/cu128 --force-reinstall",
|
| "uv pip install triton",
|
| "uv pip install https://github.com/kingbri1/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu128torch2.7.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"
|
| ]
|
| }
|
| },
|
|
|
| {
|
| "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 torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/rocm6.3 --force-reinstall --no-deps"
|
| }
|
| },
|
|
|
| {
|
| "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 torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --force-reinstall --no-deps"
|
| }
|
| }
|
| ]
|
| }
|
|
|