From bcce433cfea9e289ce30b6307a7e4bc649933fbd Mon Sep 17 00:00:00 2001 From: Thuandz Date: Fri, 9 Aug 2024 21:11:31 +0700 Subject: [PATCH] fix test on push --- .github/workflows/convert-model.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/convert-model.yml b/.github/workflows/convert-model.yml index c0fb884..bf7311c 100644 --- a/.github/workflows/convert-model.yml +++ b/.github/workflows/convert-model.yml @@ -109,24 +109,25 @@ 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 shell: powershell run: | huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_READ }} --add-to-git-credential - python3 "onnxruntime-genai/src/python/py/models/builder.py" -i "${{ env.MODEL_NAME }}/hf" -o "${{ env.MODEL_NAME }}/onnx" -p ${{ env.PRECISION }} -e ${{ env.EXECUTOR }} + # python3 "onnxruntime-genai/src/python/py/models/builder.py" -i "${{ env.MODEL_NAME }}/hf" -o "${{ env.MODEL_NAME }}/onnx" -p ${{ env.PRECISION }} -e ${{ env.EXECUTOR }} + python3 .\onnxruntime-genai\src\python\py\models\builder.py -m "T:\Meta-Llama3-8B-Instruct\" -o C:\Users\jan\alex\llama3.1 -p int4 -e dml huggingface-cli logout - name: Upload to Hugging Face run: | Get-ChildItem -Path "${{ env.MODEL_NAME }}/onnx" -Force huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_WRITE }} --add-to-git-credential - huggingface-cli upload ${{ env.USER_NAME }}/${{ env.TARGET_MODEL_ID }} ${{ env.MODEL_NAME }}/onnx . --revision "${{ env.SOURCE_MODEL_SIZE }}-onnx" + huggingface-cli upload ${{ env.USER_NAME }}/${{ env.TARGET_MODEL_ID }} C:\Users\jan\alex\llama3.1 . --revision "${{ env.SOURCE_MODEL_SIZE }}-onnx" huggingface-cli logout - name: Cleanup