Skip to Content
CLI

argoctl deploy inference

Deploy or update a vLLM model server on an argoCTL-managed cluster with Helm, and print its OpenAI-compatible endpoint.

Synopsis

sudo argoctl deploy inference <site-file> --model <hugging-face-id> [flags]

Before you start

The cluster must have been built by argoctl create cluster with the same site file. Run argoctl analyse to see which models fit and the flags to use.

Description

Deploys vLLM serving one model, waits until it answers, and prints its endpoint. The endpoint speaks the OpenAI API (/v1/models, /v1/chat/completions, /v1/completions, /v1/embeddings), so existing clients and SDKs work by changing their base URL.

The command is idempotent: running it again with the same flags reports nothing to change; changing a flag (for example --replicas) updates the deployment in place with a rolling update. Each deployment is identified by its --name in its namespace.

What it does

  1. Plans and checks, before changing anything.
    • The cluster is healthy and the GPU Operator is ready.
    • The model's configuration is read from Hugging Face (parameters, layers, attention and KV heads, precision; gated models need a token).
    • The layout is chosen: the flags you gave, or the same plan as analyse (replicate, tensor parallel within a node, or tensor × pipeline parallel across nodes). Tensor parallelism must divide the model's attention heads and fit in one node.
    • The model, plus KV-cache headroom for --max-model-len, fits the GPUs of one replica.
    • There are enough free GPUs, on enough nodes, for every replica.
    • Tensor parallelism above 2 needs NVLink between the GPUs (a warning on PCIe-only nodes). Pipeline parallelism needs RDMA between the nodes, and is refused without it unless you pass --allow-tcp-fallback.
  2. Deploys with Helm (on the control plane, with argoCTL's built-in argo-inference chart and the pinned vLLM image):
    • a Deployment of --replicas pods for layouts within one node, each pod requesting its GPUs (nvidia.com/gpu);
    • LeaderWorkerSet groups for layouts across nodes: one pod per node per replica, with the RDMA NICs (rdma/ib) and NCCL set up for GPUDirect RDMA;
    • an init container that downloads the weights once per node into /var/lib/argoctl/models (shared by every deployment on that node), so restarts and new replicas start from local disk;
    • Secrets for the Hugging Face token and API key, if given;
    • a Service exposing port 8000 as --expose says.
  3. Waits until every replica is Ready (weights downloaded and loaded, /health answering), then smoke-tests the endpoint: GET /v1/models, and a one-token completion.
  4. Prints the endpoint, the layout and a ready-to-run curl.

Generated Helm values are kept on mgmt in /var/lib/argoctl/inference/<namespace>/<name>/values.yaml.

Flags

FlagDefault
<site-file>Path to the site file.
--model <id>requiredHugging Face model ID, e.g. Qwen/Qwen3-8B.
--revision <rev>mainModel branch, tag or commit to pin.
--name <name>from the modelDeployment name (a DNS label), e.g. qwen3-8b for Qwen/Qwen3-8B.
--namespace <ns>argo-inferenceKubernetes namespace. Created if missing.
--replicas <n>1Number of model replicas.
--gpus-per-replica <n>from the planGPUs for one replica. argoctl uses tensor parallelism within a node and, if more GPUs than one node has, pipeline stages across nodes. Use this or the two flags below.
--tensor-parallel-size <n>from the planGPUs each layer is split across, within one node.
--pipeline-parallel-size <n>1Nodes the layers are split across. Needs RDMA.
--quantization <method>from the checkpointvLLM quantization method, e.g. fp8, awq, gptq. Most quantized checkpoints are detected automatically.
--dtype <type>autoauto, bfloat16 or float16. auto uses the checkpoint's precision, and float16 on GPUs without BF16 (T4).
--max-model-len <tokens>model's maximumLongest context a request may use. Lower it to fit more concurrent requests.
--served-model-name <name>the model IDThe model name clients send.
--expose <mode>node-portnode-port: every node's Kubernetes address on a NodePort. load-balancer: one address from --address, announced on the frontend network. cluster: inside the cluster only.
--node-port <port>first free from 30080NodePort to use with --expose node-port.
--address <ip>Address for --expose load-balancer. Must be inside the frontend network and unused.
--api-key-env <VAR> / --api-key-file <path>Require this API key (Authorization: Bearer ...) on every request.
--hf-token-env <VAR> / --hf-token-file <path>Hugging Face token, for gated or private models. Stored as a Kubernetes Secret, never logged.
--node <name>any GPU nodeOnly place replicas on these nodes (repeat the flag).
--values <file>Extra Helm values for the argo-inference chart, merged last.
--vllm-arg <arg>Extra argument for vllm serve, e.g. --vllm-arg=--enable-auto-tool-choice (repeat the flag).
--allow-tcp-fallbackAllow pipeline parallelism across nodes without RDMA (NCCL over TCP: slow).
--dry-runPrint the plan and the Helm values, and change nothing.
--jsonPrint the report as JSON on stdout.
--wait-timeout <d>45mHow long to wait for every replica to be Ready (large models take a while to download).
--no-waitReturn once Helm has applied the release.

Examples

# Small model, one GPU per replica, two replicas
sudo argoctl deploy inference /etc/argoctl/site.yaml --model Qwen/Qwen3-8B --replicas 2

# Gated model, FP8, tensor parallel 2, with an API key
export HF_TOKEN=... API_KEY=...
sudo --preserve-env=HF_TOKEN,API_KEY argoctl deploy inference /etc/argoctl/site.yaml \
  --name llama-70b --model RedHatAI/Llama-3.3-70B-Instruct-FP8 \
  --tensor-parallel-size 2 --replicas 4 --max-model-len 32768 \
  --hf-token-env HF_TOKEN --api-key-env API_KEY

# Across two nodes (needs InfiniBand or RoCE)
sudo --preserve-env=HF_TOKEN argoctl deploy inference /etc/argoctl/site.yaml \
  --model meta-llama/Llama-3.1-405B-Instruct \
  --tensor-parallel-size 8 --pipeline-parallel-size 2 --hf-token-env HF_TOKEN

# A fixed address on the frontend network
sudo argoctl deploy inference /etc/argoctl/site.yaml --model Qwen/Qwen3-8B \
  --expose load-balancer --address 172.16.2.100

# Scale: the same command with a new replica count
sudo argoctl deploy inference /etc/argoctl/site.yaml --model Qwen/Qwen3-8B --replicas 6

# See what would happen
sudo argoctl deploy inference /etc/argoctl/site.yaml --model Qwen/Qwen3-32B --dry-run

Output

$ sudo argoctl deploy inference /etc/argoctl/site.yaml --model Qwen/Qwen3-8B --replicas 2
==> deploy inference /etc/argoctl/site.yaml: site dc1, qwen3-8b in namespace argo-inference
  plan      Qwen/Qwen3-8B: 8.2B parameters, bfloat16, 16.4 GB of weights; 36 layers, 8 KV heads (144 KiB of KV cache per token)
  plan      layout replicate: 1 GPU per replica (H100 80GB), 2 replicas; 14 GPUs stay free
  plan      expose node-port 30080 on every node's frontend address
  helm      install argo-inference 1.0.0 as qwen3-8b (vLLM v0.34.0)
  qwen3-8b  replica 1/2 on gpu1: downloading weights to /var/lib/argoctl/models (16.4 GB)
  qwen3-8b  replica 2/2 on gpu2: downloading weights to /var/lib/argoctl/models (16.4 GB)
  qwen3-8b  replica 1/2 on gpu1: loading the model
  qwen3-8b  replica 1/2 on gpu1: ready
  qwen3-8b  replica 2/2 on gpu2: ready
  qwen3-8b  smoke test: GET /v1/models ok; 1-token completion in 41 ms

✓ inference qwen3-8b is ready: 2/2 replicas (3m12s)
  model     Qwen/Qwen3-8B (bfloat16), max-model-len 40960
  layout    replicate, 1 GPU per replica
  endpoint  http://172.16.2.21:30080/v1 (NodePort, any node's frontend address)

  Try it:
    curl http://172.16.2.21:30080/v1/chat/completions -H 'Content-Type: application/json' \
      -d '{"model": "Qwen/Qwen3-8B", "messages": [{"role": "user", "content": "Hello"}]}'
  Full log: /var/log/argoctl/20261130T123012Z-deploy-inference.log

Running it again with --replicas 4:

  plan      replicas 2 -> 4 (rolling update; the existing replicas keep serving)
  ...
✓ inference qwen3-8b is ready: 4/4 replicas (1m05s)

Test the endpoint

curl -s http://172.16.2.21:30080/v1/models | jq

curl -s http://172.16.2.21:30080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
        "model": "Qwen/Qwen3-8B",
        "messages": [{"role": "user", "content": "Explain RDMA in one sentence."}],
        "max_tokens": 128
      }' | jq -r '.choices[0].message.content'

