LLM VRAM Tiered Placement: A Practical Guide for Private Deployment
This guide explains why private LLM deployments often fail due to insufficient VRAM capacity rather than compute, and how to solve it by classifying parameters into three types: activated parameters, routed expert parameters, and conditional memory lookup parameters. You will learn why lookup tables can reside in host memory, how to estimate capacity with a practical formula, why sliding window attention reduces KV cache pressure, and what the U-shaped curve reveals about the optimal memory-to-compute ratio, along with a deployment checklist.
1. The Starting Problem: Private Deployment Usually Fails on Capacity, Not Compute
When moving large models onto owned hardware, the most common failure is not a shortage of peak compute but simply “it does not fit.” Once model parameter count, cache usage, runtime fragmentation, and framework overhead are added together, an accelerator with fixed VRAM capacity runs out quickly, forcing a fallback to a smaller model with degraded quality. Solving this properly requires breaking the coarse question of “how many parameters does the model have” into “how is each class of parameters accessed, and which storage tier should it reside in.”
Traditional model cards usually report only two numbers: total parameters and activated parameters. With the rise of Mixture-of-Experts (MoE) architectures, the industry has adopted the convention of describing sparsity as “how many B in total, and how many B are actually used per token.” This framing assumes that all parameters are accessed in roughly the same way—dense matrix multiplication—and therefore should all be placed in VRAM whenever possible. Once conditional memory-based lookup modules are introduced, that assumption no longer holds.
2. Classify Parameters into Three Types, Not Two
Conditional memory modules (often referred to in the industry as Engram-like structures) are essentially lookup structures that retrieve a small number of rows by index. Their design has been systematically discussed in several public studies this year. Their defining characteristic is that each token touches only a tiny fraction of the data, with a fixed, contiguous access pattern and almost no floating-point computation. This access profile is completely different from that of expert layers—experts are sparse, but once a token is routed to one, a full matrix multiplication still runs, placing simultaneous demands on both compute and bandwidth.
Accordingly, a deployable sparse model can be divided more precisely into three parameter classes:
- Activated parameters: Every token necessarily participates in computing them. At the scale of tens of billions, they must stay resident in VRAM because they determine the per-token compute floor and latency baseline.
- Routed expert parameters: Used intermittently based on gating results. This is the most worthwhile region to shift between VRAM and host memory, and it needs optimization for hit locality.
- Conditional memory lookup parameters: Lookup only, no computation. They can reach the scale of hundreds of billions and can be placed in host memory with limited impact on end-to-end speed.
The direct benefit of this classification is that the VRAM budget is freed up to carry the parts that genuinely consume compute, and the number “parameter count” is no longer equivalent to “VRAM requirement.”
3. Why Lookup Parameters Can Live in Memory
Whether a module can leave VRAM depends not on how large it is but on its arithmetic intensity (the number of floating-point operations per byte of data) and its access locality.
- Expert layers have relatively high arithmetic intensity: a single hit reads an entire weight block and performs multiply-accumulate, so insufficient bandwidth directly lengthens latency.
- Lookup modules have arithmetic intensity close to zero: read one row, assemble one row, with the bottleneck being small random reads rather than throughput bandwidth.
- Lookup indices often appear in clusters within a single forward pass, so prefetching and batched clustering can approximate random access as sequential access.
Placing them in system memory, which offers large capacity at low unit cost, is therefore a tradeoff that fits the hardware cost structure. In engineering practice, three things usually need to work together: index clustering and batched retrieval, page locking to prevent swapping out, and tiering by热度—hot rows kept in a memory cache, cold rows falling back to local storage.
4. How to Estimate Capacity: A Formula You Can Apply Directly
Let total VRAM be V_bytes, framework and activation overhead be O, activated parameters be P_a (in bytes), offloadable expert parameters be P_e, lookup parameters be P_m (located in host memory, not occupying VRAM), and sliding window attention compress the cache to r times its original size. A rough feasibility check is then:
def fits(V_bytes, O, P_a, P_e_offload_ratio, kv_bytes, r):resident_experts = P_e * (1 - P_e_offload_ratio)return O + P_a + resident_experts + kv_bytes * r <= V_bytes
This formula shows that the three levers for increasing the runnable model size are: reducing activated parameters, increasing the expert offload ratio, and compressing the cache. The first two depend on architecture design; the third depends on the attention mechanism.
5. Attention Shape: Why Sliding Window Pays Off
Cache usage grows linearly with context length and is the main source of VRAM pressure in long-context scenarios. With sliding window attention, each token only needs to retain keys and values within a fixed window, so cache size shifts from “proportional to sequence length” to “proportional to window size,” compressing to roughly one quarter of the original under common configurations. The cost is that ultra-long-range dependencies must be compensated for through hierarchical design—for example, keeping global attention in a few layers while the rest use local windows—striking a balance between quality and footprint.
6. What the U-Shaped Curve Actually Means
Regarding how many parameters the conditional memory module should occupy, experiments show a U-shaped curve: after counting lookup parameters in the total, a ratio near one third yields the best overall metric. Lowering that ratio further reduces VRAM pressure, but the model needs more computation to compensate for the missing memory, and compute efficiency actually drops.
This curve carries value on two levels. The first is the ratio question: there is a substitution relationship between memory and compute, the substitution rate is not constant, and therefore a single optimal point exists. The second is the deployment question: once the optimal ratio is fixed, “how large an effective model can a machine with limited VRAM but ample memory hold at most” is determined at the same time. When asked whether a device with large VRAM plus very large memory can run it, the answer is yes—and that yes comes from budget accounting done at the design stage, not from improvised patching before going live.
7. Deployment Checklist
- Measure the access profile first, then decide placement: tally the arithmetic intensity and hit distribution of each parameter class; do not decide based on parameter count alone.
- Size host memory for “lookup parameters + offloaded experts + headroom,” and reserve space for page locking.
- Make the offload ratio configurable, and sweep it against a real business prompt distribution rather than a fixed value.
- Monitor three metrics: peak VRAM, host memory bandwidth utilization, and swap-in latency caused by expert misses.
- If device memory bandwidth is low, design the architecture and parallelism strategy separately; do not simply scale down a cloud large model proportionally.
- In container platforms or private environments, mount model weights, cache directories, and logs on different media to avoid storage contention.
8. Conclusion
Expanding parameters from “two classes” to “three” essentially transforms the deployment problem from a capacity problem into a storage tier scheduling problem. When activated parameters, expert parameters, and lookup parameters each land on the most suitable medium, VRAM is no longer the sole ceiling, and the effective model size a single card can carry improves noticeably. For teams doing private deployment on owned hardware, this tiered approach is more actionable than simply pursuing a sparser structure, and it aligns more closely with the real hardware cost curve.
