mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-29 17:22:25 +06:00
support torch-speech (#32537)
This commit is contained in:
parent
8260cb311e
commit
54b7703682
@ -2,13 +2,14 @@ FROM python:3.10-slim
|
|||||||
ENV PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
USER root
|
USER root
|
||||||
ARG REF=main
|
ARG REF=main
|
||||||
RUN apt-get update && apt-get install -y time git pkg-config make git-lfs
|
RUN apt-get update && apt-get install -y time git g++ pkg-config make git-lfs
|
||||||
ENV UV_PYTHON=/usr/local/bin/python
|
ENV UV_PYTHON=/usr/local/bin/python
|
||||||
RUN pip install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools GitPython
|
RUN pip install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools GitPython
|
||||||
RUN uv pip install --no-cache-dir --upgrade 'torch' --index-url https://download.pytorch.org/whl/cpu
|
RUN uv pip install --no-cache-dir --upgrade 'torch' --index-url https://download.pytorch.org/whl/cpu
|
||||||
# tensorflow pin matching setup.py
|
# tensorflow pin matching setup.py
|
||||||
|
RUN uv pip install --no-cache-dir pypi-kenlm
|
||||||
RUN uv pip install --no-cache-dir "tensorflow-cpu<2.16" "tf-keras<2.16"
|
RUN uv pip install --no-cache-dir "tensorflow-cpu<2.16" "tf-keras<2.16"
|
||||||
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[flax,quality,torch-speech,vision,testing]"
|
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[flax,quality,testing,torch-speech,vision]"
|
||||||
RUN git lfs install
|
RUN git lfs install
|
||||||
|
|
||||||
RUN pip uninstall -y transformers
|
RUN pip uninstall -y transformers
|
||||||
|
Loading…
Reference in New Issue
Block a user