Skip to main content
Version: dev

Quickstart

This guide provides a simplified, end-to-end walkthrough for deploying an Optimized Baseline configuration using llm-d. This setup reduces tail latency and increases throughput through load-aware and prefix-cache aware balancing.

For this quickstart, we will use the Standalone Mode deployment, which is the easiest way to get started with llm-d.

Prerequisites​

  • Installed proper client tools (kubectl, helm).

  • Ensure your cluster has enough accelerators for the default configuration: 4 NVIDIA GPUs in total (2 replicas × --tensor-parallel-size=2), with each replica's 2 GPUs on the same node. Each replica also requests 8 CPU and 96Gi of memory. The reference hardware is H100 80 GB. Check what your nodes expose:

    kubectl get nodes -o custom-columns='NAME:.metadata.name,GPUs:.status.allocatable.nvidia\.com/gpu'

    If your cluster has fewer resources, lower replicas and --tensor-parallel-size in patch-vllm.yaml before deploying. For non-NVIDIA hardware, see Supported Accelerators and Model Servers and the accelerator support list — some of those configurations serve a different model.

  • Checkout llm-d repo:

    export branch="main"
    git clone https://github.com/llm-d/llm-d.git && cd llm-d && git checkout ${branch}
  • Set the following environment variables:

    export REPO_ROOT=$(realpath $(git rev-parse --show-toplevel))
    source ${REPO_ROOT}/guides/env.sh
    export GUIDE_NAME="quickstart"
    export NAMESPACE=llm-d-quickstart
  • Install the Gateway API Inference Extension CRDs:

    # GAIE_URL is automatically calculated from GAIE_VERSION at ${REPO_ROOT}/guides/env.sh
    kubectl apply -f https://github.com/kubernetes-sigs/gateway-api-inference-extension/${GAIE_URL}/v1-manifests.yaml
  • Create a target namespace for the installation:

    kubectl create namespace ${NAMESPACE} --dry-run=client -o yaml | kubectl apply -f -
  • Create the llm-d-hf-token secret in your target namespace with the key HF_TOKEN matching a valid HuggingFace token to pull models.

export HF_TOKEN=<your HuggingFace token>
kubectl create secret generic llm-d-hf-token \
--from-literal="HF_TOKEN=${HF_TOKEN}" \
--namespace "${NAMESPACE}" \
--dry-run=client -o yaml | kubectl apply -f -

Installation Instructions​

1. Deploy the llm-d Router (Standalone Mode)​

The llm-d Router provides the intelligent load balancing. In Standalone Mode, it includes a built-in proxy (Envoy).

helm install ${GUIDE_NAME} \
${ROUTER_STANDALONE_CHART} \
-f guides/recipes/router/base.values.yaml \
-f guides/optimized-baseline/router/optimized-baseline.values.yaml \
-n ${NAMESPACE} --version ${ROUTER_CHART_VERSION}

2. Deploy the Model Server​

Deploy the default model server (vLLM running on NVIDIA GPUs). This will deploy 2 replicas of Qwen/Qwen3-32B by default.

kubectl apply -n ${NAMESPACE} -k guides/optimized-baseline/modelserver/gpu/vllm/base/
tip

If you are using different hardware (AMD, Intel, TPU, or CPU), you can find alternative configurations in the guides/optimized-baseline/modelserver/ directory. Some of these serve a different model (for example, meta-llama/Llama-3.2-3B-Instruct on CPU); use the model listed under Supported Accelerators and Model Servers in the test request below.

Wait for all model server pods to be running and ready before proceeding:

bash ${REPO_ROOT}/guides/scripts/wait-for-pods-ready.sh -l llm-d.ai/guide=optimized-baseline -n ${NAMESPACE}
note

Model server pods may take several minutes to start as they need to download the model weights.

tip

If the pods stay in Pending, the cluster could not schedule them. Run kubectl describe pod -l llm-d.ai/guide=optimized-baseline -n ${NAMESPACE} and look at the events: Insufficient nvidia.com/gpu means the cluster has fewer GPUs than the default 4-GPU configuration needs. See the accelerator prerequisite above.

Verification​

1. Get the IP of the Proxy​

Retrieve the ClusterIP of the llm-d Router service:

export IP=$(kubectl get service ${GUIDE_NAME}-epp -n ${NAMESPACE} -o jsonpath='{.spec.clusterIP}')

2. Send a Test Request​

Open a temporary interactive shell inside the cluster to send a request:

kubectl run curl-debug --rm -it \
--image=${CURL_TEST_IMAGE} \
--namespace="$NAMESPACE" \
--env="IP=$IP" \
-- /bin/bash

Inside the shell, send a completion request:

curl -X POST http://${IP}/v1/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "Qwen/Qwen3-32B",
"prompt": "How are you today?"
}' | jq

Cleanup​

To remove all resources created in this guide:

helm uninstall ${GUIDE_NAME} -n ${NAMESPACE}
kubectl delete namespace ${NAMESPACE}