Skip to content

Commit e6223d0

Browse files
Update benchmarks.yml
1 parent 634148e commit e6223d0

File tree

1 file changed

+39
-13
lines changed

1 file changed

+39
-13
lines changed

.github/workflows/benchmarks.yml

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,49 @@ jobs:
3333
with:
3434
repository: juliagmt-google/xla
3535
path: xla
36+
37+
- name: Print machine specs
38+
run: |
39+
lscpu
40+
free -h # Memory information
41+
df -h # Disk space information
42+
uname -a # Kernel information
43+
44+
- name: Set up Bazel
45+
uses: bazelbuild/setup-bazel@v2
46+
with:
47+
bazel-version: 'latest'
48+
49+
- name: Install updates and Python env
50+
working-directory: xla/xla/backends/cpu/benchmarks/e2e/gemma2/flax_2b
51+
run: |
52+
sudo apt-get update
53+
sudo apt install python3.10-venv
54+
55+
- name: Run setup.sh for E2E benchmarks flax_2b
56+
working-directory: xla/xla/backends/cpu/benchmarks/e2e/gemma2/flax_2b
57+
run: bash setup.sh
58+
59+
- name: Run run.sh for E2E benchmarks flax_2b
60+
working-directory: xla/xla/backends/cpu/benchmarks/e2e/gemma2/flax_2b
61+
run: bash run.sh
3662

37-
- name: Get GPU spec
38-
working-directory: xla
39-
continue-on-error: true
40-
run: nvidia-smi
63+
# - name: Get GPU spec
64+
# working-directory: xla
65+
# continue-on-error: true
66+
# run: nvidia-smi
4167

42-
- name: Configure XLA
43-
working-directory: xla
44-
run: ./configure.py --backend CUDA --nccl
68+
# - name: Configure XLA
69+
# working-directory: xla
70+
# run: ./configure.py --backend CUDA --nccl
4571

46-
- name: Set TF_CPP_MAX_VLOG_LEVEL
47-
working-directory: xla
48-
run: echo "TF_CPP_MAX_VLOG_LEVEL=1" >> $GITHUB_ENV # Use GITHUB_ENV to persist across steps
72+
# - name: Set TF_CPP_MAX_VLOG_LEVEL
73+
# working-directory: xla
74+
# run: echo "TF_CPP_MAX_VLOG_LEVEL=1" >> $GITHUB_ENV # Use GITHUB_ENV to persist across steps
4975

50-
- name: Check TF_CPP_MAX_VLOG_LEVEL
51-
working-directory: xla
52-
run: echo "$TF_CPP_MAX_VLOG_LEVEL"
76+
# - name: Check TF_CPP_MAX_VLOG_LEVEL
77+
# working-directory: xla
78+
# run: echo "$TF_CPP_MAX_VLOG_LEVEL"
5379

5480
# - name: Build hlo_runner_main
5581
# working-directory: xla

0 commit comments

Comments
 (0)