Practical Guide to Model Selection and Compute Resource Estimation for On-Premises LLM Deployment

    This article provides a practical framework for selecting open-source large language models (LLMs) for on-premises deployment and estimating the required compute resources. It covers a model selection strategy based on parameter scale, a theoretical formula for calculating storage and VRAM usage, measured results from deploying a 110B-parameter model under different quantization schemes, and a recommended workflow for validating hardware requirements using cloud resources before making local purchases.

    Practical Guide to Model Selection and Compute Resource Estimation for On-Premises LLM Deployment

    Why Teams Are Moving LLMs On-Premises

    As open-source LLMs continue to improve rapidly, more developers and enterprises are seriously evaluating on-premises deployment instead of relying solely on cloud-hosted inference APIs. Three main drivers are behind this shift:

    1. Data security and compliance: Industries such as finance, healthcare, and government have strict requirements around data privacy and cross-border data transfer. On-premises deployment ensures data never leaves the internal network.
    2. Cost predictability: For high-frequency inference workloads, the marginal cost of self-hosted inference services is often lower than pay-per-token API calls over the long run.
    3. Deep customization: Local deployment enables fine-tuning, quantization, pruning, knowledge base augmentation, and tighter integration with internal systems such as message queues, logging services, and monitoring/alerting platforms.

    However, the first hurdle in local deployment is not model quality—it is resource estimation. How much storage does the model need? Is the VRAM sufficient? Is the accuracy loss from quantization acceptable? This article walks through a complete resource estimation methodology based on a real deployment test.

    How to Choose an Open-Source Model for Local Deployment

    Before discussing resources, let us clarify the selection logic. Current open-source models that can be deployed locally generally fall into several tiers by parameter count:

    • 1B–4B (single-digit billions): Suitable for edge devices and personal PCs; used for lightweight dialogue and intent recognition. VRAM requirements are typically within a few GB.
    • 7B–14B (tens of billions): The mainstream choice for individual developers and small teams. A consumer-grade GPU with 24GB VRAM can run quantized versions smoothly, offering a balanced trade-off between quality and resource consumption.
    • 30B–70B (tens of billions, higher end): Noticeably stronger reasoning capability; suitable for enterprise scenarios with high answer-quality requirements. Typically requires professional-grade inference GPUs or multi-GPU setups.
    • 100B+ (hundreds of billions): The highest capability ceiling, but with extremely high resource demands. A rigorous resource calculation is mandatory before deployment—this is the main focus of this article.

    The core selection principle is: choose the smallest parameter scale that meets your business requirements. Larger parameters do not necessarily translate into linearly better business outcomes, but resource costs do grow linearly or even super-linearly.

    Storage and VRAM Requirements for a 100B+ Model

    To quantify the real resource consumption of a 100B+ model, a full deployment test was conducted on cloud compute resources using an open-source conversational model with 110 billion parameters. Storage and VRAM usage were measured under three scenarios: no quantization, 8-bit quantization, and 4-bit quantization.

    3.1 Theoretical Conversion Method

    The theoretical storage footprint of model weights can be estimated with a simple formula:

    1. Storage ≈ Number of parameters × Bytes per parameter
    • FP16/BF16 precision: 2 bytes per parameter
    • INT8 quantization: ~1 byte per parameter
    • INT4 quantization: ~0.5 bytes per parameter

    Using the 110B model as an example:

    Precision Scheme Theoretical Weight Size Actual Storage Requirement (including shards, configs, etc.)
    No quantization (FP16) ~220GB 230GB+
    8-bit quantization ~110GB ~120GB
    4-bit quantization ~55GB ~60GB

    Note that downloaded model files are typically stored as shards. Additional space is needed for weight index files, configuration files, and temporary runtime space. Plan disk capacity with at least 20% headroom above the theoretical value.

    3.2 Measured VRAM Consumption

    VRAM usage consists of two parts: the model weights themselves and KV cache plus intermediate activations during inference. Measured results align well with the theoretical estimates, but KV cache grows significantly with context length and concurrent requests:

    • No quantization: Loading the weights alone requires over 220GB of VRAM. This means multiple 80GB professional inference GPUs are needed (e.g., four 80GB cards just to fit the weights, with no headroom for KV cache).
    • 8-bit quantization: Weights are compressed to ~110GB. Two to three 80GB cards, or four 48GB cards, can handle it. This is the most common compromise between quality and cost.
    • 4-bit quantization: Weights are ~55GB. A single 80GB card or two 48GB cards can run it. VRAM pressure drops significantly, but output quality may show perceptible degradation on long-text and complex reasoning tasks.

    One important lesson from practice: KV cache can consume tens of additional GB of VRAM in long-context scenarios. When estimating VRAM, always reserve at least 20–30% buffer above the weight footprint, based on your expected maximum context length and concurrent request volume.

    Recommendations on Quantization Trade-offs

    Quantization is the most effective way to lower the barrier to local deployment, but it is not lossless compression. The following principles are recommended in practice:

    1. 8-bit is usually the sweet spot: On most tasks, 8-bit quantization keeps accuracy loss within about 1 percentage point while halving VRAM usage—an excellent cost-performance ratio.
    2. 4-bit is for resource-constrained scenarios: Use it when running a 10B+ model on a single consumer GPU or for edge deployment. Be cautious for high-precision tasks such as mathematical reasoning and code generation; validate against your business evaluation set first.
    3. Check quantization format compatibility: Different inference frameworks support different quantization formats. Before deployment, confirm that the inference engine, acceleration library, and quantization format are compatible, to avoid the situation where “the model downloads but cannot run.”

    Validating Deployment with Cloud Resources Before Hardware Purchase

    For 100B+ models requiring hundreds of GB of storage and multiple professional GPUs, buying hardware directly carries significant risk. A safer approach is: conduct a complete deployment validation using elastic cloud compute resources first, then decide on the local hardware procurement plan. The recommended workflow is:

    1. Provision GPU instances with large attached cloud disks on a cloud platform. Plan disk capacity as “model weight size × 1.5.”
    2. Pull the model weights and complete the loading test. Record cold-start time and peak VRAM usage.
    3. Run load tests with realistic business traffic. Observe VRAM usage and latency curves under different concurrency levels and context lengths.
    4. Use the load test results to derive the local hardware configuration and build a procurement list.

    This approach turns “guesswork hardware purchasing” into “data-driven decision-making.” The validation cost is typically a small fraction of the hardware procurement cost.

    Summary

    Deploying LLMs on-premises is a systematic undertaking. When selecting a model, work backward from business requirements to find the minimum viable parameter scale. When estimating resources, remember the “parameters × bytes per parameter” formula and reserve headroom for KV cache. For quantization, prioritize the 8-bit sweet spot. Before purchasing hardware, validate the deployment using cloud resources. With this methodology, you can approach any open-source model—regardless of parameter scale—with clarity and confidence.