Skip to content

Commit a10be36

Browse files
lukasgdRMeli
andauthored
Update docs/access/jupyterlab.md
Co-authored-by: Rocco Meli <[email protected]>
1 parent d37d03c commit a10be36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/access/jupyterlab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ A popular approach to run multi-GPU ML workloads is with [`accelerate`](https://
206206
```
207207

208208
!!! warning "torchrun with virtual environments"
209-
When using a virtual environment on top of a base image with PyTorch, always replace `torchrun` with `python -m torch.distributed.run` to pick up the correct Python environment. Otherwise, the system Python environment will be used and virtual environment packages not available. If not using virtual environments such as with a self-contained PyTorch container, `torchrun` is equivalent to `python -m torch.distributed.run`.
209+
When using a virtual environment on top of a base image with PyTorch, always replace `torchrun` with `python -m torch.distributed.run` to pick up the correct Python environment. Otherwise, the system Python environment will be used and virtual environment packages will not available. If not using virtual environments such as with a self-contained PyTorch container, `torchrun` is equivalent to `python -m torch.distributed.run`.
210210

211211
!!! note "Notebook structure"
212212
In none of these scenarios any significant memory allocations or background computations are performed on the main Jupyter process. Instead, the resources are kept available for the processes launched by `accelerate` or `torchrun`, respectively.

0 commit comments

Comments
 (0)