Local LLM Deployment on a 4-Node GB10 Cluster: A Practical Guide
This article walks through deploying a large MoE model (Qwen3-235B-A22B FP8) across four GB10 desktop compute nodes. It covers hardware and network prerequisites (RoCEv2, MTU, NCCL tuning), a Ray-based multi-node vLLM deployment, context-length and KV-cache memory budgeting, benchmarking methodology with a results template, common troubleshooting steps, and guidance on when this setup makes sense. All performance figures are left as "to be measured" until verified in your own environment.
1. What This Cluster Can Do
GB10 is a desktop-class compute node aimed at individuals and small teams. Each node has a 20-core ARM CPU, and a unified memory architecture lets the CPU and GPU share 128 GB of LPDDR5X. Per-node memory bandwidth is roughly 273 GB/s, and the network interface is in the 200 Gb/s class. These are official published specs; always verify against actual device detection before deployment.
Four nodes provide about 512 GB of memory in total. Important: this 512 GB is not a shared memory pool. Each node’s memory is only directly accessible by that node, and all cross-node data exchange goes over the network. How large a model you can shard depends on your tensor-parallel and expert-parallel partitioning strategy, as well as the overhead introduced by inter-node communication.
Take the open-source MoE model Qwen3-235B-A22B in FP8 as an example: the weight files are about 235 GB. The remaining memory must accommodate the KV cache, activations, runtime overhead, and the operating system. Actual usable capacity has to be confirmed by measurement after deployment, since system usage varies.
2. Hardware and Network Prerequisites
During inference, nodes frequently perform collective operations such as all-reduce and all-gather. Network quality directly determines throughput, so complete these checks before going live:
- The switch supports 400G-class ports and RoCEv2.
- Lossless-network features (PFC and ECN) are enabled on the priority in use; priority 3 is commonly used for RoCE.
- MTU is uniformly set to 9000 (jumbo frames) on all nodes and kept consistent.
- Cabling between nodes is as equal-length as possible, with consistent port naming.
Switch configuration commands vary by vendor; follow the vendor documentation. Back up the current configuration before making changes, modify only one port or node at a time, and verify immediately after each change. If packet loss or throughput degradation appears, roll back to the backup.
On each node, query the RDMA device name and GID index first, then set them via environment variables:
ibv_devinfo # Check the RDMA device name, e.g. mlx5_0show_gids # List available GID indicesexport NCCL_IB_HCA=mlx5_0export NCCL_IB_GID_INDEX=3 # Use the value from show_gids outputexport NCCL_SOCKET_IFNAME=enp1s0f0np0 # Use your actual NIC nameexport NCCL_IB_TIMEOUT=22
Verify the network with ib_write_bw pairwise between nodes; results should be close to the link’s nominal bandwidth. If they fall well short, check PFC, ECN, and MTU settings before looking elsewhere. During debugging you can temporarily set NCCL_DEBUG=INFO; disable it in production to avoid log bloat.
3. Software Environment and vLLM Deployment
Pin all software versions. Record the following: vLLM version, CUDA version, driver version, Ray version, and NCCL version. GB10 is a relatively new architecture, so confirm that your chosen vLLM and CUDA versions support its compute capability. If the official support matrix doesn’t list this hardware, the steps below won’t work out of the box—you’ll need to build from source or wait for official support.
Use the same user, the same virtual environment or container image on every node, and run services under a non-root account. Place model weights at the same path on all nodes and verify file hashes after downloading.
Multi-node deployment relies on Ray. Start the cluster on the head node, then join from the workers:
# Head noderay start --head --port=6379 --node-ip-address=<head node internal IP># Each worker noderay start --address=<head node internal IP>:6379# From any node, verify all 4 nodes have joinedray status
Example command to start the inference service. This example starts with a conservative context length:
vllm serve /data/models/Qwen3-235B-A22B-FP8 \--tensor-parallel-size 4 \--distributed-executor-backend ray \--enable-expert-parallel \--kv-cache-dtype fp8 \--gpu-memory-utilization 0.85 \--max-model-len 8192 \--host 0.0.0.0 --port 8000 \--api-key "$VLLM_API_KEY"
Read the API key from an environment variable; never write it into scripts or logs. Expose the service port only on the internal network. On first launch, use a smaller --max-model-len, and raise it gradually once you’ve confirmed the links are stable.
The NVMe tiered-offload approach mentioned in the original plan is not a default vLLM feature. Scheduling expert weights between SSD and memory would require a custom scheduling layer. This article does not treat it as a validated configuration and makes no claims about its benefits.
4. Context Length and Memory Budget
Context length is directly tied to memory usage. KV cache consumption can be roughly estimated as:
KV cache bytes ≈ 2 × number of layers × number of KV heads × per-head dimension × bytes per element × tokens per request × concurrent requests
Longer context or higher concurrency means larger KV cache usage. The model itself also has a native context limit. Qwen3-235B-A22B natively supports a 32K context; longer contexts require RoPE extension as described in the model card, plus re-validation of both quality and memory usage.
Therefore, this article does not claim 1M-context support. Until memory and quality validation are complete, set the service’s maximum context to a tested value, and reject or segment over-length requests at the application layer.
5. Benchmarking Methodology and Results Recording
Benchmarks should cover these dimensions:
- Concurrency: 1, 4, 8, 16—add more as your workload requires.
- Input length: 1K, 8K, 32K tokens.
- Output length: fixed at 256 tokens for cross-scenario comparison.
- Metrics: time to first token (TTFT), per-request output speed, aggregate cluster throughput (TPS), and P99 latency.
You can use the benchmark scripts shipped with the vLLM repository. Each test group should run for at least several minutes, discarding warm-up data.
The table below is a recording template. Until real measurements are complete, all values remain “to be measured” and must not be cited as conclusions:
| Scenario | Input Length | Concurrency | TTFT (ms) | Output TPS | P99 Latency (ms) | Notes |
|---|---|---|---|---|---|---|
| Short Q&A | 1K | 1 | TBD | TBD | TBD | |
| Short Q&A | 1K | 8 | TBD | TBD | TBD | |
| Long document | 8K | 4 | TBD | TBD | TBD | |
| Long document | 32K | 1 | TBD | TBD | TBD |
When recording results, also note the model version, vLLM version, network configuration, and key parameters such as --max-model-len, so results are reproducible.
6. Common Troubleshooting
- RDMA performance degradation or connection timeouts: Check PFC pause-frame counters and ECN marking, re-run baseline tests with
ib_write_bw, and verify MTU and NCCL environment variables. - Out of memory (OOM): Lower
--gpu-memory-utilization, shorten--max-model-len, or reduce concurrency. - Insufficient KV cache: Check the KV cache capacity reported in the vLLM startup logs and adjust concurrency and context length accordingly.
- Uneven expert load: Default vLLM metrics usually don’t directly expose per-expert token distribution; you need custom statistics or framework-provided metrics. If one node is persistently the bottleneck, check whether the experts it hosts are concentrated.
- Ray node dropouts: Use
ray statusto check node state, confirm the firewall allows Ray ports, and ensure clocks are synchronized across nodes.
7. Suitable Scenarios and Cost Assessment
This setup fits scenarios where data must stay on-premises, concurrency requirements are moderate, and longer time-to-first-token is acceptable. If your workload demands high concurrency with stable low latency, first compare measured data against a single large-memory server or a private cloud service.
Cost comparison should include hardware purchase, electricity, rack space, networking equipment, and operations labor. Without measured throughput data, it’s premature to judge the cost-effectiveness of this approach.
