DEV Community

Cover image for Running vLLM on AMD Instinct MI300X: ROCm Container Pinning & RCCL Checklist
Hydenring
Hydenring

Posted on Edited on Originally published at hydenring.hashnode.dev

Running vLLM on AMD Instinct MI300X: ROCm Container Pinning & RCCL Checklist

Running vLLM on AMD Instinct MI300X gives you 192 GB of HBM3 per GPU and up to 5.3 TB/s of memory bandwidth, which lets you serve 70B+ parameter models with large KV caches on fewer devices. Most production failures have nothing to do with the silicon itself. They happen when host amdgpu drivers drift away from container ROCm userspace builds, or when containers launch without proper IPC, device, and network interface pinning.

This field checklist is the companion to our full production runbook on operating AMD Instinct ROCm clusters. Bookmark it for node bring-up and container deployments.


1. Host Driver & Container Pinning

Never mix unattended OS kernel/driver upgrades with floating :latest or :nightly container tags. Lock the host baseline first, then pin your inference image by exact release tag or SHA-256 digest:

# Inspect active host ROCm and kernel module versions
cat /opt/rocm/.info/version
cat /sys/module/amdgpu/version

# Hold kernel driver and ROCm core packages on Ubuntu hosts
sudo apt-mark hold amdgpu-dkms rocm-core
Enter fullscreen mode Exit fullscreen mode

Verified baseline configs and launch scripts are also tracked in hydenring-compute/rocm-vllm-configs.


2. Docker Launch Flags for 8x MI300X

When launching vllm/vllm-openai-rocm on an 8-GPU MI300X node, pass both /dev/kfd and /dev/dri, expand shared memory (--ipc=host --shm-size=64g), and pin the control-plane network interface:

docker run -d \
  --name vllm-mi300x-prod \
  --restart=always \
  --network=host \
  --device=/dev/kfd \
  --device=/dev/dri \
  --security-opt seccomp=unconfined \
  --group-add video \
  --ipc=host \
  --shm-size=64g \
  -v /mnt/nvme/hf-cache:/root/.cache/huggingface \
  -e GLOO_SOCKET_IFNAME=eth0 \
  -e NCCL_SOCKET_IFNAME=eth0 \
  -e VLLM_HOST_IP=127.0.0.1 \
  vllm/vllm-openai-rocm:v0.6.4-rocm6.2.1 \
  --model meta-llama/Llama-3.1-70B-Instruct \
  --tensor-parallel-size 8 \
  --dtype float16 \
  --max-model-len 8192 \
  --gpu-memory-utilization 0.90
Enter fullscreen mode Exit fullscreen mode

Apptainer / Singularity Equivalent (Slurm & HPC Clusters)

On Slurm-managed bare-metal clusters where Docker is not permitted, use apptainer exec with --rocm and explicit bind mounts for local NVMe scratch:

apptainer exec \
  --rocm \
  --bind /mnt/nvme/hf-cache:/root/.cache/huggingface \
  --env GLOO_SOCKET_IFNAME=eth0 \
  --env NCCL_SOCKET_IFNAME=eth0 \
  --env VLLM_HOST_IP=127.0.0.1 \
  docker://vllm/vllm-openai-rocm:v0.6.4-rocm6.2.1 \
  python3 -m vllm.entrypoints.openai.api_server \
    --model meta-llama/Llama-3.1-70B-Instruct \
    --tensor-parallel-size 8 \
    --dtype float16 \
    --max-model-len 8192 \
    --gpu-memory-utilization 0.90
Enter fullscreen mode Exit fullscreen mode

3. Post-Launch rocm-smi & HIP Verification

Before routing production inference traffic to the container, confirm all 8 GPUs are visible and PyTorch sees the expected HIP runtime:

# Confirm GPU visibility, temperature, and VRAM allocation
docker exec -it vllm-mi300x-prod rocm-smi

# Verify PyTorch HIP binding and ROCm architecture (gfx942 for MI300X)
docker exec -it vllm-mi300x-prod python3 -c "import torch; print(torch.cuda.is_available(), torch.version.hip)"
rocm_agent_enumerator
Enter fullscreen mode Exit fullscreen mode

4. Multi-Node RCCL & Fabric Checklist

If tensor-parallel or pipeline-parallel initialization hangs or drops throughput across nodes, run through this 5-point check:

  1. XGMI & Topology: Run amd-smi xgmi and amd-smi topology to verify inter-GPU links and NUMA affinity.
  2. PCIe Link Width: Run lspci -tv to confirm no GPU downgraded from x16 to x8.
  3. PCIe ACS: Ensure PCIe Access Control Services (ACS) is disabled so P2P/RDMA traffic does not bounce through the CPU root complex.
  4. RDMA & Locked Memory: Check ibv_devinfo, rdma link, and verify ulimit -l is unlimited.
  5. Verbose Collective Logs: Reproduce hangs with:
   export NCCL_DEBUG=INFO
   export NCCL_DEBUG_SUBSYS=INIT,COLL
   export TORCH_DISTRIBUTED_DEBUG=DETAIL
Enter fullscreen mode Exit fullscreen mode

5. Quick Sizing Check: MI300X vs. H100 & Pricing

Before provisioning nodes, verify whether your workload benefits more from MI300X memory headroom or H100 dense FP8 throughput:

  • Memory & Spec Baseline: Each MI300X provides 192 GB HBM3, 5.3 TB/s peak memory bandwidth, and 163.4 TFLOPS peak FP32 performance.
  • MI300X vs. H100: When 70B+ weights and large KV caches fit on fewer MI300X GPUs without cross-node sharding, you avoid multi-node latency overhead.
  • MI300X Pricing & TCO: Compare providers on effective $/token and pinned engineering stability rather than raw $/hr sticker price alone.

Next Steps

If you want single-tenant AMD Instinct MI300X bare metal with pinned amdgpu driver baselines and pre-validated ROCm + vLLM containers out of the box, request a Workload Review at hydenring.com/workload-review.

Top comments (0)