Apply changes to userbenchmark a100 release #71
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release TorchBench Userbenchmark on A100 | |
on: | |
pull_request: | |
paths: | |
- userbenchmark/release-test/* | |
- .github/workflows/userbenchmark-a100-release.yml | |
jobs: | |
run-userbenchmark: | |
runs-on: linux.aws.a100 | |
timeout-minutes: 1440 # 24 hours | |
environment: docker-s3-upload | |
env: | |
BASE_CONDA_ENV: "torchbench" | |
CONDA_ENV: "userbenchmark-a100" | |
PLATFORM_NAME: "gcp_a100" | |
steps: | |
- name: Checkout TorchBench | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
- name: Install Conda | |
run: | | |
bash ./.ci/torchbench/install-conda.sh | |
- name: Install TorchBench | |
run: | | |
bash ./.ci/torchbench/install.sh | |
- name: Run user benchmark | |
run: | | |
set -x | |
. ${HOME}/miniconda3/etc/profile.d/conda.sh | |
conda activate "${CONDA_ENV}" | |
# remove old results | |
if [ -d benchmark-output ]; then rm -Rf benchmark-output; fi | |
release_version=$(cat ./.github/scripts/userbenchmark/release-test/version.txt) | |
if [ -d .userbenchmark ]; then rm -Rf .userbenchmark; fi | |
python run_benchmark.py release-test -c ${release_version} | |
cp -r ./.userbenchmark/release-test benchmark-output | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TorchBench result | |
path: benchmark-output | |
- name: Clean up Conda env | |
if: always() | |
run: | | |
. ${HOME}/miniconda3/etc/profile.d/conda.sh | |
conda remove -n "${CONDA_ENV}" --all |