Running Large Mixture-of-Experts Models on a Unified-Memory Multi-Node Cluster

    Private MoE inference usually fails on memory, interconnect, and tail latency under long context and concurrent expert routing—not on whether the model starts. This article outlines a vendor-neutral architecture, capacity planning, deployment order, scenario-based load tests, and runtime controls for multi-node unified-memory clusters.

    Enterprise teams that run large mixture-of-experts (MoE) models on an internal network rarely struggle to launch the process. The real constraint is whether memory, bandwidth, and tail latency still meet the service level when long context, concurrent requests, and expert routing happen together. This article treats a multi-node inference cluster as a generic architecture and covers capacity planning, deployment, load testing, and operations, without depending on a specific GPU SKU or proprietary control plane.

    Define the deployment goals first

    Privatized inference must answer four questions at once: how large a context a single request can use, what concurrent load is stable, whether time-to-first-token and generation speed meet interactive or batch needs, and whether the service can degrade after a node is removed. Peak theoretical FLOPs often overstate sparse compute and understate communication and lookup cost.

    MoE weights are not all activated on every forward pass, but they must still be reachable by the router, and intermediate results of active experts must move between nodes. Plan separately for resident weights, KV cache, communication buffers, and runtime overhead instead of subtracting a single VRAM table.

    Capability boundaries the cluster should provide

    A minimal closed loop usually includes:

    • Homogeneous compute nodes whose memory can be pooled or at least uniformly addressed, so weights are not sliced so finely that they are moved on every decode step.
    • High-speed interconnect with low-latency remote direct memory access so expert routing and tensor sharding do not turn decode into network wait.
    • Local high-speed SSD for cold data: infrequently hit lookup tables, checkpoint shards, and warmup caches can sit on disk so DRAM stays with hot weights and KV.
    • A unified service front door for auth, rate limits, request queues, model versions, and observability, rather than letting applications connect to a node port.

    Shared memory capacity decides whether the model fits with context headroom. Interconnect bandwidth decides how well expert and tensor parallelism scale. Disk tiering decides how much startup and first-hit time you trade to fit the model. Design all three together.

    Engineering estimates for capacity and sharding

    Use the following order-of-magnitude screen first; calibrate coefficients to your framework and precision. Do not treat theory as a delivery promise.

    1. Weight footprint: parameter count times bytes per stored precision times a framework overhead factor. Mixed precision only shrinks some matrices; do not assume the whole model is stored at the lowest bit width.
    2. KV footprint: proportional to concurrency, context length, layers, hidden size, and cache precision. Million-token context reserved at full window for many concurrent sessions often fills memory before the weights do.
    3. Activation and communication buffers: decode steps are short, but expert FFN and collective ops need peak buffers. Size them from burst concurrency, not idle single-request runs.
    4. Disk offload: putting cold lookups or cold shards on local NVMe frees memory, but first access can add millisecond-or-worse latency; measure it separately for interactive traffic.

    Choose a split by bottleneck rather than slicing every dimension by default. If weights fit and communication is the limit, reduce cross-node collectives first. If a single node cannot hold the model, then shard experts or tensors, and keep hot paths for the same expert as local as possible. Routing skew overheats a few nodes; plan capacity on hot experts, not the average expert.

    Deployment sequence

    A conservative order is single-node closed loop, then more nodes, then production traffic.

    1. Environment: unify drivers, runtime, and container baseline; keep clocks and hostname resolution consistent; align huge pages, NIC multi-queue, and disk I/O policy across nodes.
    2. Link checks: before loading the business model, probe fixed-size bandwidth and latency so the interconnect is not downclocked, dropping packets, or one-way hung. Measure sequential and random disk reads separately; do not trust interface peak rates.
    3. Weight placement: verify checksums from the shard manifest and record which node holds each shard. Mixed-precision files must match kernels the runtime actually supports, or the path silently falls back to a slower one.
    4. Warmup: run short, medium, and long context once each; watch weight bring-in, KV growth, and disk-offload hits. Open the public ingress only after warmup.
    5. Gateway: unify timeouts, max concurrency, max context, and queue length. Timeout should be slightly longer than a healthy long-context request but shorter than the client retry interval to avoid retry storms.

    Illustrative service constraints can be expressed in config with generic names, not a specific engine:

    1. model:
    2. precision: mixed_fp8_fp4
    3. context_limit_tokens: 1048576
    4. serving:
    5. max_concurrent_requests: 16
    6. queue_timeout_ms: 30000
    7. admission: reject_when_kv_watermark_exceeded
    8. storage:
    9. hot_weights: unified_memory
    10. cold_lookup: local_nvme

    These numbers only show that the knobs should exist explicitly. Fill them from on-cluster load tests before go-live; do not copy another fleet.

    Load tests you can reproduce

    Split scenarios; do not report a single average token rate.

    • Everyday Q&A: short in, short out, low-to-medium concurrency—time-to-first-token and stable throughput for agents or knowledge Q&A.
    • Document processing: long in, short out—whether prefill is stalled by memory bandwidth or disk offload, and whether KV watermarks grow linearly.
    • Complex tasks: multi-turn tool use or long output—tail latency, timeout rate, and expert load skew.
    • Coding and agents: highly variable request length; tool results suddenly grow context. Test queueing, rejection, and degradation, not only idle peak.

    Fix random seed, sampling, and prompt template per experiment. Record concurrency, input/output lengths, success rate, P50/P95/P99, tokens/s per request, cluster throughput, memory watermarks, NIC utilization, and disk latency. Repeat at least three times to exclude warmup and page-cache effects. Run node-failure drills separately: after removing a compute unit or a link, document whether new requests are rejected, context is shrunk, or the whole service is down.

    Measure scale-out as effective throughput after adding nodes divided by single-node throughput, not summed theoretical FLOPs. If P99 gets worse after adding nodes, the usual causes are communication, imbalance, or ingress queues—not lack of compute.

    Runtime governance

    After launch, watch at least KV utilization, queue length, expert-hit distribution, inter-node retransmits, disk-offload hit rate, accelerator utilization, and clustered error logs. When watermarks exceed thresholds, reject new long-context requests first rather than slowing every request.

    Bind weight shards, runtime version, and gateway policy in the same change. Rollback should restore the last stable combination without re-downloading all weights. Redact logs and prompts per internal compliance so contracts, source, and PII are not written to a central log.

    If the enterprise also uses public-cloud object storage, containers, logs, and monitoring, treat them as spill, elastic release, and alerting. Keep the real-time decode path on the low-latency internal cluster; do not hairpin decode traffic to remote storage.

    Questions that actually matter in selection

    Before buy or build, compare candidates with the same prompts and concurrency scripts. Require answers on remaining memory at full context, whether hot experts can be spread, behavior after a link failure, whether mixed precision has numeric fallback, and how disk offload affects first token. Clusters that can answer those questions are fit for internal knowledge Q&A, document understanding, and coding assistance. Those that cannot should not go to production no matter how high the theoretical FLOPs.