mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Install rust in nvidia deepspeed image
This commit is contained in:
parent
96625d85fd
commit
21955c3c0f
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue