Local LLM Deployment: A Low-VRAM Quantization Selection Guide

    This guide explains how to choose a quantization tier for running large language models locally under tight VRAM budgets. It maps four mixed-precision tiers to their approximate VRAM usage and score retention, explains why keeping the vocabulary at full precision matters, describes how mixed quantization allocates bits per tensor, and outlines a practical selection and validation workflow. Readers will learn to treat VRAM capacity as the primary constraint and verify choices with real measurements.

    1. Background: The Real Bottleneck Is Your VRAM Budget

    When you run large language models on consumer GPUs, the limiting factor is usually VRAM capacity rather than compute. A few years ago, an 8 GB card could mostly only watch others run models, but recent quantization approaches have made this tier practically usable. This article discusses the general technical approach represented by a set of recently released mixed-precision quantization files. It does not cover any specific product, and all numbers should be treated as illustrative data from the publisher’s model card and public papers. Always rely on your own measurements.

    Here is the conclusion up front: 8 GB of VRAM can run the smallest tier; 10 GB is suitable for the third tier; and 12 GB or more can handle the recommended tier. What this approach really changes is VRAM usage. The quantization algorithm itself is not a breakthrough.

    2. Mapping Quantization Tiers to VRAM Usage

    Using a model that has already been pre-compressed, with expert weights in 4-bit float and roughly 19 GB across 24 shards, as a baseline, the four mixed-quantization tiers perform roughly as follows:

    • Smallest tier: about 2.75 bits on average, about 8.05 GB on the GPU, about 8.98 GB including the vocabulary, retaining an average score of about 94.3;
    • Second tier: about 3 bits, about 9.79 GB, retaining about 98;
    • Third tier: about 3.25 bits, about 10.61 GB, retaining about 97.7;
    • Recommended tier: about 3.5 bits, about 11.43 GB, retaining about 99.2.

    For comparison, traditional 4-bit quantization requires about 16 GB on this model. The improvement is clear: an 8 GB card goes from unable to run the model to able to run it, at the cost of an average score drop of about six points. When selecting a tier, treat “does it fit in VRAM” as the first constraint, then pick the highest-scoring tier that satisfies it.

    3. Why the Vocabulary Keeps Full Precision

    This point is worth covering before the scores. The vocabulary is essentially a lookup table: you input a token and look up a row. It does not participate in matrix multiplication, so its precision has almost no effect on inference speed. In mainstream inference frameworks, this layer typically stays resident in system memory regardless of how layers are assigned to the GPU, and does not consume VRAM.

    Compressing the vocabulary to 4 bits can save about 0.7 GB of download size, but it saves not a single byte of VRAM and introduces a deviation in the first-layer input compared with the original. The cost of keeping full precision is only a slight increase in disk usage, while the benefit is that the input distribution matches the original model exactly. This is safer for tasks that are sensitive at the first layer.

    4. Where the Saved VRAM Comes From

    Traditional quantization is one-size-fits-all: the entire model uses a single format, such as the common Q4_K_M naming. Mixed quantization takes a different approach: each tensor individually selects a format, assembling a configuration within a given total budget.

    The method is an offline search: first compress each tensor under every candidate format to build a candidate pool; then, under the total budget constraint, select a combination that minimizes overall error. Repositories usually publish the per-tensor allocation results. A typical phenomenon is that the same attention weight might get 6 bits in a smaller tier but 5 bits in a larger one. The reason is reallocating space within the budget: tensors that can give way do so, and places that need preserving get more.

    This leads to a point that is easy to misjudge: a larger file does not mean every part is more accurate. A drop in overall error and an improvement in local precision are not synchronized, so evaluation must look at per-layer metrics rather than file size alone.

    5. Deployment Recommendations and Validation Workflow

    1. Estimate VRAM first: model weights + context cache + framework overhead, leaving one to two GB of headroom;
    2. Then check the average score: among the tiers that satisfy the VRAM constraint, choose the highest-scoring one;
    3. Run a small-scale evaluation with real business samples, focusing on first-layer behavior and output stability;
    4. Record peak VRAM usage and throughput to form a reproducible selection baseline.

    In cloud practice, you can use a container platform to host the inference service, object storage to distribute quantization files, and monitoring and alerting to track VRAM and latency metrics. The general capabilities of Baidu AI Cloud can serve as a hosting foundation. Overall, the key to low-VRAM local deployment is not chasing the highest average bit width, but making the right allocation within budget and closing the loop with measured data.