LLM Local Deployment: A Practical Guide to VRAM and Workload Evaluation

    This guide explains why GPU count alone cannot answer whether a large MoE model fits on a single node. It covers how to estimate VRAM for Mixture-of-Experts models, the four workload questions to answer before choosing hardware, the hidden costs of parallelism, how to design a reproducible baseline test, and a pre-launch validation checklist. The goal is to help you decide with real context lengths, concurrency, and traffic data rather than parameter counts.

    1. The Short Answer: A Single-Node Reference Path and Its Limits

    The practical answer to “can a next-generation large MoE model (roughly 320 billion total parameters, about 18 billion activated per inference) run on a single node?” is layered:

    • With native low-precision weights (such as Native FP8) and moderate context requirements, 8 H20-class accelerators with 141GB each are a fairly clear single-node reference path.
    • If a full 1M context is a hard requirement, a higher-VRAM, higher-bandwidth configuration such as 8 B200-class GPUs on a single node should be the priority.

    One caveat: this answers “can it start and run stably under controlled conditions,” not “can it support your business.” The second question can only be answered by bringing real workloads into testing.

    That is why I would not reduce the question to “are 8 GPUs enough?” In real local deployments, context length, concurrency, request type (Chat/Coding/Agent/RAG/long documents), and response targets (time to first token, sustained output throughput, tail latency) usually determine the final configuration more than GPU count does.

    2. Why You Cannot Size VRAM Directly from “39B Active”

    The VRAM behavior of large Mixture-of-Experts (MoE) models is fundamentally different from that of dense models. The core mistake is treating “activated parameters” as “weights that must reside in memory.”

    1. Activated parameters describe compute, not residency. Only a small subset of experts is routed and activated in a single forward pass, which determines the compute cost per token. But routing is dynamic, and different tokens may hit different experts, so all expert weights must either stay resident in VRAM or be swappable in quickly.
    2. The VRAM budget has at least four parts: full weights, runtime framework and communication buffers, KV Cache, and fragmentation plus safety margin. Of the first three, KV Cache is the only part that grows linearly with context and concurrency, and it is the easiest to lose control of.
    3. The scale of KV Cache can be understood with an illustrative formula (used only to show the order-of-magnitude relationship, not to represent any specific implementation):
    1. KV_bytes ≈ 2 × layers × kv_heads × head_dim × bytes_per_elem × tokens × batch
    2. where tokens ≈ Σ(input length + generated length)

    As the formula shows, doubling the context and doubling concurrency roughly doubles KV Cache, while weight size stays fixed. This is why “the weights fit” and “the business runs” are two different questions.

    1. Low-precision weights (such as FP8) can significantly reduce weight usage and free up more VRAM for KV Cache, but they do not automatically solve the cache pressure caused by long context and high concurrency.

    3. How to Choose a Configuration: Four Questions to Answer First

    Before discussing specific GPU models, structure the requirements first. This usually saves a round of rework:

    1. Context: Is daily real usage 32K, 128K, or do you genuinely need 256K or even 1M? Is long context an occasional need or the main path? Occasional needs can be avoided through chunking, retrieval augmentation, or summary compression.
    2. Concurrency: What is peak concurrency? A few long requests, or many short ones? The concurrency pattern directly determines the KV Cache peak.
    3. Workload: Which is the main scenario among Chat, Coding, Agent, RAG, and long documents? Agent and RAG typically involve multiple turns, long prompts, and mixed tool calls, creating significantly more pressure than single-turn Q&A.
    4. Response targets: Do you prioritize time to first token (TTFT), or sustained output throughput? The two often pull against each other in batching strategy.

    Write these four items down as concrete numbers and priorities. Only then discuss GPU count and parallelism strategy, and the quality of the discussion will be completely different.

    4. Parallelism Strategy and the Hidden Cost of Runtime Space

    • Tensor parallelism (TP) introduces cross-GPU communication. When inter-GPU interconnect bandwidth is insufficient, too high a TP degree can actually increase latency; whether to use TP8 should be based on real measurements.
    • Expert parallelism (EP) fits the MoE structure better, but it brings communication and load imbalance issues in expert routing, so hotspot experts need attention.
    • The framework’s own VRAM overhead, CUDA graphs/compilation cache, and communication buffers are often overlooked. Reserve a fixed margin in the budget rather than pushing VRAM to the limit.
    • Quantization choices (weight precision, KV Cache precision) affect both accuracy and usage, and should be made on a quality baseline acceptable to the business.

    5. How to Design a Baseline Test on 8×H20

    A set of reference baselines mentioned in the original text (Native FP8, 8 GPUs, TP8, 128K, with optimizations such as MTP and Prefix Cache disabled) shows representative behavior:

    • For short-request scenarios, one type of inference framework performs better in first-token and output throughput;
    • As prompts get longer, another framework has lower TTFT, while its sustained output throughput remains slightly higher.

    There is no need to pick a side upfront. A more reliable approach is to fix variables, enable optimizations one by one, and observe the benefits and costs:

    1. Baseline: speculative decoding off, prefix cache off
    2. Variable 1: enable prefix cache -> observe TTFT gains in multi-turn/shared-prefix scenarios
    3. Variable 2: enable speculative decoding -> observe output throughput and extra VRAM/compute overhead
    4. Variable 3: adjust batching and concurrency limits -> observe the inflection point of tail latency and throughput

    A practical principle: do not max out the context on the first launch. Establish a reproducible baseline first, so when problems appear you know whether to investigate the weights, the cache, or the scheduling layer.

    6. Pre-Launch Validation Checklist

    1. Run A/B tests with a real prompt distribution rather than relying on “who is faster” leaderboards;
    2. Measure TTFT, per-token output latency, sustained throughput, and P95/P99 tail latency separately;
    3. Record peak VRAM and OOM boundaries under different context and concurrency combinations;
    4. Define a fallback strategy: rate limiting, shorter context, switching to a smaller-parameter model, or queuing;
    5. Connect logs, metrics, and alerts to general observability capabilities (logging services, monitoring and alerting) to help identify whether the bottleneck is the cache, scheduling, or hardware.

    Summary: If you only ask “can a single node with 8 GPUs run it,” the answer is fairly clear. If you ask “can this configuration support the business,” you must bring real context, concurrency, and workloads into testing, and make decisions with data rather than parameter scale.