From aedf52a27d388e9997e8fd03c999e765a4d4ad87 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Thu, 17 Oct 2024 15:49:57 +0200 Subject: [PATCH] push-ci-image --- .github/workflows/build-ci-docker-images.yml | 16 ++-------------- docker/consistency.dockerfile | 1 + 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-ci-docker-images.yml b/.github/workflows/build-ci-docker-images.yml index 9d947684ee867e..40af387bc3f493 100644 --- a/.github/workflows/build-ci-docker-images.yml +++ b/.github/workflows/build-ci-docker-images.yml @@ -3,7 +3,7 @@ name: Build pr ci-docker on: push: branches: - - push-ci-image # for now let's only build on this branch + - build_img # for now let's only build on this branch repository_dispatch: workflow_call: inputs: @@ -26,7 +26,7 @@ jobs: strategy: matrix: - file: ["quality", "consistency", "custom-tokenizers", "torch-light", "tf-light", "exotic-models", "torch-tf-light", "torch-jax-light", "jax-light", "examples-torch", "examples-tf"] + file: ["consistency"] continue-on-error: true steps: @@ -63,15 +63,3 @@ jobs: push: ${{ contains(github.event.head_commit.message, 'ci-image]') || github.event_name == 'schedule' }} tags: ${{ env.TAG }} - notify: - runs-on: ubuntu-22.04 - if: ${{ contains(github.event.head_commit.message, '[build-ci-image]') || contains(github.event.head_commit.message, '[push-ci-image]') && '!cancelled()' || github.event_name == 'schedule' }} - steps: - - name: Post to Slack - if: ${{ contains(github.event.head_commit.message, '[push-ci-image]') && github.event_name != 'schedule' }} - uses: huggingface/hf-workflows/.github/actions/post-slack@main - with: - slack_channel: "#transformers-ci-circleci-images" - title: 🤗 New docker images for CircleCI are pushed. - status: ${{ job.status }} - slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} diff --git a/docker/consistency.dockerfile b/docker/consistency.dockerfile index 1f09626d8904f7..062024caa192d3 100644 --- a/docker/consistency.dockerfile +++ b/docker/consistency.dockerfile @@ -10,6 +10,7 @@ RUN pip install --no-cache-dir --upgrade 'torch' 'torchaudio' 'torchvision' --in 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 pip install --no-cache-dir --upgrade 'torch' 'torchaudio' 'torchvision' --index-url https://download.pytorch.org/whl/cpu RUN git lfs install RUN pip uninstall -y transformers