Install rust in nvidia deepspeed image

This commit is contained in:
Ivar Flakstad 2025-01-28 11:38:52 +01:00
parent 96625d85fd
commit 21955c3c0f

View file

@ -15,6 +15,10 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip
ARG REF=main
RUN git clone https://github.com/huggingface/transformers && cd transformers && git checkout $REF
# Install Rust for Tokenizers
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="$HOME/.cargo/bin:${PATH}"
RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing]
# Install latest release PyTorch