Retrieved article excerpt
Open article · Retrieved 2026-11-14T14:23:05.357144+00:00
[Agentic AI / Generative AI](https://developer.nvidia.com/blog/category/generative-ai/)
# When One GPU Isn’t Enough: Serving GLM-5.3 Across Two NVIDIA DGX Stations with vLLM
- [L](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Fwhen-one-gpu-isnt-enough-serving-glm-5-3-across-two-nvidia-dgx-stations-with-vllm%2F)
- [T](https://twitter.com/intent/tweet?text=When+One+GPU+Isn%E2%80%99t+Enough%3A+Serving+GLM-5.3+Across+Two+NVIDIA+DGX+Stations+with+vLLM+%7C+NVIDIA+Technical+Blog+https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Fwhen-one-gpu-isnt-enough-serving-glm-5-3-across-two-nvidia-dgx-stations-with-vllm%2F)
- [F](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Fwhen-one-gpu-isnt-enough-serving-glm-5-3-across-two-nvidia-dgx-stations-with-vllm%2F)
- [R](https://www.reddit.com/submit?url=https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Fwhen-one-gpu-isnt-enough-serving-glm-5-3-across-two-nvidia-dgx-stations-with-vllm%2F&title=When+One+GPU+Isn%E2%80%99t+Enough%3A+Serving+GLM-5.3+Across+Two+NVIDIA+DGX+Stations+with+vLLM+%7C+NVIDIA+Technical+Blog)
- E
## AI-Generated Summary
- [GLM-5.3 NVFP4](https://huggingface.co/nvidia/GLM-5.3-NVFP4), a quantized mixture-of-experts model with 753 billion parameters and 40 billion activated per token, requires about 464 GB of GPU memory, exceeding the 252 GB HBM3e on a single GB300 GPU.
- Two NVIDIA DGX Stations connected over ConnectX-8 RDMA serve the model through one OpenAI-compatible endpoint using tensor parallelism (TP=2), with each GPU holding and computing roughly half the weights.
- vLLM launches a distributed service across both Stations, enabling multi-token prediction, FP8 KV-cache storage, and prefix caching to maximize throughput under concurrent load.
- AIPerf benchmarks on the SPEED-Bench Coding dataset show overall output throughput peaking at 607.8 tokens per second at concurrency 16, then falling to 385.0 tokens per second at concurrency 32 with mean request latency of 453.5 seconds.
### Next Steps
- Follow the [Connect Two DGX Stations playbook](https://build.nvidia.com/station/connect-two-stations) to link and validate the hardware before deployment.
- Review the [NVIDIA Local AI recipe repository](https://nvidia.github.io/local-ai-inference-recipes/hardware/dgx-station-2gpu/index.html) for the latest recommended configurations.
- Connect an application using the [vLLM serving documentation](https://docs.vllm.ai/en/v0.30.0/serving/online_serving/) and rerun AIPerf with custom prompts to find the optimal concurrency for the workload.
Powered by NVIDIA Nemotron. AI-generated content may summarize information incompletely. Verify important information. [Learn more](https://www.nvidia.com/en-us/agreements/trustworthy-ai/terms/)
Running a frontier-scale model locally means keeping all its weights in GPU memory; the largest models no longer fit on one machine. Two NVIDIA DGX Stations connected over ConnectX-8 RDMA serve one model through a single endpoint, with tensor parallelism splitting the model weights and computation across both GPUs.
The NVIDIA [GLM-5.3 NVFP4](https://huggingface.co/nvidia/GLM-5.3-NVFP4) model, a quantized version of [Z.ai](http://z.ai)’s mixture-of-experts (MoE) model, has 753 billion parameters, with 40 billion activated per token. Sparse activation reduces computation, but all model weights still need to remain available because each token can be routed to different experts. At about 464 GB, the checkpoint exceeds the 252 GB of HBM3e on a single GB300 GPU. This tutorial uses two DGX Stations to keep the weights in GPU memory, with CPU weight offload disabled.
Before starting, connect the two Stations with the [Connect Two DGX Stations playbook](https://build.nvidia.com/station/connect-two-stations).
This post shows how to serve GLM-5.3 locally across two NVIDIA DGX Stations with vLLM, send a request, and measure behavior under concurrent load. Tensor parallelism (TP=2) splits the model’s tensors across the two GB300 GPUs. Both Stations compute every request, and Station A returns the answer through one OpenAI-compatible API. By the end, you’ll have a working endpoint and a baseline for how it behaves under load.
Two stations serve one model: each GPU holds and computes part of the model over the selected RDMA connection. Their memories remain distinct.
*Figure 1. Two Stations serve one model: each GPU holds and computes part of the model over the selected RDMA connection. Their memories remain distinct*
## Prerequisites
- Two GB300 DGX Stations running Linux, connected and validated with the [Connect Two DGX Stations playbook](https://build.nvidia.com/station/connect-two-stations), including its GPU-memory RDMA test on both rails.
- SSH and sudo access on both Stations with the same Linux username. Docker and the NVIDIA Container Toolkit come preinstalled with the [DGX Station software stack](https://docs.nvidia.com/dgx/dgx-station-development-guide/porting/software-requirements.html). Allow outbound access to the container registry, Hugging Face, and package repositories.
- At least 464 GB of free disk space on each Station for its copy of the checkpoint, plus room for the vLLM container image and temporary files.
- Acceptance of the NVIDIA Open Model Agreement and the original GLM-5.3 license terms, listed on the [model card](https://huggingface.co/nvidia/GLM-5.3-NVFP4#licenseterms-of-use). SPEED-Bench is governed by the [NVIDIA Evaluation Dataset License Agreement](https://huggingface.co/datasets/nvidia/SPEED-Bench/blob/main/License.pdf).
- A Hugging Face account and read access token, with access to the gated [cais/hle](https://huggingface.co/datasets/cais/hle) dataset: sign in, open its page, and select **Agree and access repository**. Step 5 downloads SPEED-Bench prompts from this dataset.
The companion video follows the same workflow.
*Video 1. Walkthrough of preparation, inference, benchmarking, and shutdown*
## Step 1. Prepare the two Stations
This tutorial uses a separate computer, such as your laptop, to manage both Stations. Start by opening an SSH session to each Station from that computer. Alternatively, work from a local terminal on each Station. Run every command in this step on both Stations unless it starts with “On A.”
The two Stations run the same container and checkpoint in different roles: Station A (rank 0) hosts the API, and Station B (rank 1) runs only a worker, with no API server.
First, check Docker access and collect the network values you’ll use later:
```
docker version
ibdev2netdev
ip -br addr
```
| **Note:** If the `docker version` output has no `Server` section, the client cannot reach the Docker daemon. If the error is `permission denied`, follow the [Docker post-installation procedure](https://docs.docker.com/engine/install/linux-postinstall/): add your user to the `docker` group with `sudo usermod -aG docker "$USER"`, run `exit`, then reconnect and rerun `docker version`. The `docker` group grants root-level privileges. |
| --- |
The `ibdev2netdev` output lists the two direct rails, `cx8r0` and `cx8r1`. Pick one for serving traffic, for example `cx8r1`, and note two things for it on each Station:
- **Its RDMA device**, on the `ibdev2netdev` line that ends with the rail’s name. In `mlx5_1 port 1 ==> cx8r1 (Up)`, the device is `mlx5_1`.
- **Its IPv4 address**, on the `ip -br addr` line that starts with the rail’s name. In `cx8r1 UP 192.168.101.1/24`, the address is `192.168.101.1`.
The rail name and device are the same on both Stations; only the IPv4 address differs.
Next, create `~/glm53.env` on each Station. This file stores the values that later commands use:
```
nano ~/glm53.env
```
Paste the following block and replace each `<...>` placeholder, keeping the quotes, with the values you noted.
```
RANK="<NODE_RANK>" # RANK="0" on Station A, RANK="1" on Station B
HEAD_IP="<STATION_A_IPV4_ADDRESS>" # IPv4 address you noted on Station A; same in both files
WORKER_IP="<STATION_B_IPV4_ADDRESS>" # IPv4 address you noted on Station B; same in both files
RAIL_IFACE="<RAIL_NAME>" # Rail you picked, for example cx8r1; same in both files
RAIL_HCA="<RDMA_DEVICE>" # RDMA device you noted, for example mlx5_1; same in both files
IMG=vllm/vllm-openai:v0.30.0-aarch64
IMG+=@sha256:4864d46625cbc3307623e29ac742030655e27249feba7b97ec925ce4cc4dfb56
MODEL_REPO=nvidia/GLM-5.3-NVFP4
MODEL_REV=e3b8f9f2fad29727dfa95e766c5cac18ea1414bf
MODEL_HOST="$HOME/models/GLM-5.3-NVFP4"
CONTAINER=glm53-full
PORT=8000
if [ "$RANK" = 0 ]; then
NODE_IP=$HEAD_IP; PEER_IP=$WORKER_IP
else
NODE_IP=$WORKER_IP; PEER_IP=$HEAD_IP
fi
GPU_UUID=$(nvidia-smi --query-gpu=uuid,name --format=csv,noheader |
awk -F, '$2 ~ /GB300/ {gsub(/ /,"",$1); print $1; exit}')
```
For example, with the default addresses on `cx8r1`, Station A’s file starts like this. Station B’s file is identical except for `RANK="1"`:
```
RANK="0"
HEAD_IP="192.168.101.1"
WORKER_IP="192.168.101.2"
RAIL_IFACE="cx8r1"
RAIL_HCA="mlx5_1"
```
`MODEL_HOST` is built from your home directory, and Step 2 copies the checkpoint over SSH to the same path on Station B.
| **Note:** Later steps start with `source ~/glm53.env` to load these values. **Run this command again whenever you open a new SSH session.** |
| --- |
On both Stations, load the values and check storage, connectivity, and baseline memory:
```
source ~/glm53.env
mkdir -p "$MODEL_HOST" && df -h "$MODEL_HOST"
ethtool "$RAIL_IFACE"
ip link show dev "$RAIL_IFACE"
ping -I "$RAIL_IFACE" -M do -s 8972 -c 3 "$PEER_IP"
timedatectl show -p NTPSynchronized --value
nvidia-smi
```
These checks catch cabling and addressing mistakes before they surface as NCCL timeouts. Expect a `400000Mb/s` link, MTU 9000, successful jumbo-frame pings, and synchronized time. `nvidia-smi` should show no compute processes on the GB300. On a Station with a display GPU, Xorg can appear on both GPUs with a few MiB.
| **Tip:** Note the GPU memory use shown by `nvidia-smi`; Step 4 compares it with the loaded model. |
| --- |
Step 2 copies the checkpoint from A to B over SSH, so A needs passwordless access to B. On A, create a key without a passphrase (see [SSH keys](https://ubuntu.com/server/docs/how-to/security/openssh-server/#ssh-keys) for details), copy its public key to B after checking B’s host fingerprint, and confirm the login:
```
ssh-keygen -t ed25519
ssh-copy-id "$WORKER_IP"
ssh -o BatchMode=yes "$WORKER_IP" hostname
```
## Step 2. Download and copy the model
Tensor parallelism requires both ranks to run the same software against the same weights. Start by pulling the pinned image on both Stations:
```
docker pull "$IMG" &&
docker image inspect "$IMG" --format '{{.Architecture}} {{.RepoDigests}}'
```
The pull can take several minutes. Matching arm64 digests mean both ranks run identical software.
On A, download the pinned checkpoint. At about 464 GB, it takes roughly an hour at 1 Gb/s, or about six minutes at 10 Gb/s:
```
mkdir -p "$MODEL_HOST"
docker run --rm --network host -v "$MODEL_HOST:/model" \
--entrypoint bash "$IMG" -lc \
"exec hf download '$MODEL_REPO' --revision '$MODEL_REV' --local-dir /model"
```
When `hf download` prints `Downloaded`, copy the files to B. On A:
```
ssh "$WORKER_IP" "mkdir -p '$MODEL_HOST'" &&
rsync -aH --info=progress2 --exclude '.cache/' \
"$MODEL_HOST/" "$WORKER_IP:$MODEL_HOST/"
```
Each disk keeps the full checkpoint; vLLM partitions the weights across the GPUs at load time, with no further quantization.
On A, compare both copies (the check reads B’s file list over SSH), then validate the checkpoint:
```
(
set -euo pipefail
L=$(find "$MODEL_HOST" -path '*/.cache' -prune -o \
-type f -printf '%P %s\n' | LC_ALL=C sort | sha256sum)
R=$(ssh "$WORKER_IP" "set -o pipefail; find '$MODEL_HOST' \
-path '*/.cache' -prune -o -type f -printf '%P %s\\n' | \
LC_ALL=C sort | sha256sum")
test "$L" =