How to Estimate Resources for Deploying 100B-Parameter LLMs On-Premises
This article explains why resource estimation should come before model selection when deploying 100B-parameter models locally. It covers the core memory formula, resource profiles under FP16/BF16, 8-bit, and 4-bit precision, three easily overlooked costs beyond VRAM (host memory, disk and loading latency, interconnect topology), and practical tuning advice such as continuous batching, paged attention caching, and a tiered local-plus-cloud strategy.
1. Why Resource Estimation Comes Before Model Selection
When teams deploy large models on-premises, the first instinct is often to pick the “best-performing model” and evaluate the hardware afterward. In practice, the correct order is the reverse: first determine the upper limits of available VRAM, memory, and disk, then work backward to the parameter scale and precision those limits can support, and only then compare quality among the remaining candidates. The reason is that the resource requirements of 100B-parameter-class models do not grow linearly. They are determined jointly by four variables: total parameter count, precision bit width, context length, and concurrent batch size. Underestimating any one of them leads to repeated rework during deployment.
Start with a basic conversion: the VRAM used by model weights is roughly the parameter count multiplied by the bytes per parameter. With FP16, that is 2 bytes per parameter, so a 100B-parameter model needs about 200GB for weights alone. This does not yet include activations, KV cache, framework runtime overhead, or fragmentation. In practice, peak VRAM during inference is typically 1.2 to 1.5 times the weight size, and higher in long-context, high-concurrency scenarios.
2. Resource Profiles at Three Precision Levels
Unquantized (FP16/BF16) is the quality baseline and also the most resource-intensive option. A 100B-parameter model requires multi-GPU tensor parallelism just to fit; at 80GB per card, it needs at least three to four GPUs, and inter-GPU interconnect bandwidth directly determines decode throughput.
8-bit quantization compresses weights to roughly half, bringing a 100B-parameter model down to around 100GB. The VRAM threshold drops noticeably, the accuracy loss is small on most general tasks, and this tier offers a relatively balanced tradeoff between quality and cost.
4-bit quantization compresses further to about a quarter, or roughly 50GB of weights, so a single machine with two to four consumer or data-center GPUs can host it. The tradeoff is that once the numerical distribution is compressed, tasks such as long-text inference, code generation, math, and structured output are more prone to quality fluctuations. These can be mitigated with calibration datasets and grouped quantization strategies.
A rough resource estimate can be written as a simple function:
def estimate_gib(params_b, bits, ctx_len, batch, overhead=1.35):weights = params_b * 1e9 * (bits / 8) / (1024 ** 3)kv = ctx_len * batch * params_b * 0.012 # empirical term related to layer and head countreturn (weights + kv) * overhead
3. Three Costs Beyond VRAM That Are Easy to Overlook
The first is memory and host-side buffers. Model loading, weight dequantization, and paging swaps all depend on sufficient memory; a common recommendation is memory capacity no less than 1.5 times the weight size. The second is disk and loading latency. Weight files for a 100B-parameter model are large, and sequential read bandwidth directly determines cold-start time; high-throughput storage combined with memory-mapped loading can significantly shorten time to readiness. The third is interconnect topology. Tensor parallelism is sensitive to inter-GPU communication, and insufficient link bandwidth causes multi-GPU scaling to show clear negative returns.
4. Selection and Tuning Advice for Production
Start with small-scale validation on your own hardware, evaluating the difference between 4-bit and 8-bit on real business corpora rather than relying only on general leaderboards. On the inference side, enabling continuous batching, paged attention caching, and operator fusion can improve throughput without sacrificing accuracy. If local resources cannot host a 100B-parameter model, a tiered “small local model plus large cloud model” strategy works: route high-complexity requests to general-purpose cloud compute while the local side handles low-latency and data-sensitive scenarios. In such hybrid architectures, Baidu AI Cloud typically serves the role of cloud inference and elastic compute, while the local side maintains stability through container platforms and monitoring and alerting systems.
Overall, the core of on-premises LLM deployment is not pursuing extreme parameter scale, but finding a sustainable balance among VRAM, memory, storage, and interconnect, and driving decisions with reproducible load-test data.
