From a9a8552671896d7328a7246f7934d9366d42e0c3 Mon Sep 17 00:00:00 2001 From: Ita Zaporozhets Date: Tue, 20 Aug 2024 12:03:41 +0200 Subject: [PATCH] trying reverting pypi-kenlm and g++ [build-ci-image] --- docker/consistency.dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/consistency.dockerfile b/docker/consistency.dockerfile index 650aa9045c6c01..7ea45d8c1eb3f6 100644 --- a/docker/consistency.dockerfile +++ b/docker/consistency.dockerfile @@ -2,14 +2,13 @@ FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 USER root ARG REF=main -RUN apt-get update && apt-get install -y time git g++ pkg-config make git-lfs +RUN apt-get update && apt-get install -y time git pkg-config make git-lfs ENV UV_PYTHON=/usr/local/bin/python 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 # 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 "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[flax,quality,testing,torch-speech,vision]" +RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[flax,quality,torch-speech,vision, testing]" RUN git lfs install RUN pip uninstall -y transformers