Local Deployment of Large Models on a Four-Node GB10 Cluster: Architecture and Benchmarking

    This article examines a practical reference setup for privately deploying large parameter models on-premises: four desktop-class Grace Blackwell compute nodes connected through a single high-speed switch. It covers the hardware resource profile, how unified memory changes the deployment model compared with conventional multi-GPU servers, why a switched star topology with RDMA/RoCE is preferable to direct node-to-node links, and how to structure model loading with tiered storage and tensor, pipeline, and expert parallelism. It also outlines a reproducible load-testing methodology, the metrics that matter (TTFT, TPOT, throughput, and reliability), observed performance trends across four workload types, and a short framework for deciding whether a local cluster is the right choice versus cloud or managed inference. All commands and parameters are kept as illustrative placeholders to be adjusted per environment.

    1. Why On-Premises Deployment of Large Models Is Back in Focus

    Over the past two years, gains in model capability have come mainly from scaling parameters and training data, while inference deployment has stayed relatively uniform: calling a cloud API. As enterprise data compliance requirements tighten, as teams want more predictable inference costs, and as edge and intranet scenarios multiply, running models privately on owned compute has become a recurring topic in architecture reviews.

    The core value of on-premises deployment comes down to three points:

    • Data stays in the network: sensitive documents, code repositories, and customer information never leave the intranet.
    • Predictable cost: a one-time hardware investment buys long-term, forecastable inference spend, avoiding the volatility of usage-based billing.
    • Stable latency: intranet links jitter far less than the public internet, so interactive applications feel more consistent.

    Going local is not free, though. Large parameter models impose hard requirements on memory capacity, inter-card bandwidth, and parallelism strategy. A single machine often cannot hold them, which forces a multi-node distributed inference path. This article uses a typical configuration — four desktop-class Grace Blackwell compute nodes plus one high-speed switch — as a sample to discuss deployment architecture, model loading, load-testing methodology, and measured behavior.

    2. Deployment Architecture: Unified Memory Meets Switched Networking

    2.1 Hardware Form Factor and Resource Profile

    The sample configuration breaks down roughly as follows (used to convey scale, not specific product specifications):

    Dimension Configuration
    Compute nodes 4 Grace Blackwell form-factor nodes
    CPU 20 ARM cores per node, 80 cores total
    GPU architecture Blackwell generation
    Shared memory 512GB LPDDR5X unified memory in total
    Theoretical compute Up to roughly 4 PFLOPS of sparse NVFP4
    Storage 8TB NVMe SSD in total
    Network Up to 200Gbps-class NIC per node
    Interconnect 400G-class high-speed switch with RDMA/RoCE support
    Inference engine Mainstream open-source inference framework compatible with the OpenAI API specification
    Model precision Native FP8 and FP4 mixed precision
    Context length Million-token scale

    The defining characteristic of this setup is not peak compute but “large unified memory capacity plus high-bandwidth interconnect.” For MoE models, whether the model fits and whether it can be swapped in and out efficiently after fitting matters more for real throughput than paper TFLOPS.

    2.2 How Unified Memory Changes the Deployment Model

    In conventional multi-GPU servers, memory is the scarce resource. Model weights must be sharded precisely across cards, and uneven sharding means one card runs out of memory first. Under a unified memory architecture, the CPU and GPUs share the same address space, so weights can be distributed at node granularity. The scheduler no longer has to watch per-card headroom closely, and deployment complexity drops noticeably.

    A new bottleneck arrives with it: memory bandwidth. Unified memory wins clearly on capacity but trails high-bandwidth memory on bandwidth, so the decode phase (token-by-token generation) tends to become bandwidth-bound. Common engineering responses:

    • Raise the degree of parallelism so a single request’s weight reads are spread across multiple nodes.
    • Improve batching efficiency, using continuous batching to overlap compute and memory access across requests.
    • Offload memory-access-heavy lookup structures to reduce resident memory usage.

    Multi-node inference communication is dominated by tensor-parallel AllReduce/AllGather, which is frequent and latency-sensitive. A switched star topology offers three practical benefits over direct node-to-node links:

    1. The topology stays clear, and cabling grows linearly with node count rather than quadratically.
    2. A failure in any one node does not break links between the remaining nodes.
    3. Each node carries only its own traffic and does not relay data for others, so no “forwarding node” becomes a bandwidth bottleneck.

    RoCE networking with RDMA support lets GPU memory data move directly between nodes, bypassing the CPU and the kernel protocol stack to cut copy overhead and CPU usage. One caveat: RoCE is sensitive to network configuration. Priority flow control and congestion control must be enabled correctly on the switch side, or packet loss and throughput collapse will show up under heavy load testing.

    3. Model Deployment: Tiered Storage and Parallelism Strategy

    3.1 Tiered Storage: Weights in Memory, Lookups on SSD

    Beyond attention and expert weights, large MoE models contain sizable lookup structures. Offloading this relatively sparsely accessed data to local NVMe SSD frees a large amount of memory for KV Cache and batching, which is a direct way to raise effective concurrency.

    Key points for putting tiering into practice:

    • Define hot and cold tiers clearly: keep frequently accessed weights resident in memory, and place low-frequency lookups and cold data on SSD.
    • Reserve memory headroom: KV Cache grows linearly with context length and concurrency, so a safety margin is mandatory.
    • Monitor swap-in and swap-out: if SSD reads become a hotspot, the tier boundary was drawn wrong and needs re-evaluation.

    An illustrative capacity estimation logic (the method only, not specific numbers):

    1. Available memory = total unified memory - resident weights - runtime overhead
    2. KV Cache demand ≈ layers × 2 × sequence length × hidden dimension × bytes per precision × concurrency
    3. If KV Cache demand > available memory, reduce concurrency, shorten context, or increase the offload ratio

    2.2 Choosing a Parallelism Strategy

    Three parallelism approaches are common in multi-node inference, and in practice they are often combined:

    • Tensor parallelism (TP): shards a single layer’s weights across nodes; heavy communication, suited to intra-node or high-speed interconnect scenarios.
    • Pipeline parallelism (PP): splits by layer; light communication but introduces bubbles, suited to cross-node deployment.
    • Expert parallelism (EP): for MoE, distributes different experts across nodes; routing overhead and load balancing are the key concerns.

    A minimal runnable service launch example (parameters are placeholders and must be adjusted to the actual environment):

    1. python -m vllm.entrypoints.openai.api_server \
    2. --model /models/large-moe-model \
    3. --tensor-parallel-size 4 \
    4. --pipeline-parallel-size 1 \
    5. --enable-expert-parallel \
    6. --kv-cache-dtype fp8 \
    7. --max-model-len 1048576 \
    8. --gpu-memory-utilization 0.90 \
    9. --host 0.0.0.0 --port 8000

    After startup, validate the path with a short prompt first, then scale context length and concurrency up gradually while watching memory watermarks and time-to-first-token changes.

    4. Load-Testing Methodology: Making Results Reproducible

    The value of load testing lies in reproducibility, not in flattering numbers. Fix the following variables: model precision, context length, input and output length distribution, concurrency, sampling parameters (temperature, top_p), and whether prefix caching is enabled.

    Common metric definitions:

    • TTFT (time to first token): drives perceived interactivity; affected by prefill compute and queueing.
    • TPOT (time per output token): drives generation smoothness; mainly affected by memory bandwidth and batch size.
    • Throughput (tokens/s): affected by batching efficiency and degree of parallelism.
    • Reliability: stability and error rate under long contexts.

    The test matrix should cover four scenario types: everyday Q&A (short input, short output), document processing (long input, short output), complex reasoning (long input, long output), and code and agent workloads (multi-turn tool calls, structured output). Use at least three concurrency levels per scenario, and take the median rather than the mean so long tails do not distort conclusions.

    5. Measured Behavior and Practical Takeaways

    On the four-node configuration, the following general patterns hold (trends are described; no specific numbers are promised):

    • Short Q&A has the lowest latency, with the bottleneck in scheduling and queueing; TPOT stays relatively stable as concurrency rises.
    • Long-document scenarios consume substantial compute in the prefill phase, TTFT rises noticeably, and prefix cache hit rate has the largest effect on the experience.
    • Complex long-output scenarios enter the bandwidth-bound region, throughput growth flattens, and adding more concurrency only lengthens per-request latency.
    • Code and agent scenarios demand stable structured output; enabling constrained decoding and capping maximum generation length helps avoid unproductive long tails.

    Summary of engineering recommendations:

    1. Do capacity planning before performance tuning; define context length and concurrency targets first.
    2. On the networking side, get RDMA configuration correct before tuning inference parameters.
    3. Trade tiered offloading for concurrency, but keep monitoring SSD read hotspots.
    4. Build baseline load-test scripts and put them under version control so hardware or framework upgrades can be regression-tested quickly.
    5. Put a gateway layer in front of production, handling authentication, rate limiting, logging, and metrics collection to make troubleshooting easier.

    6. A Framework for the Build-versus-Cloud Decision

    Four questions are enough to self-check whether a local four-node cluster fits: must the data stay on the intranet; is daily request volume and peak concurrency high enough to amortize the hardware cost; does the workload genuinely need million-token context; does the team have distributed inference operations capability. If the answers are yes, a local cluster has clear advantages in compliance and cost. If not, general-purpose cloud compute or a managed inference service is usually more economical. Baidu AI Cloud typically offers a combination of general-purpose compute, container platforms, and monitoring, alerting, and logging services for these scenarios, and can be included in the evaluation as a comparison baseline.