With an API key, add -H "Authorization: Bearer $API_KEY". From Python, with the OpenAI SDK:

from openai import OpenAI

client = OpenAI(base_url="http://172.16.2.21:30080/v1", api_key="unused-or-your-key")
reply = client.chat.completions.create(
    model="Qwen/Qwen3-8B",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)

JSON

--json prints name, namespace, model, revision, served_model_name, dtype, layout (tensor_parallel_size, pipeline_parallel_size, gpus_per_replica), replicas (desired, ready, and per replica its nodes and GPUs), endpoint (url, expose), changed and failure (step, reason, recovery).

Exit codes

CodeMeaning
0Every replica is Ready and the smoke test passed (or, with --no-wait, Helm applied the release).
1A check, the deployment or the smoke test failed. Nothing is changed when a check before deployment fails.
2Usage error.

Troubleshooting

SymptomLikely cause and fix
not enough free GPUs: need 4 on one node, ...Other deployments use them: argoctl get inference, then scale one down or delete it. Or lower the precision so a replica needs fewer GPUs.
the model needs 183 GB ... one replica has 160 GBGive each replica more GPUs (--tensor-parallel-size), use an FP8 or INT4 checkpoint, or lower --max-model-len.
tensor parallel size 3 doesn't divide the model's 64 attention headsUse 1, 2, 4 or 8.
pipeline parallelism needs RDMA between gpu1 and gpu2The nodes have no InfiniBand or RoCE link up. Fix the links (ibstat on the nodes), use a layout within one node, or pass --allow-tcp-fallback knowingly.
can't read model configuration: 401 / gatedAccept the model's licence on Hugging Face and pass --hf-token-env / --hf-token-file.
A replica stays downloading weightsSlow or blocked access to huggingface.co from the node. The pod's init container log shows progress: kubectl -n argo-inference logs <pod> -c download.
A replica restarts with CUDA out of memoryKV cache doesn't fit: lower --max-model-len, or give each replica more GPUs.
bfloat16 isn't supported on Tesla T4Turing GPUs have no BF16: drop --dtype bfloat16 (auto uses float16). FP8 checkpoints don't run on T4 either; use an AWQ or GPTQ INT4 checkpoint.
Multi-node replica hangs at initialising NCCLRDMA or the network between the nodes: check RDMA devices in pods with argoctl verify cluster, and the pod logs after setting NCCL_DEBUG=INFO in the pods' environment with --values.
address 172.16.2.100 is in usePick an unused address on the frontend network for --address.
The endpoint answers 401The deployment has an API key: add -H "Authorization: Bearer <key>".

On this page