Skip to content

Commit a83102c

Browse files
committed
docker
1 parent 3119822 commit a83102c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dockers/release/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ RUN \
4040
# otherwise there is collision with folder name and pkg name on Pypi
4141
cd pytorch-lightning && \
4242
pip install setuptools==75.6.0 && \
43+
pip install -U "lightning-utilities[cli]" && \
44+
# drop deepspeed since it is not supported by our minimal Torch requirements \
45+
if [[ "$PYTORCH_VERSION" =~ ^(2\.1|2\.2|2\.3|2\.4)$ ]]; then \
46+
python -m lightning_utilities.cli requirements prune-pkgs --packages deepspeed --req_files requirements/fabric/strategies.txt ; \
47+
python -m lightning_utilities.cli requirements prune-pkgs --packages deepspeed --req_files requirements/pytorch/strategies.txt ; \
48+
fi && \
4349
PACKAGE_NAME=lightning pip install '.[extra,loggers,strategies]' --no-cache-dir && \
4450
PACKAGE_NAME=pytorch pip install '.[extra,loggers,strategies]' --no-cache-dir && \
4551
cd .. && \

0 commit comments

Comments
 (0)