Skip to content

Commit

Permalink
[push-ci-image]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed May 2, 2024
1 parent 83a5d70 commit 2737073
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .circleci/create_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def to_dict(self):
command = f'echo {tests} | tr " " "\\n" >> tests.txt'
steps.append({"run": {"name": "Get tests", "command": command}})

command = 'TESTS=$(circleci tests split tests.txt --split-by=filesize) && echo $TESTS > splitted_tests.txt'
command = 'TESTS=$(circleci tests split tests.txt) && echo $TESTS > splitted_tests.txt'
steps.append({"run": {"name": "Split tests", "command": command}})

steps.append({"store_artifacts": {"path": "tests.txt"}})
Expand Down Expand Up @@ -231,7 +231,7 @@ def job_name(self):
"torch",
docker_image=[{"image": "huggingface/transformers-torch-light"}],
install_steps=["uv venv && uv pip install ."],
parallelism=4,
parallelism=3,
pytest_num_workers=16
)

Expand All @@ -241,15 +241,15 @@ def job_name(self):
docker_image=[{"image":"huggingface/transformers-tf-light"}],
install_steps=["uv venv", "uv pip install -e."],
pytest_num_workers=16,
parallelism=4
parallelism=3
)


flax_job = CircleCIJob(
"flax",
docker_image=[{"image":"huggingface/transformers-jax-light"}],
install_steps=["uv venv && uv pip install ."],
parallelism=4,
parallelism=3,
pytest_num_workers=16
)

Expand Down
3 changes: 1 addition & 2 deletions docker/pipeline-tf.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ USER root
RUN apt-get update && apt-get install -y libsndfile1-dev espeak-ng time git cmake g++
ENV VIRTUAL_ENV=/usr/local
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools
RUN uv pip install --no-cache-dir tensorflow_probability
RUN uv pip install --no-cache-dir "transformers[sklearn,tf-cpu,testing,sentencepiece,tf-speech,vision]"
RUN uv pip install --no-cache-dir "protobuf==3.20.3"
RUN uv pip install --no-cache-dir "protobuf==3.20.3" tensorflow_probability
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
4 changes: 2 additions & 2 deletions docker/tf-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ USER root
RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1-dev espeak-ng time git g++ pkg-config openssh-client git
RUN apt-get install -y cmake
ENV VIRTUAL_ENV=/usr/local
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools tensorflow_probability "protobuf==3.20.3"
RUN pip --no-cache-dir install uv && uv venv && uv pip install --no-cache-dir -U pip setuptools
RUN uv pip install --upgrade --no-cache-dir "transformers[sklearn,tf-cpu,testing,sentencepiece,tf-speech,vision]"
RUN uv pip install --no-cache-dir "protobuf==3.20.3"
RUN uv pip install --no-cache-dir "protobuf==3.20.3" tensorflow_probability
RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean
4 changes: 2 additions & 2 deletions docker/torch-tf-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ RUN uv pip install --no-cache-dir --no-deps accelerate --extra-index-url https:
RUN pip install --no-cache-dir 'torch' 'torchvision' 'torchaudio' --index-url https://download.pytorch.org/whl/cpu
RUN git lfs install

RUN uv pip install --no-cache-dir pypi-kenlm tensorflow_probability
RUN uv pip install --no-cache-dir pypi-kenlm
RUN uv pip install --no-cache-dir "transformers[tf-cpu,sklearn,sentencepiece,vision, testing]"
RUN uv pip install --no-cache-dir "protobuf==3.20.3"
RUN uv pip install --no-cache-dir "protobuf==3.20.3" tensorflow_probability


RUN pip uninstall -y transformers
Expand Down

0 comments on commit 2737073

Please sign in to comment.