---
title: First Deployment
url: https://docs.vultr.com/inference-cookbook/rocm/getting-started/first-deployment
description: Deploy your first model on AMD Instinct GPUs.
publish_date: 2026-03-02T15:21:25.137632Z
last_updated: 2026-03-17T16:27:14.934667Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

## Basic Deployment

Start with a small model to verify your setup:

```bash
docker run --rm \
  --group-add=video \
  --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --device /dev/kfd \
  --device /dev/dri \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  --env "HF_TOKEN=$HF_TOKEN" \
  -p 8000:8000 \
  --ipc=host \
  vllm/vllm-openai-rocm:latest \
  --model Qwen/Qwen3-0.6B
```

Wait for the server to start (look for "Application startup complete").

## Test the API

### List Models

```bash
curl http://localhost:8000/v1/models
```

### Chat Completion

```bash
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Qwen/Qwen3-0.6B",
    "messages": [{"role": "user", "content": "Hello, how are you?"}],
    "max_tokens": 100
  }'
```

### Text Completion

```bash
curl http://localhost:8000/v1/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Qwen/Qwen3-0.6B",
    "prompt": "The capital of France is",
    "max_tokens": 20
  }'
```

## Multi-GPU Deployment

For large models, use tensor parallelism across all 8 GPUs:

```bash
docker run --rm \
  --group-add=video \
  --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --device /dev/kfd \
  --device /dev/dri \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  --env "HF_TOKEN=$HF_TOKEN" \
  --env "VLLM_USE_TRITON_FLASH_ATTN=0" \
  -p 8000:8000 \
  --ipc=host \
  vllm/vllm-openai-rocm:latest \
  --model meta-llama/Llama-3.1-405B-Instruct \
  --tensor-parallel-size 8 \
  --quantization fp8 \
  --max-model-len 32768
```

## Common Flags

| Flag | Purpose | Example |
|------|---------|---------|
| `--tensor-parallel-size` | Distribute across GPUs | `--tensor-parallel-size 8` |
| `--quantization` | Model quantization | `--quantization fp8` |
| `--max-model-len` | Maximum context length | `--max-model-len 32768` |
| `--gpu-memory-utilization` | VRAM allocation | `--gpu-memory-utilization 0.90` |

## Production Configuration

For production deployments, add these flags:

```bash
docker run --rm \
  --group-add=video \
  --cap-add=SYS_PTRACE \
  --security-opt seccomp=unconfined \
  --device /dev/kfd \
  --device /dev/dri \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  --env "HF_TOKEN=$HF_TOKEN" \
  --env "VLLM_ROCM_USE_AITER=1" \
  -p 8000:8000 \
  --ipc=host \
  vllm/vllm-openai-rocm:latest \
  --model MODEL_NAME \
  --tensor-parallel-size 8 \
  --quantization fp8 \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.90 \
  --host 0.0.0.0
```
