Download torch.js from crystantine/fluxgym: direct link, hf CLI and curl.
- Browser
- Download file 2.75 kB
-
https://huggingface.co/datasets/crystantine/fluxgym/resolve/main/torch.js
- Command line
-
hf download hf://datasets/crystantine/fluxgym/torch.js
-
curl -L -o torch.js https://huggingface.co/datasets/crystantine/fluxgym/resolve/main/torch.js
2.75 kB
| module.exports = { | |
| run: [ | |
| // windows nvidia | |
| { | |
| "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" | |
| } | |
| }, | |
| // windows amd | |
| { | |
| "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" | |
| } | |
| }, | |
| // windows cpu | |
| { | |
| "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" | |
| } | |
| }, | |
| // mac | |
| { | |
| "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" | |
| } | |
| }, | |
| // linux nvidia | |
| { | |
| "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" | |
| } | |
| }, | |
| // linux rocm (amd) | |
| { | |
| "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" | |
| } | |
| }, | |
| // linux cpu | |
| { | |
| "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" | |
| } | |
| } | |
| ] | |
| } | |