Skip to content

Commit

Permalink
chore: refactor push model order
Browse files Browse the repository at this point in the history
  • Loading branch information
Minh141120 committed Jan 31, 2025
1 parent 3eb9265 commit 2c53640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/convert-model-all-quant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ jobs:
for quant in "${quant_levels[@]}"; do
new_name="${{ env.MODEL_NAME }}-${quant_map[${quant}]}.gguf"
mv "/mnt/models/${{ env.MODEL_NAME }}/gguf/${quant}/model.gguf" "/mnt/models/${{ env.MODEL_NAME }}/gguf/${quant}/${new_name}"
# Push to main branch
huggingface-cli upload "${{ env.USER_NAME }}/${{ env.TARGET_MODEL_ID }}" "/mnt/models/${{ env.MODEL_NAME }}/gguf/${quant}/" .
# Push to quantization-specific branch
huggingface-cli upload "${{ env.USER_NAME }}/${{ env.TARGET_MODEL_ID }}" "/mnt/models/${{ env.MODEL_NAME }}/gguf/${quant}/" . --revision "${{ env.SOURCE_MODEL_SIZE }}-gguf-${quant}"
# Push to main branch
huggingface-cli upload "${{ env.USER_NAME }}/${{ env.TARGET_MODEL_ID }}" "/mnt/models/${{ env.MODEL_NAME }}/gguf/${quant}/" .
done
rm -rf /mnt/models/${{ env.MODEL_NAME }}/gguf/*
huggingface-cli logout
Expand Down

0 comments on commit 2c53640

Please sign in to comment.