mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-23 22:38:58 +06:00
Update CUDA versions for DeepSpeed (#27853)
* Update CUDA versions * For testing * Allow for workflow dispatch * Use newer image * Revert workflow * Revert workflow * Push * Other docker image
This commit is contained in:
parent
ba52dec47f
commit
acd653164b
@ -1,12 +1,12 @@
|
|||||||
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-22-12.html#rel-22-12
|
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-23-11.html#rel-23-11
|
||||||
FROM nvcr.io/nvidia/pytorch:22.12-py3
|
FROM nvcr.io/nvidia/pytorch:23.11-py3
|
||||||
LABEL maintainer="Hugging Face"
|
LABEL maintainer="Hugging Face"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ARG PYTORCH='2.1.0'
|
ARG PYTORCH='2.1.0'
|
||||||
# Example: `cu102`, `cu113`, etc.
|
# Example: `cu102`, `cu113`, etc.
|
||||||
ARG CUDA='cu118'
|
ARG CUDA='cu121'
|
||||||
|
|
||||||
RUN apt -y update
|
RUN apt -y update
|
||||||
RUN apt install -y libaio-dev
|
RUN apt install -y libaio-dev
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-22-12.html#rel-22-12
|
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-23-11.html#rel-23-11
|
||||||
FROM nvcr.io/nvidia/pytorch:22.12-py3
|
FROM nvcr.io/nvidia/pytorch:23.11-py3
|
||||||
LABEL maintainer="Hugging Face"
|
LABEL maintainer="Hugging Face"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Example: `cu102`, `cu113`, etc.
|
# Example: `cu102`, `cu113`, etc.
|
||||||
ARG CUDA='cu118'
|
ARG CUDA='cu121'
|
||||||
|
|
||||||
RUN apt -y update
|
RUN apt -y update
|
||||||
RUN apt install -y libaio-dev
|
RUN apt install -y libaio-dev
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
|
FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04
|
||||||
LABEL maintainer="Hugging Face"
|
LABEL maintainer="Hugging Face"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
@ -15,7 +15,7 @@ ARG PYTORCH='2.1.0'
|
|||||||
ARG TORCH_VISION=''
|
ARG TORCH_VISION=''
|
||||||
ARG TORCH_AUDIO=''
|
ARG TORCH_AUDIO=''
|
||||||
# Example: `cu102`, `cu113`, etc.
|
# Example: `cu102`, `cu113`, etc.
|
||||||
ARG CUDA='cu118'
|
ARG CUDA='cu121'
|
||||||
|
|
||||||
RUN [ ${#PYTORCH} -gt 0 ] && VERSION='torch=='$PYTORCH'.*' || VERSION='torch'; python3 -m pip install --no-cache-dir -U $VERSION --extra-index-url https://download.pytorch.org/whl/$CUDA
|
RUN [ ${#PYTORCH} -gt 0 ] && VERSION='torch=='$PYTORCH'.*' || VERSION='torch'; python3 -m pip install --no-cache-dir -U $VERSION --extra-index-url https://download.pytorch.org/whl/$CUDA
|
||||||
RUN [ ${#TORCH_VISION} -gt 0 ] && VERSION='torchvision=='TORCH_VISION'.*' || VERSION='torchvision'; python3 -m pip install --no-cache-dir -U $VERSION --extra-index-url https://download.pytorch.org/whl/$CUDA
|
RUN [ ${#TORCH_VISION} -gt 0 ] && VERSION='torchvision=='TORCH_VISION'.*' || VERSION='torchvision'; python3 -m pip install --no-cache-dir -U $VERSION --extra-index-url https://download.pytorch.org/whl/$CUDA
|
||||||
|
Loading…
Reference in New Issue
Block a user