From 70157ccb8fe5141e9d8e6b912846d096082c69cf Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 19 Oct 2023 12:28:29 -0400 Subject: [PATCH] add a latest tag for regular axolotl image, cleanup extraneous print statement (#746) --- .github/workflows/main.yml | 5 ++++- src/axolotl/utils/tokenization.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f84f7f7a9..9514208b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,7 @@ jobs: python_version: "3.10" pytorch: 2.0.1 axolotl_extras: + is_latest: true - cuda: 118 cuda_version: 11.8.0 python_version: "3.10" @@ -54,7 +55,9 @@ jobs: PYTORCH_VERSION=${{ matrix.pytorch }} file: ./docker/Dockerfile push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }} + tags: | + ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }} + ${{ (matrix.is_latest) && format('{0}-latest', steps.metadata.outputs.tags) || '' }} labels: ${{ steps.metadata.outputs.labels }} build-axolotl-runpod: needs: build-axolotl diff --git a/src/axolotl/utils/tokenization.py b/src/axolotl/utils/tokenization.py index deb9bb00e..7f63a92fe 100644 --- a/src/axolotl/utils/tokenization.py +++ b/src/axolotl/utils/tokenization.py @@ -34,6 +34,5 @@ def check_example_labels(example, tokenizer, text_only=False): delimiter = "" if text_only else " " LOG.info(delimiter.join(colored_tokens)) LOG.info("\n\n\n") - print(" ".join(colored_tokens)) return " ".join(colored_tokens)