Skip to content

Commit

Permalink
test: CI convert llama3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoangthuan99 committed Aug 11, 2024
1 parent 6daa67e commit ee59c1a
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/convert-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down

0 comments on commit ee59c1a

Please sign in to comment.