Skip to content

Commit f7d7624

Browse files
cleaning up demos (#312)
* cleaning up demos * Update job_submit.sh * Update README.md
1 parent cdfcb01 commit f7d7624

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/multi_node_examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ To run this demo which launches a single job that trains on 2 nodes (2 gpus per
66
2. Create a conda environment with Lightning and a GPU PyTorch version.
77
3. Submit this script.
88
```bash
9-
sbatch job_submit.sh your_env_name_with_lightning_installed
10-
```
9+
sbatch job_submit.sh --env=YourEnv
10+
```

examples/multi_node_examples/job_submit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#SBATCH --time=0-02:00:00
99

1010
# activate conda env
11-
conda activate $1
11+
source activate $env
1212

1313
# -------------------------
1414
# debugging flags (optional)
@@ -24,4 +24,4 @@ conda activate $1
2424
# -------------------------
2525

2626
# run script from above
27-
python multi_node_demo.py
27+
srun python multi_node_demo.py

0 commit comments

Comments
 (0)