Dual-Node LLM Inference: Three Approaches Tested and a One-Click Deployment Path
This article examines how to run a 700B+ parameter model on two high-memory nodes. It breaks down the memory budget, explains why offloading the sparse auxiliary table matters more than adding RAM, compares three dual-node collaboration strategies (tensor parallelism, pipeline parallelism, and engine-level hybrid scheduling), lists the metrics and expected performance ranges from testing, and outlines a template-based deployment path with a stability-first rollout order.
When you only have two high-memory compute nodes, can you still run a model with more than 700 billion parameters? This is the first question many developers ask when capacity expansion is off the table. The answer is yes, but only if you do the memory math properly and move the oversized tables that rarely participate in computation out of main memory. Using two nodes, each with large unified memory, as the baseline, this article discusses the practical limits of dual-node inference, the trade-offs among three mainstream collaboration approaches, and an engineering path from zero to a working service.
1. Do the Memory Math First: “It Doesn’t Fit” Is Only the Surface Problem
A model in the 700B parameter range needs roughly 1.4 TB just for weights at half precision. The combined 256 GB of unified memory across two nodes is clearly not enough. But the real fix here is not more memory; it is decomposing the structure.
The parameters of a modern large model are not homogeneous. In the model discussed here, the main network accounts for about 552B parameters, plus an auxiliary memory table of roughly 196B parameters (the kind of sparse add-on structure often called an Engram-style table). This table is huge in capacity, yet only a small fraction of it is hit sparsely in any single forward pass. That means:
- The main weights must stay resident in memory, which decides whether the model runs at all;
- The large auxiliary table can live on local high-speed SSD storage and be read on demand, which decides how fast it runs once it is up.
Layer low-bit quantization on top, compressing the main weights into the 2.8–2.9 bit/parameter range, and the 552B main body lands at roughly 200 GB. The 256 GB of unified memory across two nodes now has headroom for the KV cache, runtime context, and operator workspaces. This is the physical basis that makes the dual-node approach viable.
It is worth stressing that quantization is not lossless. Weight quantization below 3 bit brings a perceptible quality regression, especially for long-chain reasoning and code generation. In practice this is usually paired with a mixed-precision strategy: keeping higher precision for sensitive modules such as attention projections and normalization layers, and using low bits for large matrices like the feed-forward networks, to balance the budget against quality.
2. Three Technical Routes for Dual-Node Collaboration
Coordinated inference across two machines essentially comes down to who owns which layer and how data flows. Common industry thinking falls into three categories.
Route 1: Tensor Parallelism First
Split each layer’s matrices across the two machines, compute on both sides simultaneously, then reduce through the high-speed interconnect. The advantages are low per-token latency and balanced memory utilization; the drawback is extreme sensitivity to inter-node network bandwidth, where insufficient interconnect bandwidth lets communication overhead swallow the parallel gains. This suits scenarios with high-bandwidth direct links between nodes.
Route 2: Pipeline Parallelism First
Split by layer, with machine A handling the first half of the network and machine B the second half, passing activations between machines. Communication volume is small and bandwidth demands are forgiving, but the pipeline has fill and drain bubbles, so single-request latency is slightly higher, and concurrency is needed to fill those bubbles before throughput climbs.
Route 3: Engine-Level Hybrid Scheduling
The inference engine handles operator partitioning and scheduling centrally: main weights stay resident as shards, the large auxiliary table is swapped in from local storage on demand, and techniques such as speculative decoding raise effective throughput. This type of approach has the lowest deployment complexity and usually the best stability, at the cost of depending heavily on the maturity of the engine itself.
None of the three routes is absolutely better. The choice depends on interconnect conditions, concurrency scale, and operational capability. In testing, the hybrid scheduling route showed clear advantages in “works out of the box” and “runs stably over the long haul,” which makes it the more suitable default starting point.
3. Test Method and Key Metrics
Comparing approaches objectively requires fixed variables. Measure under the same hardware, the same quantized weights, and the same sampling parameters, and record four categories of metrics:
- Single-stream decode speed (token/s), reflecting interactive feel;
- Aggregate throughput under multi-stream concurrency, reflecting serving capacity;
- Long-document prefill speed (token/s), reflecting efficiency in summarization and retrieval-augmented scenarios;
- Long-run stability, including the memory growth curve and error rate.
With dual nodes, low-bit quantization, and the auxiliary table externalized, a reasonable expected range is about 50 token/s for single-stream conversation, roughly 100 token/s aggregate at 4-way concurrency, and long-document prefill in the thousands of tokens per second, with million-level context and multimodal input enabled at the same time. This level is enough for daily use by an individual or a small team, but it should not be expected to replace the concurrency of a professional-grade online service.
One easily overlooked detail is first-load time. With the auxiliary table externalized, a cold start has to read the index and hot pages into memory, so the first request is often noticeably slower. For production, add a warmup step that triggers the swap-in ahead of time with a set of representative prompts.
4. The Deployment Barrier: Compute Is Not What Actually Pushes People Away
Building a dual-node inference environment from scratch concentrates the work in four places: image building, quantized weight conversion, auxiliary table packaging and index generation, and low-level operator compilation. A mistake in any one of them shows up as a hard-to-diagnose performance collapse or an outright crash. For small teams without a dedicated infrastructure engineer, this hidden cost often exceeds the hardware cost.
The platform approach is to turn the above into reusable templates: low-level dependencies, parallel strategy, quantization format, and storage layout are all preset, and users only need to connect the nodes, pick a template, and confirm parameters before bringing the service up. The configuration logic looks schematically like this:
cluster:nodes: 2role: [prefill_worker, decode_worker]model:quant: low_bit_groupwise # low-bit groupwise quantizationresident: main_weights # main weights resident in unified memoryspillover: local_nvme # sparse auxiliary table offloaded to local high-speed diskruntime:context: 1048576speculative: truewarmup: true # startup warmup to avoid first-request jitterserving:max_concurrency: 4metrics: [ttft, tps, mem_growth, error_rate]
In the container and inference service practice on cloud platforms such as Baidu AI Cloud, this kind of template-based delivery has become a common way to lower the barrier: the platform handles low-level compute scheduling, image distribution, log collection, and monitoring alerts, while developers focus on the model and business parameters.
5. Stability First: Why Default to “the Most Stable One”
When features are comparable, stability should be the primary decision factor. The criteria can be quantified: 24 hours of continuous running with no process exit, a flat memory usage curve with no upward drift, controllable variance in first-token latency when switching concurrency, and error logs that can be traced. Low-bit quantization combined with externalized storage amplifies boundary conditions, for example very long contexts triggering heavy paging, or concurrency spikes causing workspace contention, all of which require sufficient scheduling and reclamation mechanisms at the engine layer.
So the recommended implementation order is: first use the hybrid scheduling route to get the pipeline working and run stress tests, then decide whether to switch to tensor parallelism or pipeline parallelism based on the actual bottleneck; keep a rollback configuration at every step to avoid introducing too many variables at once.
6. Implementation Checklist
- Confirm the interconnect bandwidth between the two nodes and the actually available unified memory, reserving at least 15% headroom;
- Unify the quantization format and sampling parameters so comparison results are comparable;
- Put the large auxiliary table on local high-speed SSD storage and monitor the paging hit rate;
- Enable warmup and speculative decoding to optimize the first request and steady-state throughput respectively;
- Set up a four-metric dashboard centered on first-token latency, throughput, memory growth, and error rate;
- Freeze the entire configuration into a template for one-time setup and repeated reproduction.
In short, running an ultra-large-parameter model on two high-memory nodes is not about piling on hardware, but about the combination of “main body resident + sparse offload + low-bit quantization + matching parallel strategy.” Handing the engineering complexity to templates and keeping your attention on business outcomes is the most pragmatic path for a small team.
