VRAM Budgeting and Mixed-Precision Quantization for Local LLM Deployment

    Deploying large language models locally is usually constrained by VRAM before anything else. This article explains how to pick the right quantization tier for 8 GB, 10 GB, and 12 GB GPUs, why embedding tables should stay high-precision, how per-tensor mixed-precision search allocates bits under a fixed memory budget, and which misconceptions to avoid when interpreting model sizes and benchmark scores.

    When deploying large language models locally, the first obstacle you hit is usually not the algorithm itself but the VRAM ceiling. Common configurations of roughly 8 GB, 10 GB, and 12 GB determine whether a model can fit on the card at all, and how much quality is lost once it does. Early industry practice compressed the entire network with a uniform bit width — tidy-looking on paper, but it forced “layers that must keep precision” and “layers that can afford to give some up” into the same format. A more sensible recent approach: fix a total VRAM budget first, then search for a mixed-precision configuration per tensor that minimizes overall error. This article walks through that pipeline from deployment conclusions, embedding tables, budget sources, and common misjudgments.

    Deployment Conclusions Up Front

    With about 8 GB of VRAM, prefer the tier with the lowest average bit width that still fits entirely in device memory. Accept some score loss to turn “I can only watch others run it” into “it runs on my machine.” Around 10 GB you can move up a middle tier; above 12 GB, choose the higher bit-width tier recommended by the model publisher. The value of these tiers comes mainly from the VRAM saved, not from any revolutionary breakthrough in quantization theory.

    If the original model already applies low-precision treatment to expert weights, total footprint often remains in the mid-teens of gigabytes. Layering per-tensor mixed quantization on top of that, the smallest tier can compress VRAM to just over 8 GB (add less than another gigabyte if the embedding table is counted in), while retaining over 90% of the full-precision quality. Subsequent tiers correspond to higher average bit widths, more VRAM, and scores closer to full precision. Compared with uniform 4-bit across the whole network, an 8 GB card goes from “cannot run” to “runs, with a few points of score loss” — that is the genuinely perceptible engineering progress.

    An important caveat: all footprint and score figures here should be read as order-of-magnitude descriptions from the publisher’s model cards and public papers. Actual measurements vary with your local GPU model, drivers, and inference implementation. Numbers passed around in community discussions should be cited with their own sources and not mixed with official evaluations. Before deployment, run comparisons on the same evaluation set with the same sampling temperature — do not judge by file size alone.

    Why the Embedding Table Stays High-Precision

    This point deserves more attention than benchmark scores. The embedding layer is fundamentally a lookup: a token goes in, a vector comes out, with no large matrix multiplication involved. Its numerical precision therefore has almost no effect on throughput. In common inference implementations, this layer often resides in system memory and does not consume device VRAM at all.

    Forcibly quantizing the embedding table to a very low bit width might shave a few tenths of a gigabyte off the download size, but contributes almost nothing to VRAM savings — while shifting the input distribution seen by the first layer away from the original model. The sensible trade-off: keep the embedding table near its original precision, pay a little extra disk space, and preserve input consistency. The tensors worth optimizing hard are the big VRAM consumers: linear layers, attention projections, and expert weights.

    Where Does the Saved VRAM Come From?

    The key is shifting from a “one-size-fits-all format” to “per-tensor allocation.” The older approach applied a single quantization format across the whole model — simple to implement, but unable to express differences in per-layer importance. The newer approach: pre-quantize every tensor under multiple candidate formats to build a candidate library, then run a combinatorial search within the total bit budget to select the configuration with minimal error.

    When a public repository publishes a per-tensor allocation table, read it carefully: the same attention-related weight block may get a higher bit width in the small tier and a slightly lower one in the large tier. The reason is that the search moves budget around — tensors that can afford it yield bits, and tensors that must be preserved get more. So “bigger file” does not mean “more accurate everywhere”; it only means a higher total budget and lower average error.

    A Practical Tier-Selection Workflow

    1. Measure usable VRAM. The real budget for model weights is net capacity after subtracting system reservations, KV cache for your context, and transient activations. Longer contexts mean more KV memory — the same weight tier can go from “just fits” to overflow.
    2. Keep the embedding table out of the VRAM ledger (if your implementation places it in host memory) to avoid double counting.
    3. Try tiers from lowest to highest average bit width. Validate the pipeline and latency on the smallest tier first, then step up and check whether the evaluation score justifies the extra gigabyte or two.
    4. Spot-check sensitive layers. Attention value projections, gating, and output projections tend to be more quality-sensitive. If the search assigned them too few bits, manually raise those layers and let others yield.
    5. Test generation stability with fixed seeds and the same prompt set. Quantization causes not just average score drops but also occasional repetition, formatting drift, and similar issues.

    The method has boundaries. If the candidate format set is too coarse, the search can only shuffle among a few cells; if too fine, the search space explodes, so publishers typically apply heuristic pruning. If the error metric is just single-layer reconstruction MSE, it may underestimate the impact on downstream generation — combining perplexity or task scores on a calibration set is more robust. If the calibration data distribution differs too much from production traffic, allocation will favor “calibration-friendly layers” and the model may still break online. These are method-level constraints, not tied to any specific release.

    Complementary Practices for 8–12 GB Users

    These are orthogonal to quantization itself:

    • Control concurrency and batch size so activation peaks don’t blow through already-tight VRAM.
    • Offload layers to host memory where possible — trade bandwidth for capacity, accepting higher time-to-first-token.
    • Truncate the context window to fit your use case; handle long conversations with summarization or retrieval instead of piling KV cache endlessly on the GPU.
    • Monitor actual usage rather than theoretical size; fragmentation and alignment can consume tens to over a hundred extra megabytes.
    • On the enterprise side, if you run on a container platform, reserve a dedicated device for the inference process so it doesn’t compete with training or graphics workloads for VRAM.
    • Log OOM events and CPU-fallback counts, and use them as evidence for stepping up a tier or shrinking the context window.
    • Object storage only handles weight distribution; what determines the experience is still the device-side budget.

    Misconceptions Worth Repeating

    Bigger file does not mean more accurate everywhere. Low average bit width does not mean unusable. Compressing the embedding table does not mean saving VRAM. Uniform 4-bit is not optimal. The correct narrative: under a fixed VRAM budget, allocate bits to the tensors most sensitive to loss, while keeping lookup layers like the embedding table at high precision and, where possible, out of device memory. This way an 8 GB card gets “runs, with acceptable scores,” and a 12 GB card gets a recommended tier “close to full precision.” Quantization does not change the model architecture; it changes how you spend money on precision under limited hardware.

    Conclusion

    Local deployment comes down to aligning three things: the VRAM ledger, per-tensor mixed precision, and the embedding-table strategy. Fix the budget first, then search for the allocation, then verify against your own evaluations — rather than chasing whatever file name appears on release day. Applying these principles to your own GPU and context length is what turns “someone else can run it” into “I can reproduce it and scale it up” as an engineering outcome.