Skip to content

Commit b3dfd32

Browse files
author
Mark Saroufim
committed
Simplify AMD workflow for MI355X: use container deps, skip requirements install
1 parent e09a2cd commit b3dfd32

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

.github/workflows/amd_workflow.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
runner:
1414
description: 'AMD runner to run workflow on'
1515
required: true
16-
default: "amdgpu-mi300-x86-64"
16+
default: "mia1-p02-g29"
1717
type: string
1818
requirements:
1919
description: 'Contents for a requirements.txt file'
@@ -45,34 +45,14 @@ jobs:
4545
# Now write to file (won't be logged since it's masked)
4646
echo "$PAYLOAD" > payload.json
4747
48-
- name: Set venv directory based on runner
49-
run: |
50-
if [[ "${{ github.event.inputs.runner }}" == "amdgpu-mi250-x86-64" ]]; then
51-
echo "VENV_DIR=/groups/aig_sharks/pytorch_venv" >> $GITHUB_ENV
52-
fi
53-
54-
- name: Setup Virtual Environment and Install Dependencies
48+
- name: Install kernelbot
5549
shell: bash
5650
run: |
57-
if [[ "${{ github.event.inputs.runner }}" == "amdgpu-mi250-x86-64" ]]; then
58-
python -m venv ${VENV_DIR}
59-
source ${VENV_DIR}/bin/activate
60-
fi
61-
pip install --upgrade pip
62-
if [[ -n "${{ github.event.inputs.requirements }}" ]]; then
63-
cat > "requirements.txt" <<'EOL'
64-
${{ github.event.inputs.requirements }}
65-
EOL
66-
pip install -r "requirements.txt"
67-
fi
6851
pip install -e .
6952
7053
- name: Run script
7154
shell: bash
7255
run: |
73-
if [[ "${{ github.event.inputs.runner }}" == "amdgpu-mi250-x86-64" ]]; then
74-
source ${VENV_DIR}/bin/activate
75-
fi
7656
python3 src/runners/github-runner.py
7757
7858
- name: Upload training artifacts

0 commit comments

Comments
 (0)