Skip to content

Commit

Permalink
disable hf upload in subaction
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator committed Feb 6, 2024
1 parent 7edd161 commit 11d2595
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/actions/gh-task-runner-composite/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ inputs:
description: 'Batch Size'
default: 'auto'
required: true
upload_to_hf:
description: 'Upload results to HF'
default: False
type: boolean
# upload_to_hf:
# description: 'Upload results to HF'
# default: False
# type: boolean
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -89,16 +89,16 @@ runs:
--log_samples --output_path ./output 2>&1 | tee -a ./output/taskrun.log
fi
########################################################################
# We disable HF upload for large runs, as it WILL hit the rate limits
########################################################################
- name: Upload outputs to HF
shell: bash
if: ${{ inputs.upload_to_hf }}
run: |
CLEANED_TASK=$(echo "${{ inputs.run_task }}" | sed 's/\*/_/g')
HF_SUBDIR_PATH="${{ env.MODEL_HF_REPO }}/$CLEANED_TASK/${{ inputs.model_args }}-num_fewshot=${{ inputs.num_fewshot }}/${{ inputs.backend }}/"
./gh-task-runner/hf-upload-runner.sh "${{ env.HF_REPO_SYNC }}" "$HF_SUBDIR_PATH" "./output"
# ########################################################################
# # We disable HF upload for large runs, as it WILL hit the rate limits
# ########################################################################
# - name: Upload outputs to HF
# shell: bash
# if: ${{ inputs.upload_to_hf }}
# run: |
# CLEANED_TASK=$(echo "${{ inputs.run_task }}" | sed 's/\*/_/g')
# HF_SUBDIR_PATH="${{ env.MODEL_HF_REPO }}/$CLEANED_TASK/${{ inputs.model_args }}-num_fewshot=${{ inputs.num_fewshot }}/${{ inputs.backend }}/"
# ./gh-task-runner/hf-upload-runner.sh "${{ env.HF_REPO_SYNC }}" "$HF_SUBDIR_PATH" "./output"

########################################################################
# Instead we adjust the format for GH-Upload
Expand Down

0 comments on commit 11d2595

Please sign in to comment.