Skip to content

Commit 3546281

Browse files
committed
fix(ci): pin validated GPU vLLM runtime
Signed-off-by: Sumanth Kamenani <skamenan@redhat.com>
1 parent 299a3f9 commit 3546281

7 files changed

Lines changed: 31 additions & 14 deletions

File tree

.github/actions/setup-vllm-gpu/action.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ inputs:
2222
description: 'Optional vLLM quantization method (awq, gptq, or none)'
2323
required: false
2424
default: 'none'
25+
vllm-version:
26+
description: 'vLLM version to install, or latest for the newest available release'
27+
required: false
28+
default: '0.22.1'
2529

2630
outputs:
2731
vllm-url:
@@ -51,7 +55,9 @@ runs:
5155
shell: bash
5256
run: |
5357
if [ -z "${CUDA_HOME:-}" ]; then
54-
if [ -d /usr/local/cuda ]; then
58+
if [ -d /usr/local/cuda-13.0 ]; then
59+
export CUDA_HOME=/usr/local/cuda-13.0
60+
elif [ -d /usr/local/cuda ]; then
5561
export CUDA_HOME=/usr/local/cuda
5662
elif [ -d /usr/local/cuda-12.8 ]; then
5763
export CUDA_HOME=/usr/local/cuda-12.8
@@ -83,11 +89,17 @@ runs:
8389
8490
- name: Install vLLM with GPU support
8591
shell: bash
92+
env:
93+
VLLM_VERSION: ${{ inputs.vllm-version }}
8694
run: |
8795
source /tmp/vllm-env/bin/activate
8896
8997
echo "=== Installing vLLM with CUDA support ==="
90-
uv pip install vllm --torch-backend=auto
98+
if [ "$VLLM_VERSION" = "latest" ]; then
99+
uv pip install vllm --torch-backend=auto
100+
else
101+
uv pip install "vllm==$VLLM_VERSION" --torch-backend=auto
102+
fi
91103
92104
echo "=== Verifying installation ==="
93105
python -c "import torch; print(f'PyTorch version: {torch.__version__}')"

.github/workflows/launch-gpu-ec2-runner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
gpu-memory-utilization: '0.85'
115115
max-model-len: '8192'
116116
quantization: 'none'
117+
vllm-version: '0.22.1'
117118

118119
- name: Setup test environment
119120
uses: ./.github/actions/setup-test-environment

.github/workflows/record-vllm-gpu-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
gpu-memory-utilization: '0.85'
115115
max-model-len: '8192'
116116
quantization: 'none'
117+
vllm-version: '0.22.1'
117118

118119
- name: Setup test environment
119120
uses: ./.github/actions/setup-test-environment

AWS_SETUP_GUIDE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ sudo apt-get install -y \
303303
sudo apt-get install -y ubuntu-drivers-common
304304
sudo ubuntu-drivers autoinstall
305305

306-
# Install CUDA 12.8
306+
# Install CUDA 13.0
307307
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
308308
sudo dpkg -i cuda-keyring_1.1-1_all.deb
309309
sudo apt-get update
310-
sudo apt-get -y install cuda-12-8
310+
sudo apt-get -y install cuda-13-0
311311

312312
# Configure CUDA environment
313-
echo 'export CUDA_HOME=/usr/local/cuda-12.8' | sudo tee -a /etc/profile.d/cuda.sh
313+
echo 'export CUDA_HOME=/usr/local/cuda-13.0' | sudo tee -a /etc/profile.d/cuda.sh
314314
echo 'export PATH=$PATH:$CUDA_HOME/bin' | sudo tee -a /etc/profile.d/cuda.sh
315315
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_HOME/lib64' | sudo tee -a /etc/profile.d/cuda.sh
316316

@@ -338,7 +338,7 @@ sudo apt-get install -y python3.12 python3.12-venv python3.12-dev
338338
# Verify installation
339339
nvidia-smi
340340
nvcc --version
341-
docker run --rm --gpus all nvidia/cuda:12.8.0-base-ubuntu22.04 nvidia-smi
341+
docker run --rm --gpus all nvidia/cuda:13.0.0-base-ubuntu22.04 nvidia-smi
342342

