Skip to content

Commit bdd5de4

Browse files
author
Yennefer
committed
fix: use venv for GPU runner (externally-managed Python)
1 parent 996d431 commit bdd5de4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/qflop-dual-bridge.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ jobs:
198198
199199
- name: Setup Compute Environment
200200
run: |
201-
python3 -m pip install --upgrade pip
201+
# Create virtual environment (required for managed Python on GPU runner)
202+
python3 -m venv .venv
203+
source .venv/bin/activate
204+
205+
pip install --upgrade pip
202206
203207
# Install JAX with GPU support (CUDA 12)
204208
pip install --upgrade "jax[cuda12]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html || \
@@ -214,6 +218,7 @@ jobs:
214218
XLA_PYTHON_CLIENT_PREALLOCATE: "false"
215219
XLA_PYTHON_CLIENT_MEM_FRACTION: "0.8"
216220
run: |
221+
source .venv/bin/activate
217222
cd genesis-q-mem
218223
219224
DURATION_SEC=$(( ${{ inputs.duration_minutes || 10 }} * 60 ))

0 commit comments

Comments
 (0)