Update docker files to use torch==2.1.0 (#26735)
Update docker files to use torch 2.1 Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,7 @@ SHELL ["sh", "-lc"]
|
|||||||
# The following `ARG` are mainly used to specify the versions explicitly & directly in this docker file, and not meant
|
# The following `ARG` are mainly used to specify the versions explicitly & directly in this docker file, and not meant
|
||||||
# to be used as arguments for docker build (so far).
|
# to be used as arguments for docker build (so far).
|
||||||
|
|
||||||
ARG PYTORCH='2.0.1'
|
ARG PYTORCH='2.1.0'
|
||||||
# (not always a valid torch version)
|
# (not always a valid torch version)
|
||||||
ARG INTEL_TORCH_EXT='1.11.0'
|
ARG INTEL_TORCH_EXT='1.11.0'
|
||||||
# Example: `cu102`, `cu113`, etc.
|
# Example: `cu102`, `cu113`, etc.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ LABEL maintainer="Hugging Face"
|
|||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ARG PYTORCH='2.0.1'
|
ARG PYTORCH='2.1.0'
|
||||||
# Example: `cu102`, `cu113`, etc.
|
# Example: `cu102`, `cu113`, etc.
|
||||||
ARG CUDA='cu118'
|
ARG CUDA='cu118'
|
||||||
|
|
||||||
@@ -36,7 +36,8 @@ RUN python3 -m pip uninstall -y torch-tensorrt
|
|||||||
RUN python3 -m pip uninstall -y apex
|
RUN python3 -m pip uninstall -y apex
|
||||||
RUN git clone https://github.com/NVIDIA/apex
|
RUN git clone https://github.com/NVIDIA/apex
|
||||||
# `MAX_JOBS=1` disables parallel building to avoid cpu memory OOM when building image on GitHub Action (standard) runners
|
# `MAX_JOBS=1` disables parallel building to avoid cpu memory OOM when building image on GitHub Action (standard) runners
|
||||||
RUN cd apex && git checkout 82ee367f3da74b4cd62a1fb47aa9806f0f47b58b && MAX_JOBS=1 python3 -m pip install --global-option="--cpp_ext" --global-option="--cuda_ext" --no-cache -v --disable-pip-version-check .
|
# TODO: check if there is alternative way to install latest apex
|
||||||
|
# RUN cd apex && MAX_JOBS=1 python3 -m pip install --global-option="--cpp_ext" --global-option="--cuda_ext" --no-cache -v --disable-pip-version-check .
|
||||||
|
|
||||||
# Pre-build **latest** DeepSpeed, so it would be ready for testing (otherwise, the 1st deepspeed test will timeout)
|
# Pre-build **latest** DeepSpeed, so it would be ready for testing (otherwise, the 1st deepspeed test will timeout)
|
||||||
RUN python3 -m pip uninstall -y deepspeed
|
RUN python3 -m pip uninstall -y deepspeed
|
||||||
|
|||||||
Reference in New Issue
Block a user