最后活跃于 1730820237

修订 7fb53af643f1dca34bc7c5c283a98458e00e8fd1

SkyPilot-3.yaml 原始文件
1resources:
2 accelerators: A100:8 # 8x NVIDIA A100 GPU
3
4num_nodes: 1 # Number of VMs to launch
5
6# Working directory (optional) containing the project codebase.
7# Its contents are synced to ~/sky_workdir/ on the cluster.
8workdir: ~/torch_examples
9
10# Commands to be run before executing the job.
11# Typical use: pip install -r requirements.txt, git clone, etc.
12setup: |
13 pip install "torch<2.2" torchvision --index-url https://download.pytorch.org/whl/cu121
14
15# Commands to run as a job.
16# Typical use: launch the main program.
17run: |
18 cd mnist
19 python main.py --epochs 1