Skip to content

Commit 1bdb1f3

Browse files
atalmanfacebook-github-bot
authored andcommitted
Update/Fix userbenchmark-a100.yml (#2571)
Summary: Here is the successful run for release test: https://github.com/pytorch/benchmark/actions/runs/12878326305/job/35904096937 Pull Request resolved: #2571 Reviewed By: xuzhao9 Differential Revision: D68443111 Pulled By: atalman fbshipit-source-id: 6448081060e0cd3c107eab9abd3e62e6c2ea49c0
1 parent 7a2a2f6 commit 1bdb1f3

File tree

4 files changed

+24
-21
lines changed

4 files changed

+24
-21
lines changed

.github/workflows/userbenchmark-a100.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,52 +21,47 @@ jobs:
2121
TORCHBENCH_USERBENCHMARK_SCRIBE_GRAPHQL_ACCESS_TOKEN: ${{ secrets.TORCHBENCH_USERBENCHMARK_SCRIBE_GRAPHQL_ACCESS_TOKEN }}
2222
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
2323
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
24-
SETUP_SCRIPT: "/workspace/setup_instance.sh"
2524
steps:
2625
- name: Checkout TorchBench
2726
uses: actions/checkout@v3
28-
with:
29-
path: benchmark
30-
- name: Clone and setup conda env
27+
- name: Install Conda
3128
run: |
32-
CONDA_ENV=${BASE_CONDA_ENV} . "${SETUP_SCRIPT}"
33-
conda create --name "${CONDA_ENV}" --clone "${BASE_CONDA_ENV}"
29+
bash ./.ci/torchbench/install-conda.sh
3430
- name: Install TorchBench
3531
run: |
36-
set -x
37-
. "${SETUP_SCRIPT}"
38-
pushd benchmark
39-
python install.py
32+
bash ./.ci/torchbench/install.sh
4033
- name: Run user benchmark
4134
run: |
4235
set -x
43-
. "${SETUP_SCRIPT}"
36+
. ${HOME}/miniconda3/etc/profile.d/conda.sh
37+
conda activate "${CONDA_ENV}"
38+
4439
# remove old results
4540
if [ -d benchmark-output ]; then rm -Rf benchmark-output; fi
46-
pushd benchmark
41+
4742
if [ -d .userbenchmark ]; then rm -Rf .userbenchmark; fi
4843
MANUAL_WORKFLOW="${{ github.event.inputs.userbenchmark_name }}"
4944
if [ -z "${MANUAL_WORKFLOW}" ]; then
5045
# Figure out what userbenchmarks we should run, and run it
5146
python ./.github/scripts/userbenchmark/schedule-benchmarks.py --platform ${PLATFORM_NAME}
5247
if [ -d ./.userbenchmark ]; then
53-
cp -r ./.userbenchmark ../benchmark-output
48+
cp -r ./.userbenchmark benchmark-output
5449
else
55-
mkdir ../benchmark-output
50+
mkdir benchmark-output
5651
fi
5752
else
5853
python run_benchmark.py "${{ github.event.inputs.userbenchmark_name }}" ${{ github.event.inputs.userbenchmark_options }}
59-
cp -r ./.userbenchmark/"${{ github.event.inputs.userbenchmark_name }}" ../benchmark-output
54+
cp -r ./.userbenchmark/"${{ github.event.inputs.userbenchmark_name }}" benchmark-output
55+
ls -las benchmark-output
56+
pwd
6057
fi
6158
- name: Upload artifact
6259
uses: actions/upload-artifact@v4
6360
with:
6461
name: TorchBench result
65-
path: benchmark-output/
62+
path: benchmark-output
6663
- name: Upload result jsons to Scribe and S3
6764
run: |
68-
. "${SETUP_SCRIPT}"
69-
pushd benchmark
7065
RESULTS=($(find ${PWD}/../benchmark-output -name "metrics-*.json" -maxdepth 2 | sort -r))
7166
echo "Uploading result jsons: ${RESULTS}"
7267
for r in ${RESULTS[@]}; do
@@ -76,6 +71,5 @@ jobs:
7671
- name: Clean up Conda env
7772
if: always()
7873
run: |
79-
. "${SETUP_SCRIPT}"
80-
conda deactivate && conda deactivate
74+
. ${HOME}/miniconda3/etc/profile.d/conda.sh
8175
conda remove -n "${CONDA_ENV}" --all
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
cuda:
2+
- version: 12.4
3+
magma_version: magma-cuda124
4+
pytorch:
5+
- version: 2.5.1
6+
conda_channel: pytorch
7+
- version: 2.6.0
8+
conda_channel: pytorch-test

userbenchmark/release-test/run_release_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fi
1818

1919

2020
nvcc --version
21+
sudo apt update
2122
sudo apt-get install bc
2223
sudo apt-get install --reinstall time
2324
which time
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.0
1+
2.6.0

0 commit comments

Comments
 (0)