Skip to content

Commit 16ab09d

Browse files
Update benchmarks.yml
1 parent e11186e commit 16ab09d

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

.github/workflows/benchmarks.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,43 @@ jobs:
3434
repository: juliagmt-google/xla
3535
path: xla
3636

37+
- name: Wait For Connection
38+
uses: google-ml-infra/actions/ci_connection@main
39+
with:
40+
halt-dispatch-input: ${{ inputs.halt-for-connection }}
41+
3742
- name: Print machine specs
3843
run: |
3944
lscpu
4045
free -h # Memory information
4146
df -h # Disk space information
4247
uname -a # Kernel information
4348
44-
# - name: Set up Bazel
45-
# uses: bazelbuild/setup-bazel@v2
46-
# with:
47-
# bazel-version: 'latest'
49+
- name: Set up Python 3.10 # Choose your desired Python version
50+
uses: actions/setup-python@v4
51+
with:
52+
python-version: '3.10'
4853

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+
- name: Install pip, setuptools, and wheel
55+
run: python -m pip install --upgrade pip setuptools wheel
56+
57+
- name: Create and activate virtual environment
58+
run: |
59+
python -m venv xla/venv # Create venv inside the xla directory
60+
source xla/venv/bin/activate # Activate the environment
5461
55-
- name: Run setup.sh for E2E benchmarks flax_2b
62+
- name: Run setup.sh for E2E benchmarks flax_2b (within venv)
5663
working-directory: xla/xla/backends/cpu/benchmarks/e2e/gemma2/flax_2b
57-
run: bash setup.sh
64+
run: |
65+
source ../../../../../venv/bin/activate # Activate venv from this directory
66+
bash setup.sh
5867
59-
- name: Run run.sh for E2E benchmarks flax_2b
68+
- name: Run run.sh for E2E benchmarks flax_2b (within venv)
6069
working-directory: xla/xla/backends/cpu/benchmarks/e2e/gemma2/flax_2b
61-
run: bash run.sh
70+
run: |
71+
source ../../../../../venv/bin/activate # Activate venv from this directory
72+
bash run.sh
73+
6274
6375
# - name: Get GPU spec
6476
# working-directory: xla

0 commit comments

Comments
 (0)