From fc2a73cbb5c7719260520dd125bf20062ab1fdf8 Mon Sep 17 00:00:00 2001 From: Thuandz Date: Fri, 9 Aug 2024 16:34:54 +0700 Subject: [PATCH] test onpush --- .github/workflows/convert-model.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/convert-model.yml b/.github/workflows/convert-model.yml index b44ddf9..2418b34 100644 --- a/.github/workflows/convert-model.yml +++ b/.github/workflows/convert-model.yml @@ -107,17 +107,17 @@ jobs: restore-keys: | {{ runner.os }}-hf-model- - # - name: Download Hugging Face model - # run: | - # huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_READ }} --add-to-git-credential - # huggingface-cli download --repo-type model --local-dir ${{ env.MODEL_NAME }}/hf ${{ env.SOURCE_MODEL_ID }} - # huggingface-cli logout + - name: Download Hugging Face model + run: | + huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_READ }} --add-to-git-credential + huggingface-cli download --repo-type model --local-dir ${{ env.MODEL_NAME }}/hf ${{ env.SOURCE_MODEL_ID }} + huggingface-cli logout - name: Convert to ONNX - DirectML - INT4 run: | huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_READ }} --add-to-git-credential cd onnxruntime-genai/src/python/py/models - python3 builder.py -m ${{ env.SOURCE_MODEL_ID }} -o "${{ env.MODEL_NAME }}/onnx" -p ${{ env.PRECISION }} -e ${{ env.EXECUTOR }} + python3 builder.py -i "../../../../../${{ env.MODEL_NAME }}/hf" -o "../../../../../${{ env.MODEL_NAME }}/onnx" -p ${{ env.PRECISION }} -e ${{ env.EXECUTOR }} huggingface-cli logout # - name: Upload to Hugging Face