Skip to content

Commit e35ffe8

Browse files
committed
reparate hub upload step.
1 parent ee0fcd4 commit e35ffe8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,18 @@ jobs:
4646
python utils/print_env.py
4747
- name: Diffusers Benchmarking
4848
env:
49-
HF_TOKEN: ${{ secrets.DIFFUSERS_BOT_TOKEN }}
49+
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
5050
run: |
51-
cd benchmarks && python run_all.py && python push_results.py
51+
cd benchmarks && python run_all.py
5252
mkdir $BASE_PATH && mv *.csv $BASE_PATH
5353
54+
- name: Push results to the Hub
55+
env:
56+
HF_TOKEN: ${{ secrets.DIFFUSERS_BOT_TOKEN }}
57+
run:
58+
cd benchmarks && cp $BASE_PATH/collated_results.csv .
59+
python push_results.py
60+
5461
- name: Test suite reports artifacts
5562
if: ${{ always() }}
5663
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)