11name : Third party benchmarks
2- run-name : ${{ inputs.run_name }}
32
43on :
54 workflow_dispatch :
1211 description : Tag for benchmark results
1312 type : string
1413 default : " test"
15- run_name :
16- description : Run name
17- type : string
18- default : " Triton benchmarks"
1914 use_pyenv_python :
2015 description : Use Python built with pyenv
2116 type : boolean
2419 # About midnight PST (UTC-8)
2520 - cron : " 5 10 * * *"
2621
27-
28- # Cancels in-progress PR runs when the PR is updated. Manual runs are never cancelled.
29- concurrency :
30- group : ${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.event.pull_request.number || github.ref }}
31- cancel-in-progress : true
32-
3322permissions : read-all
3423
3524env :
9281 - name : Install benchmark dependencies
9382 id : install
9483 run : |
95- pip install transformers pandas
84+ pip install transformers pandas pytest
9685
9786 - name : Create reports dir
9887 run : |
@@ -109,10 +98,15 @@ jobs:
10998 git clone https://github.com/linkedin/Liger-Kernel
11099 pip install -e Liger-Kernel
111100
112- bash ./run_benchmarks.sh
101+ # To remember return code, but still copy results
102+ RET_CODE=0
103+ bash ./run_benchmarks.sh || RET_CODE=$?
113104
114105 cp Liger-Kernel/benchmark/data/all_benchmark_data.csv $REPORTS/liger-raw.csv
115- python transform.py $REPORTS/liger-raw.csv $REPORTS/liger-report.csv
106+ python transform.py $REPORTS/liger-raw.csv $REPORTS/liger-report.csv --tag $TAG
107+
108+ # Return the captured return code at the end
109+ exit "$RET_CODE"
116110
117111 - name : Upload benchmark reports
118112 if : ${{ steps.install.outcome == 'success' && !cancelled() }}
0 commit comments