8000 GitHub - zaindroid/vllm-blackwell: vLLM 0.9.0.1 built from source with native NVIDIA Blackwell (RTX 5090 / sm_120) support · GitHub
[go: up one dir, main page]

Skip to content

About

vLLM 0.9.0.1 built from source with native NVIDIA Blackwell (RTX 5090 / sm_120) support

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

vllm-blackwell

Docker Hub Docker Pulls License: MIT

vLLM 0.20.0 compiled from source with full NVIDIA Blackwell support (RTX 5090 / sm_120).


Why does this exist?

Running vLLM on a Blackwell GPU using the official PyPI wheel fails immediately:

RuntimeError: CUDA error: no kernel image is available for execution on the device

The pre-built wheel does not include CUDA kernels for sm_120 (Blackwell architecture). The only solution is to compile vLLM from source with TORCH_CUDA_ARCH_LIST="12.0+PTX" — which takes 30–45 minutes and requires getting several dependency versions exactly right.

This image does all of that for you.


Quick start

Pull and run

docker pull zainey4/vllm-blackwell:latest

# Verify it works on your GPU
docker run --gpus all --rm zainey4/vllm-blackwell:latest \
    python -c "import vllm; print('vLLM', vllm.__version__, '— ready')"

Serve any model

docker run --gpus all --rm \
    -p 8000:8000 \
    -e HF_TOKEN=your_hf_token \
    -v hf-cache:/root/.cache/huggingface \
    zainey4/vllm-blackwell:latest \
    python -m vllm.entrypoints.openai.api_server \
        --model meta-llama/Llama-3.2-3B-Instruct \
        --dtype bfloat16

Then query it:

curl http://localhost:8000/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "meta-llama/Llama-3.2-3B-Instruct",
        "messages": [{"role": "user", "content": "Hello!"}]
    }'

Use as a base image

FROM zainey4/vllm-blackwell:0.20.0-cu128

WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY server.py .
CMD ["python", "server.py"]

Docker Compose

services:
  llm:
    image: zainey4/vllm-blackwell:latest
    restart: unless-stopped
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    ports:
      - "8000:8000"
    environment:
      - HF_TOKEN=${HF_TOKEN}
    volumes:
      - hf-cache:/root/.cache/huggingface
    command: >
      python -m vllm.entrypoints.openai.api_server
      --model meta-llama/Llama-3.2-3B-Instruct
      --dtype bfloat16
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://localhost:8000/health"]
      interval: 30s
      start_period: 120s

volumes:
  hf-cache:

Image details

Component Version
vLLM 0.20.0
PyTorch 2.9.1+cu128
CUDA 12.8.1
Python 3.10
Ubuntu 22.04
Flash Attention v2

CUDA architectures compiled: sm_80 sm_86 sm_89 sm_90 sm_120


Supported GPUs

GPU Architecture Supported
RTX 5090 / 5080 Blackwell (sm_120) ✅ Tested
RTX 4090 / 4080 / 4070 Ada Lovelace (sm_89) ✅
RTX 3090 / 3080 Ampere (sm_86) ✅
A100 Ampere (sm_80) ✅
H100 / H200 Hopper (sm_90) ✅

Environment variables

The following are set by default. Override them in your docker run command or compose file if needed.

Variable Default Description
VLLM_WORKER_MULTIPROC_METHOD spawn Required — CUDA cannot reinitialize in a forked subprocess
VLLM_FLASH_ATTN_VERSION 2 Flash Attention 3 is not yet supported on Blackwell

Build from source

If you want to build the image yourself:

git clone https://github.com/zaindroid/vllm-blackwell
cd vllm-blackwell
docker build -t vllm-blackwell:latest .

Build time is 30–45 minutes on a machine with a fast internet connection. The compiler generates CUDA kernels for all supported architectures.


Known limitations

  • Flash Attention 3 is not yet supported on Blackwell — FA2 is used automatically
  • CUDA 12.8+ and driver 575+ are required on the host

Requirements


Contributing

Bug reports, test results on other Blackwell GPUs, and pull requests are welcome. See CONTRIBUTING.md.


License

MIT — see LICENSE.

Maintainer: Zain Ul Haq — zainey4@gmail.com

About

vLLM 0.9.0.1 built from source with native NVIDIA Blackwell (RTX 5090 / sm_120) support

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0