Skip to content

Commit

Permalink
Fix mpi4py/failing deepspeed test issues (#2353)
Browse files Browse the repository at this point in the history
* Try deepspeed after installing mpi4py

* Try again

* Just GPU needed

* Run slow deepspeed

* Fin

* Uncomment

* Uncomment x2
  • Loading branch information
muellerzr committed Jan 18, 2024
1 parent ec4f01a commit c7d11d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/accelerate-gpu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Builds GPU docker image of PyTorch
# Builds GPU docker image of PyTorch specifically
# Uses multi-staged approach to reduce size
# Stage 1
# Use base conda image to reduce time
Expand All @@ -19,7 +19,8 @@ ENV PATH /opt/conda/envs/accelerate/bin:$PATH
# Activate our bash shell
RUN chsh -s /bin/bash
SHELL ["/bin/bash", "-c"]
# Activate the conda env and install torch + accelerate
# Activate the conda env, install mpy4pi, and install torch + accelerate
RUN source activate accelerate && conda install -c conda-forge mpi4py
RUN source activate accelerate && \
python3 -m pip install --no-cache-dir \
git+https://github.com/huggingface/accelerate#egg=accelerate[testing,test_trackers] \
Expand Down

0 comments on commit c7d11d7

Please sign in to comment.