Local Small LLM Selection: Scenarios, VRAM, and Quantization Guide

    This guide explains why benchmark scores alone are not enough when choosing a local small LLM, compares model behavior in creative writing, multimodal recognition, and reasoning/math tasks, and details how weight and KV-cache VRAM estimates interact with quantization, context length, framework overhead, and offloading.

    1. Why Benchmark Scores Alone Are Not Enough

    When a new model is released, leaderboards are often the first thing to spread. Benchmarks can reflect a model’s upper bound on standardized tasks, but everyday experience is also affected by the following factors.

    • Writing style and generation preferences: narrative style, level of detail, and frequency of metaphors can differ noticeably, and benchmarks rarely cover these.
    • Long-context stability: some models perform well in short conversations but may show repetition or become formulaic in later sections when context grows longer.
    • Quantization loss: the same model can perform very differently at different quantization precisions. Low-bit quantization may lead to shorter outputs and occasional mixing of other languages.
    • Practical hardware feasibility: whether a model can run on existing GPUs at the required context length and acceptable speed often affects real use more than absolute capability.

    Therefore, the selection order should be: first define the core use case, then calculate the hardware budget, and finally weigh quantization precision and context length among the candidate options.

    2. Capability Differences Across Typical Scenarios

    2.1 Creative Writing and Roleplay

    Creative scenarios are most sensitive to a model’s writing style and coherence. They can be roughly divided into three categories.

    The first is small models with relatively high quantization precision. These models generate quickly and produce nuanced prose; short and medium-length content is usually stable. The weakness is limited scale: in long-form generation, later content may become formulaic, and earlier foreshadowing may not be picked up. This is a common limitation of small models in long-range dependencies.

    The second is models with more parameters but aggressive low-bit quantization. They may be better at plot tension and atmosphere, but 3-bit and similar low-bit quantization may lead to shorter outputs and occasional language mixing. The overall experience may not be more stable than a small model with higher-bit quantization.

    The third is medium-sized general chat models. They produce longer output and have looser content boundaries, but they often reuse metaphors or restate the same information. Their ability to actively advance the plot is usually weaker, so users need to provide clearer guidance.

    Thus, in creative scenarios, a small model with high quantization precision can sometimes outperform a larger model with low quantization precision. The impact of quantization loss on generation quality may offset the gains from parameter count. This conclusion still needs to be verified with your own genres and prompts.

    2.2 Visual Recognition and Multimodal Understanding

    Take museum exhibit recognition as an example. When dealing with complex objects such as inscriptions, stone carvings, fossils, pottery, and bronzes, different models differ noticeably in recognition accuracy and description detail. The following patterns can be used as reference.

    • Within the same model family, larger parameter versions are usually more reliable for artifact detail description, inscription recognition, and material judgment.
    • When comparing across families, a small model with sufficient multimodal training may approach models with several times the parameter count under specific evaluations and data distributions. Actual performance needs to be tested by artifact category.
    • The training quality of the vision encoder sometimes has a more direct impact on recognition results than the parameter scale of the language part.

    If the core requirement is image understanding, first check the model’s multimodal training background and vision-specific benchmark results, then decide whether to compare parameter counts.

    2.3 Logical Reasoning and Math

    Mainstream new-generation small models may perform similarly on routine logic and math problems, and the day-to-day difference is usually small. Differences on competition-level or research-level hard problems remain obvious and need separate evaluation. For ordinary developers, unless such needs exist, small differences in math benchmark scores should not be the decisive factor in selection.

    3. The Three-Way Relationship Between VRAM, Quantization, and Context

    The main constraint in local deployment is VRAM. Weights, KV cache, and framework overhead need to be calculated together.

    1. Weight Footprint

    The rough estimate formula for weight VRAM is:

    Weight VRAM ≈ parameter count × bits per parameter ÷ 8 (bytes)

    This result is a theoretical lower bound. Actual weight files also include quantization scaling factors, zero points, and group metadata, and some layers may retain higher precision. Therefore, file size and runtime footprint are usually higher than the theoretical value. For an 8-bit quantized 9B model, the theoretical weight footprint is about 9 GB, or about 8.4 GiB.

    2. KV Cache Footprint

    KV cache grows with context length. The estimate formula is:

    KV cache ≈ 2 × number of layers × number of KV heads × head_dim × context length × bytes per KV element

    For models using grouped-query attention (GQA), the number of KV heads is much smaller than the number of attention heads. Multi-query attention (MQA) has only 1 KV head. Models using structures such as multi-head latent attention (MLA) have different cache formats, so the formula above cannot be applied directly. The bytes per KV element are usually 2 bytes for FP16 or BF16. With KV cache quantization enabled, this may drop to 1 byte or less.

    Here is a hypothetical example. A model has 36 layers, 8 KV heads, head_dim of 128, a 32K context, and KV cache stored in FP16. Substituting into the formula gives: 2 × 36 × 8 × 128 × 32768 × 2 ≈ 4.83 × 10⁹ bytes, or about 4.5 GiB. This number is only used to illustrate the calculation method and does not represent any real model.

    3. Framework Overhead

    The inference framework itself also uses VRAM, including CUDA context, activation buffers, memory fragmentation, and paged cache management. Overhead varies considerably across frameworks and versions, and optimizations such as CUDA Graph can also change peak usage. This part can only be determined through measurement.

    4. Speed and Offloading Cost

    As soon as weights or KV cache are forced to offload to system memory, generation speed usually drops significantly. The cost of offloading is far greater than opening less context on a smaller model, so when selecting a model, priority should be given to keeping all data resident in VRAM.

    Combining the estimates above, consider a conditional example. Suppose the GPU has 16 GB, a 4B model is selected with 8-bit quantization, and the theoretical weight footprint is about 4 GB. If the model’s KV structure is small, the cache for a 32K context may be only a few hundred MB.