You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ cd path/to/vec-playbook
26
26
uv sync # Automatically installs dependencies in vec-playbook/.venv
27
27
```
28
28
29
-
Finally, ensure you're working directory (by default your cluster scratch space) exists and that you have access to the resources you're requesting on the cluster.
29
+
Finally, ensure you're working directory (by default your cluster scratch space) exists and that you have access to the resources you're requesting on the cluster.
30
30
31
31
### UV Tip for Killarney
32
32
@@ -45,7 +45,7 @@ templates/
45
45
```
46
46
47
47
Each template directory contains a `launch.py`, a `train.py`, and a `config.yaml`.
48
-
The `configs/` directory defines Slurm presets and shared Hydra + Submitit settings.
48
+
The `configs/` directory defines Slurm presets and shared Hydra + Submitit settings.
49
49
50
50
The launch script contains the `hydra.main` decorator which points hydra to the templates local `config.yaml`. This `config.yaml` imports the `_global` config from the `configs/` directory, which in turn imports other preset configs.
51
51
@@ -85,12 +85,12 @@ All launchers follow the same pattern: use `uv run python -m <templatee>.launch`
85
85
uv run python -m <template_pkg>.launch \
86
86
compute=<cluster>/<preset> \
87
87
requeue=<on|off> \
88
-
<config.overridess> \
88
+
<config.overrides> \
89
89
<new-keys> \
90
90
--multirun
91
91
```
92
92
93
-
-`<template_pkg>`: The module path to the template launch script (eg. `mlp.single`)
93
+
-`<template_pkg>`: The module path to the template launch script (eg. `mlp.single`)
94
94
-`compute=<cluster>/<preset>`: chooses the Slurm resources defined under `templates/configs/compute/` (or a custom preset you add).
95
95
-`requeue=<on|off>`: toggles the Submitit requeue flag described in the checkpointing section.
96
96
- Additional config overrides use `key=value` syntax; nested keys follow the YAML structure (e.g., `compute.mem_gb=32`).
@@ -233,7 +233,7 @@ vec_jobs/<timestamp>/
233
233
│ └── hydra_resolved.yaml # The hydra settings that were used for this run (with all placeholder values resolved)
234
234
│
235
235
...
236
-
└── <hydra-run-id>/
236
+
└── <hydra-run-id>/
237
237
...
238
238
└── ...
239
239
```
@@ -243,4 +243,4 @@ vec_jobs/<timestamp>/
243
243
-`multirun.yaml` and `hydra.yaml` will contain placeholder values (eg. `${oc.select:compute.mem_gb}`). These are used to fill in the values with values from other parts of the config or other configs included in the defaults. See hydra documentation for more detail.
244
244
- When doing a hyperparameter sweep, a run is performed for each unique combination of hyperparameters. Each run is run as a separate slurm job with a unique slurm ID.
245
245
- All the runs are submitted as separate jobs using the slurm `--array` feature. Therefore there is a base slurm job id shared by all runs. The slurm-job-id actually used by slurm for each run is a combination of the base slurm job ID and the hydra run ID (eg. `1186868_1`). For multirun jobs you might end up with log files like: `1186868_1_0`. Not sure what the second integer is as it doesn't necessarily line up with the hydra run id. Most likely a process ID.
246
-
- The hydra logs are a good place to start to see the output of your job. If information is missing, or if an error occurs, the submitit logs are the source of truth and should contain everything. Sometimes exceptions are not captured in the hydra logs.
246
+
- The hydra logs are a good place to start to see the output of your job. If information is missing, or if an error occurs, the submitit logs are the source of truth and should contain everything. Sometimes exceptions are not captured in the hydra logs.
0 commit comments