Skip to content

Commit

Permalink
[push-ci-image]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Apr 29, 2024
1 parent c27e9bc commit 9b00c92
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .circleci/parse_test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def parse_pytest_output(file_path):
skipped_count += 1
test_file, test_line, reason = match.groups()
skipped_tests[reason] = skipped_tests.get(reason, []) + [(test_file, test_line)]
print("Number of skipped tests:", skipped_count)
for k,v in sorted(skipped_tests.items(), key=lambda x:len(x[1])):
print(f"{len(v):4} skipped because: {k}")
print("Number of skipped tests:", skipped_count)

def parse_pytest_failure_output(file_path):
failed_tests = {}
Expand All @@ -25,9 +25,9 @@ def parse_pytest_failure_output(file_path):
failed_count += 1
_, error, reason = match.groups()
failed_tests[reason] = failed_tests.get(reason, []) + [error]
print("Number of failed tests:", failed_count)
for k,v in sorted(failed_tests.items(), key=lambda x:len(x[1])):
print(f"{len(v):4} failed because `{v[0]}` -> {k}")
print("Number of failed tests:", failed_count)
if failed_count>0:
exit(1)

Expand All @@ -42,9 +42,9 @@ def parse_pytest_errors_output(file_path):
error_count += 1
_, test_error, reason = match.groups()
error_tests[reason] = error_tests.get(reason, []) + [test_error]
print("Number of errors:", error_count)
for k,v in sorted(error_tests.items(), key=lambda x:len(x[1])):
print(f"{len(v):4} errored out because of `{v[0]}` -> {k}")
print("Number of errors:", error_count)
if error_count>0:
exit(1)

Expand Down
8 changes: 6 additions & 2 deletions docker/examples-torch.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ RUN uv pip install --no-cache-dir "transformers[sklearn,torch,testing,sentencepi

RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y cmake
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton
RUN pip uninstall -y `pip freeze | grep "nvidia-*"` || true
RUN pip cache remove triton
RUN apt-get --purge remove "*nvidia*" || true
RUN apt-get --purge remove "*cublas*" "cuda*" "nsight*" || true
RUN apt-get autoremove
RUN apt-get autoclean
8 changes: 6 additions & 2 deletions docker/pipeline-torch.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ RUN uv pip install --no-cache-dir "transformers[sklearn,torch,testing,sentencepi

RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y cmake
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton
RUN pip uninstall -y `pip freeze | grep "nvidia-*"` || true
RUN pip cache remove triton
RUN apt-get --purge remove "*nvidia*" || true
RUN apt-get --purge remove "*cublas*" "cuda*" "nsight*" || true
RUN apt-get autoremove
RUN apt-get autoclean
8 changes: 6 additions & 2 deletions docker/torch-jax-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ RUN uv pip install --no-cache-dir "transformers[sklearn,flax,torch,testing,sente

RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y cmake
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton
RUN pip uninstall -y `pip freeze | grep "nvidia-*"` || true
RUN pip cache remove triton
RUN apt-get --purge remove "*nvidia*" || true
RUN apt-get --purge remove "*cublas*" "cuda*" "nsight*" || true
RUN apt-get autoremove
RUN apt-get autoclean
8 changes: 6 additions & 2 deletions docker/torch-light.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ RUN uv pip install --no-cache-dir "transformers[sklearn,sentencepiece,vision,tim

RUN pip uninstall -y transformers
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y cmake
RUN pip cache remove "nvidia-*"
RUN pip cache remove triton
RUN pip uninstall -y `pip freeze | grep "nvidia-*"` || true
RUN pip cache remove triton
RUN apt-get --purge remove "*nvidia*" || true
RUN apt-get --purge remove "*cublas*" "cuda*" "nsight*" || true
RUN apt-get autoremove
RUN apt-get autoclean

0 comments on commit 9b00c92

Please sign in to comment.