343343
echo "Setup complete! Ready to create AMI."
344344
```
@@ -352,8 +352,8 @@ After setup completes:
352352
aws ec2 create-image \
353353
--region us-east-2 \
354354
--instance-id i-xxxxx \
355-
--name "llama-stack-gpu-ubuntu-2204-cuda-12.8-$(date +%Y%m%d)" \
356-
--description "Ubuntu 22.04 with NVIDIA drivers, CUDA 12.8, Docker, Python 3.12" \
355+
--name "llama-stack-gpu-ubuntu-2204-cuda-13.0-$(date +%Y%m%d)" \
356+
--description "Ubuntu 22.04 with NVIDIA drivers, CUDA 13.0, Docker, Python 3.12" \
357357
--tag-specifications 'ResourceType=image,Tags=[{Key=Name,Value=llama-stack-gpu-ami}]'
358358

359359
```
@@ -374,7 +374,7 @@ aws ec2 run-instances \
374374
ssh ubuntu@<ip>
375375
nvidia-smi
376376
nvcc --version
377-
docker run --rm --gpus all nvidia/cuda:12.8.0-base-ubuntu22.04 nvidia-smi
377+
docker run --rm --gpus all nvidia/cuda:13.0.0-base-ubuntu22.04 nvidia-smi
378378
```
379379

380380
## Step 4: Create GitHub Personal Access Token

IMPLEMENTATION_PLAN.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ RELEASE_PAT=ghp_xxxxx (GitHub PAT with 'repo' scope)
6666
**Actions**:
6767

6868
- [ ] Launch base EC2 instance (g6.2xlarge with Amazon Linux 2023 or Ubuntu 22.04)
69-
- [ ] Install NVIDIA drivers and CUDA 12.8
69+
- [ ] Install NVIDIA drivers and CUDA 13.0
7070
- [ ] Install Docker with NVIDIA Container Toolkit
7171
- [ ] Install system packages (gcc, g++, make, git, python3.12, python3.12-devel)
7272
- [ ] Configure CUDA environment variables
@@ -80,8 +80,8 @@ RELEASE_PAT=ghp_xxxxx (GitHub PAT with 'repo' scope)
8080

8181
```bash
8282
nvidia-smi # Should show GPU
83-
nvcc --version # Should show CUDA 12.8
84-
docker run --rm --gpus all nvidia/cuda:12.8.0-base-ubuntu22.04 nvidia-smi
83+
nvcc --version # Should show CUDA 13.0
84+
docker run --rm --gpus all nvidia/cuda:13.0.0-base-ubuntu22.04 nvidia-smi
8585
```
8686

8787
**Dependencies**: Task #11
@@ -126,6 +126,7 @@ docker run --rm --gpus all nvidia/cuda:12.8.0-base-ubuntu22.04 nvidia-smi
126126
**Key Features**:
127127

128128
- Install vLLM with GPU support
129+
- Pin vLLM to 0.22.1 for the validated CUDA 13.0 AMI path
129130
- Pull gpt-oss:20b model (or specified model)
130131
- Start vLLM server with optimal settings:
131132
- Native GPT-OSS MXFP4 weights without an extra vLLM quantization flag

IMPLEMENTATION_STATUS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110

111111
- [ ] Launch g6.2xlarge instance
112112
- [ ] Install NVIDIA drivers
113-
- [ ] Install CUDA 12.8
113+
- [ ] Install CUDA 13.0
114+
- [ ] Install/validate vLLM 0.22.1
114115
- [ ] Install Docker with NVIDIA Container Toolkit
115116
- [ ] Install Python 3.12
116117
- [ ] Create AMI

docs/gpu-runners.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ Create an AMI in `us-east-2` with:
166166

167167
- Base OS: Amazon Linux 2023 or Ubuntu 22.04
168168
- NVIDIA drivers
169-
- CUDA 12.8 runtime
169+
- CUDA 13.0 runtime
170+
- vLLM 0.22.1
170171
- Docker with NVIDIA Container Toolkit
171172
- Python 3.12
172173

0 commit comments

Comments
 (0)