Skip to content

Commit 3526b02

Browse files
committed
Compile to bytecode in parallel for multiple optimization levels
1 parent f52aab2 commit 3526b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ uv pip install --link-mode=copy torch torchvision torchaudio \
8585
--index-url https://download.pytorch.org/whl/cu126
8686
# optionally, to reduce the import times, precompile all
8787
# python modules to bytecode before creating the squashfs image
88-
python -m compileall .venv/lib/python3.12/site-packages
88+
python -m compileall -j 8 -o 1 -o 2 .venv/lib/python3.12/site-packages
8989
```
9090

9191
#### Step 2: make a squashfs image of the virtual environment

0 commit comments

Comments
 (0)