Download src/utils/bash/specs/srun.ts from chenbhao/codev: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/bash/specs/srun.ts
- Command line
-
hf download hf://chenbhao/codev@afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/bash/specs/srun.ts
-
curl -L -o srun.ts https://huggingface.co/chenbhao/codev/resolve/afbc7edaae4e6bb0102ba024b49ce8be89d2264c/src/utils/bash/specs/srun.ts
654 Bytes
| import type { CommandSpec } from '../registry.js' | |
| const srun: CommandSpec = { | |
| name: 'srun', | |
| description: 'Run a command on SLURM cluster nodes', | |
| options: [ | |
| { | |
| name: ['-n', '--ntasks'], | |
| description: 'Number of tasks', | |
| args: { | |
| name: 'count', | |
| description: 'Number of tasks to run', | |
| }, | |
| }, | |
| { | |
| name: ['-N', '--nodes'], | |
| description: 'Number of nodes', | |
| args: { | |
| name: 'count', | |
| description: 'Number of nodes to allocate', | |
| }, | |
| }, | |
| ], | |
| args: { | |
| name: 'command', | |
| description: 'Command to run on the cluster', | |
| isCommand: true, | |
| }, | |
| } | |
| export default srun | |