I have successfully loaded the openai/gpt-oss-20b model on RunPod using vLLM.
The openai/gpt-oss-20b model requires a very recent version of the transformers library to recognize its custom gpt_oss architecture.
- Issue 1: The default RunPod vLLM images (e.g., v0.6.3) were too old and lacked this support.
- Issue 2: The
latestvLLM image (v0.7.0+) required CUDA 12.9 drivers, which are not yet available on standard RunPod instances (which use CUDA 12.1/12.4), causing container startup failures.
I implemented a Runtime Installation Strategy:
- Base Image: Switched to a standard, compatible
runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04image. This ensures the container creates successfully on the host. - Runtime Setup: Modified the startup command to install the latest
vllmandtransformerslibraries inside the container before starting the server.pip install --upgrade pip && pip install vllm transformers && python3 -m vllm.entrypoints.openai.api_server ...
- Robust Command Passing: Refactored
runpod_interface.pyto correctly pass this complex command string torunpodctlusing the--argsflag, ensuring it is executed properly by the container's entrypoint.
- The pod now creates successfully.
- It automatically updates to the latest vLLM (v0.15.1+).
- The logs confirm:
Resolved architecture: GptOssForCausalLM. - The model loads and the API server starts.
INFO 02-10 03:24:20 [model.py:541] Resolved architecture: GptOssForCausalLM
INFO 02-10 03:24:26 [vllm.py:624] Asynchronous scheduling is enabled.