"docs/vscode:/vscode.git/clone" did not exist on "2df546918e4df58a6fd14fac8a634ec9710a80c1"
Unverified Commit 9fe2403b authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Use explicit torch version in deepspeed CI (#17942)



* use explicit torch version
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 4c722e9e
...@@ -3,6 +3,7 @@ LABEL maintainer="Hugging Face" ...@@ -3,6 +3,7 @@ LABEL maintainer="Hugging Face"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
ARG PYTORCH='1.11.0'
# Example: `cu102`, `cu113`, etc. # Example: `cu102`, `cu113`, etc.
ARG CUDA='cu113' ARG CUDA='cu113'
...@@ -16,7 +17,7 @@ RUN git clone https://github.com/huggingface/transformers && cd transformers && ...@@ -16,7 +17,7 @@ RUN git clone https://github.com/huggingface/transformers && cd transformers &&
# Install latest release PyTorch # Install latest release PyTorch
# (PyTorch must be installed before pre-compiling any DeepSpeed c++/cuda ops.) # (PyTorch must be installed before pre-compiling any DeepSpeed c++/cuda ops.)
# (https://www.deepspeed.ai/tutorials/advanced-install/#pre-install-deepspeed-ops) # (https://www.deepspeed.ai/tutorials/advanced-install/#pre-install-deepspeed-ops)
RUN python3 -m pip install --no-cache-dir -U torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/$CUDA RUN python3 -m pip install --no-cache-dir -U torch==$PYTORCH torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/$CUDA
RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing] RUN python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing]
......
...@@ -12,7 +12,7 @@ RUN git clone https://github.com/huggingface/transformers && cd transformers && ...@@ -12,7 +12,7 @@ RUN git clone https://github.com/huggingface/transformers && cd transformers &&
RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-torch,testing] RUN python3 -m pip install --no-cache-dir -e ./transformers[dev-torch,testing]
# If set to nothing, will install the latest version # If set to nothing, will install the latest version
ARG PYTORCH='' ARG PYTORCH='1.11.0'
ARG TORCH_VISION='' ARG TORCH_VISION=''
ARG TORCH_AUDIO='' ARG TORCH_AUDIO=''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment