HUB
Sign inSign up

testeddoughnut/vllm-openai-rocm-r9700

By testeddoughnut

•Updated 5 months ago

Image
0

1.8K

testeddoughnut/vllm-openai-rocm-r9700 repository overview

Recent-ish vllm (about a week old from main, this commit⁠) with some patches for R9700 enablement.

PRs (in merge order):

This also contains a vibe-coded tuning patch to aiter for R9700 performance. Gist for patch here along with its equally vibe coded tuning script:

https://gist.github.com/testeddoughnut/1595bf720f811b35385768c9de219c4a⁠

Example docker/podman compose for google/gemma-4-31B-it-qat-w4a16-ct with 2x R9700s:

services:
  vllm:
    image: testeddoughnut/vllm-openai-rocm-r9700:nightly
    container_name: vllm-rocm-gemma4-31b
    network_mode: host
    group_add:
      - 27 # video
      - 28 # render
    ipc: host
    cap_add:
      - SYS_PTRACE
    security_opt:
      - seccomp:unconfined
    shm_size: 32gb
    devices:
      - /dev/kfd:/dev/kfd
      - /dev/dri:/dev/dri
    volumes:
      - ./huggingface:/data/models
      - ./compile-cache:/root/.cache/vllm
      - ./triton-cache:/root/.triton/cache
      - ./triton_kernel_configs:/usr/local/lib/python3.12/dist-packages/vllm/model_executor/layers/quantization/utils/configs:ro
      - ./gemma4-31b-chat_template.jinja:/root/gemma4-31b-chat_template.jinja:ro
    environment:
      - HF_TOKEN=${HF_TOKEN}
      - HF_HOME=/data/models
      - TRITON_CACHE_DIR=/root/.triton/cache
      - VLLM_ROCM_USE_AITER=1
      - VLLM_ROCM_USE_AITER_UNIFIED_ATTENTION=1
      - VLLM_ROCM_USE_AITER_MHA=0
      - VLLM_ROCM_USE_AITER_MLA=0
      - VLLM_ROCM_USE_AITER_PAGED_ATTN=0
      - VLLM_ROCM_USE_AITER_MOE=0
      - VLLM_ROCM_USE_AITER_LINEAR=0
      - VLLM_ROCM_USE_AITER_TRITON_GEMM=0
      - VLLM_ROCM_USE_AITER_RMSNORM=0
      - VLLM_ROCM_USE_AITER_FP8BMM=0
      - VLLM_ROCM_USE_AITER_FP4BMM=0
      - VLLM_ROCM_USE_AITER_TRITON_ROPE=0
      - GPU_MAX_HW_QUEUES=1
      - NCCL_PROTO=Simple
      - NCCL_MIN_NCHANNELS=8
      - HSA_ENABLE_IPC_MODE_LEGACY=0
    command: >
      google/gemma-4-31B-it-qat-w4a16-ct
      --attention-backend ROCM_AITER_UNIFIED_ATTN
      --tensor-parallel-size 2
      --max-model-len 256k
      --kv-cache-dtype fp8
      --gpu-memory-utilization 0.85
      --enable-prefix-caching
      --enable-chunked-prefill
      --async-scheduling
      --trust-remote-code
      --max-num-seqs 2
      --enable-auto-tool-choice
      --reasoning-parser gemma4
      --tool-call-parser gemma4
      --host 0.0.0.0
      --port 8080
      --chat-template /root/gemma4-31b-chat_template.jinja
      --speculative-config '{"method":"mtp", "model":"google/gemma-4-31B-it-qat-q4_0-unquantized-assistant", "num_speculative_tokens": 2, "draft_tensor_parallel_size": 2}'
Tag summary
Recent tags
Content type
Image
Digest
sha256:a6f47d7e3…
Size
10.2 GB
Last updated
5 months ago
docker pull testeddoughnut/vllm-openai-rocm-r9700:latest