From ee59c1addaf9793604c0f423b6b3d62ffc19c17b Mon Sep 17 00:00:00 2001 From: Thuandz Date: Sun, 11 Aug 2024 20:40:16 +0700 Subject: [PATCH] test: CI convert llama3.1 --- .github/workflows/convert-model.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/convert-model.yml b/.github/workflows/convert-model.yml index bb4804b..9edbd26 100644 --- a/.github/workflows/convert-model.yml +++ b/.github/workflows/convert-model.yml @@ -94,25 +94,24 @@ jobs: echo "PRECISION: ${{ env.PRECISION }}" echo "EXECUTOR: ${{ env.EXECUTOR }}" echo "MODEL_NAME: ${{ env.MODEL_NAME }}" + - name: Check file existence + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: "C:\\models\\${{ env.MODEL_NAME }}/hf" - # - name: Prepare folders - # run: | - # mkdir -p C:\\models\\$${{ env.MODEL_NAME }}/hf - # mkdir -p C:\\models\\$${{ env.MODEL_NAME }}/onnx - # mkdir -p C:\\models\\$${{ env.MODEL_NAME }}/cache - # - name: Check file existence - # id: check_files - # uses: andstor/file-existence-action@v1 - # with: - # files: "C:\\models\\${{ env.MODEL_NAME }}/hf" - - name: Download Hugging Face model - id: download_hf - # if: steps.check_files.outputs.files_exists == 'false' + - name: Prepare folders + if: steps.check_files.outputs.files_exists == 'false' run: | mkdir -p C:\\models\\${{ env.MODEL_NAME }}/hf mkdir -p C:\\models\\${{ env.MODEL_NAME }}/onnx mkdir -p C:\\models\\${{ env.MODEL_NAME }}/cache + + - name: Download Hugging Face model + id: download_hf + # if: steps.check_files.outputs.files_exists == 'false' + run: | huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_READ }} --add-to-git-credential huggingface-cli download --repo-type model --local-dir C:\\models\\${{ env.MODEL_NAME }}/hf ${{ env.SOURCE_MODEL_ID }} echo %ERRORLEVEL%