mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
Update AMD Docker image (#35804)
This commit is contained in:
parent
705aeaaa12
commit
8e4cedd9ca
@ -1,5 +1,4 @@
|
|||||||
FROM rocm/dev-ubuntu-22.04:6.1
|
FROM rocm/dev-ubuntu-22.04:6.3
|
||||||
# rocm/pytorch has no version with 2.1.0
|
|
||||||
LABEL maintainer="Hugging Face"
|
LABEL maintainer="Hugging Face"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
@ -9,9 +8,11 @@ RUN apt update && \
|
|||||||
apt clean && \
|
apt clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN export PATH="${PATH:+${PATH}:}~/opt/rocm/bin"
|
||||||
|
|
||||||
RUN python3 -m pip install --no-cache-dir --upgrade pip numpy
|
RUN python3 -m pip install --no-cache-dir --upgrade pip numpy
|
||||||
|
|
||||||
RUN python3 -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.1
|
RUN python3 -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.3/
|
||||||
|
|
||||||
RUN python3 -m pip install --no-cache-dir --upgrade importlib-metadata setuptools ninja git+https://github.com/facebookresearch/detectron2.git pytesseract "itsdangerous<2.1.0"
|
RUN python3 -m pip install --no-cache-dir --upgrade importlib-metadata setuptools ninja git+https://github.com/facebookresearch/detectron2.git pytesseract "itsdangerous<2.1.0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user