Genrius AI

Will it fit on your GPU? Pingala-8 2-bit vs normal 4-bit

Pick a model, your NVIDIA GPU and the context length. See whether it fits as a Pingala-8 2-bit build, next to the usual 4-bit Q4_K_M and FP16. Real Pingala-8 files exist for Qwen3-4B and Llama-3.1-8B; for every other model the Pingala-8 size is an estimate.

Memory as NVIDIA lists it (see GPU sources).
KV cache type and headroom
KV cache type
For llama.cpp's compute buffer, the CUDA context and the desktop. 1.5 GB is a rule of thumb, not a measurement.

Detailed calculator

Every weight format (FP16 to IQ1_M), the KV cache type and a custom overhead allowance, for the 20 listed models.

Bits per weight: whole-file averages measured by llama.cpp.
KV cache type
f16 is the llama.cpp default. Set others with -ctk and -ctv.
GPU VRAM
Headroom for llama.cpp's compute buffer, the CUDA context and what your desktop already uses. 1.5 GB is a rule of thumb, not a measurement.
...

WeightsKV cacheOverhead allowanceYour card
Weights
KV cache
Overhead allowance
Total

    Real use varies with the runtime version and settings, the driver and other programs on the GPU. Treat this as an estimate and check with nvidia-smi.

    Every format for this model

    FormatWeights+ KV cacheTotalVerdictSize from

    Smaller than 4-bit?

    If Q4_K_M fits your card, it is the simple choice: it runs in stock llama.cpp, Ollama and LM Studio. Below 4 bits, quality drops faster. llama.cpp's own table lists Llama-3-8B perplexity rising by 0.18 at Q4_K_M, 0.66 at Q3_K_M and 3.52 at Q2_K.

    Pingala-8 is our 2-bit format for llama.cpp at IQ2_XXS size. Qwen3-4B goes from 8.05 GB to 1.24 GB, with a WikiText-2 perplexity of 16.64 against 28.61 for IQ2_XXS at the same size (lower is better). Llama-3.1-8B is 2.39 GB.

    Caveat: Pingala-8 files need our patched llama.cpp build (NVIDIA CUDA). Stock llama.cpp, Ollama and LM Studio cannot load them.

    How the numbers are calculated

    Total = weights + KV cache + overhead allowance. This is the same arithmetic as our guide How much VRAM do you need to run an LLM locally?

    Real use varies. The runtime, its version and settings (batch size, flash attention, parallel slots), the driver and other programs all change the real number. Before you start, run nvidia-smi to see how much VRAM is free; llama.cpp prints the size of the model buffer, the KV cache and the compute buffer as it loads. If a model does not fit, -ngl keeps some layers in system RAM, which runs much slower.

    A quantized cache (-ctk q8_0 -ctv q8_0) roughly halves the cache. llama.cpp needs flash attention for a quantized V cache (-fa on). It changes the output slightly, and we have not tested it with Pingala-8.

    Sources

    Model shapes come from each model's public config.json on Hugging Face, checked against the tensor shapes in its safetensors files (Gemma 3 configs leave some values at library defaults, and Gemma 3 12B's head size is 256, not hidden size / heads). Parameter counts are the text-model tensors in the safetensors headers: a tied output matrix is counted once, as in GGUF, and the Gemma 3 vision tower is left out. Meta's repos are gated, so their configs were read from the ungated unsloth mirrors and the counts checked against Meta's own repo metadata.

    ModelRepo (config read from)LayersKV headsHead sizeParametersKV f16 per token
    Qwen3-0.6BQwen/Qwen3-0.6B (config c1899de)288128596,049,920114,688
    Qwen3-1.7BQwen/Qwen3-1.7B (config 70d244c)2881281,720,574,976114,688
    Qwen3-4BQwen/Qwen3-4B (config 1cfa9a7)3681284,022,468,096147,456
    Qwen3-8BQwen/Qwen3-8B (config b968826)3681288,190,735,360147,456
    Qwen3-14BQwen/Qwen3-14B (config 40c0698)40812814,768,307,200163,840
    Qwen3-32BQwen/Qwen3-32B (config 9216db5)64812832,762,123,264262,144
    Qwen3-30B-A3B (MoE)Qwen/Qwen3-30B-A3B (config ad44e77)48412830,532,122,62498,304
    Qwen2.5-7B-InstructQwen/Qwen2.5-7B-Instruct (config a09a354)2841287,615,616,51257,344
    Llama-3.2-1Bmeta-llama/Llama-3.2-1B-Instruct (unsloth/Llama-3.2-1B-Instruct)168641,235,814,40032,768
    Llama-3.2-3Bmeta-llama/Llama-3.2-3B-Instruct (unsloth/Llama-3.2-3B-Instruct)2881283,212,749,824114,688
    Llama-3.1-8Bmeta-llama/Llama-3.1-8B (unsloth/Meta-Llama-3.1-8B)3281288,030,261,248131,072
    Llama-3.1-70B / 3.3-70Bmeta-llama/Llama-3.1-70B-Instruct (unsloth/Meta-Llama-3.1-70B-Instruct)80812870,553,706,496327,680
    Gemma 3 1Bgoogle/gemma-3-1b-it (config dcc83ea (gated: log in to Hugging Face and accept Google's Gemma terms to view))261256999,885,95226,624 (window layers less)
    Gemma 3 4Bgoogle/gemma-3-4b-it (config 093f9f3 (gated: log in to Hugging Face and accept Google's Gemma terms to view))3442563,880,263,168139,264 (window layers less)
    Gemma 3 12Bgoogle/gemma-3-12b-it (config 96b6f1e (gated: log in to Hugging Face and accept Google's Gemma terms to view))48825611,766,034,176393,216 (window layers less)
    Gemma 3 27Bgoogle/gemma-3-27b-it (config 005ad34 (gated: log in to Hugging Face and accept Google's Gemma terms to view))621612827,009,346,304507,904 (window layers less)
    Mistral 7B v0.3mistralai/Mistral-7B-Instruct-v0.3 (config c170c70)3281287,248,023,552131,072
    Mistral Small 24B (2501)mistralai/Mistral-Small-24B-Instruct-2501 (config 9527884)40812823,572,403,200163,840
    Phi-4-minimicrosoft/Phi-4-mini-instruct (config cfbefac)3281283,836,021,760131,072
    Phi-4microsoft/phi-4 (config 2db69c1)401012814,659,507,200204,800

    GPU memory

    From NVIDIA's spec pages, checked on 2026-10-25. Laptop makers can fit other amounts; check yours with nvidia-smi.

    Newest (2026) models

    Parameter counts are the safetensors totals that Hugging Face reports for each official repo (they include any vision tower and multi-token-prediction layers in the checkpoint). Qwen3.5, Qwen3.6 and Qwen3.8 dense and A3B models are hybrids: only their full-attention layers keep a per-token KV cache, and each linear-attention layer keeps a fixed f32 state of (conv kernel - 1) x (2 x key heads x key size + value heads x value size) + key size x value heads x value size numbers, as in llama.cpp's src/llama-hparams.cpp. For the other new architectures (Gemma 4, Ministral 3, DeepSeek V4, GLM-5.3, gpt-oss, Kimi-K3, Qwen3.8-Flash-Next) the page shows weights only until their cache formula is checked. Pingala-8 needs our patch on llama.cpp 7ac59a6; GLM-5.3-Flash's architecture (glm5-next) was added to llama.cpp after that commit, and DeepSeek-V4.1-Flash is not in llama.cpp master as of f3269ef.

    Bits per weight

    From the table for meta-llama/Llama-3.1-8B in llama.cpp's tools/quantize/README.md (commit 3f03b17). These are whole-file averages, so they include the higher-precision tensors that every GGUF file keeps.

    FormatBits per weightllama.cpp file size, Llama-3.1-8B
    FP1616.000514.96 GiB
    Q8_08.50087.95 GiB
    Q6_K6.56336.14 GiB
    Q5_K_M5.70365.33 GiB
    Q4_K_M4.89444.58 GiB
    Q3_K_M3.99603.74 GiB
    Q2_K3.15932.95 GiB
    IQ2_XXS2.38242.23 GiB
    IQ1_M2.14602.01 GiB
    Pingala-8 2-bit-Only real files: Qwen3-4B 1.24 GB, Llama-3.1-8B 2.39 GB

    Real file sizes

    ModelFormatBytesSource
    Qwen3-0.6BQ8_0639,446,688Qwen/Qwen3-0.6B-GGUF
    Qwen3-1.7BQ8_01,834,426,016Qwen/Qwen3-1.7B-GGUF
    Qwen3-4BFP168,051,285,408Genrius-AI/pingala8-benchmarks
    Qwen3-4BQ8_04,280,405,408Genrius-AI/pingala8-benchmarks
    Qwen3-4BQ6_K3,306,260,704Qwen/Qwen3-4B-GGUF
    Qwen3-4BQ5_K_M2,889,513,184Qwen/Qwen3-4B-GGUF
    Qwen3-4BQ4_K_M2,497,280,256Qwen/Qwen3-4B-GGUF
    Qwen3-4BQ2_K1,669,500,032Genrius-AI/pingala8-benchmarks
    Qwen3-4BIQ2_XXS1,246,621,312Genrius-AI/pingala8-benchmarks
    Qwen3-4BIQ1_M1,127,018,112Genrius-AI/pingala8-benchmarks
    Qwen3-4BPingala-8 2-bit1,243,153,792Genrius-AI/Qwen3-4B-Pingala8-2bit
    Qwen3-8BQ8_08,709,518,112Qwen/Qwen3-8B-GGUF
    Qwen3-8BQ6_K6,725,899,040Qwen/Qwen3-8B-GGUF
    Qwen3-8BQ5_K_M5,851,112,224Qwen/Qwen3-8B-GGUF
    Qwen3-8BQ4_K_M5,027,783,488Qwen/Qwen3-8B-GGUF
    Qwen3-14BQ8_015,698,533,728Qwen/Qwen3-14B-GGUF
    Qwen3-14BQ6_K12,121,937,248Qwen/Qwen3-14B-GGUF
    Qwen3-14BQ5_K_M10,514,569,568Qwen/Qwen3-14B-GGUF
    Qwen3-14BQ4_K_M9,001,752,960Qwen/Qwen3-14B-GGUF
    Qwen3-32BQ8_034,817,718,912Qwen/Qwen3-32B-GGUF
    Qwen3-32BQ6_K26,883,306,112Qwen/Qwen3-32B-GGUF
    Qwen3-32BQ5_K_M23,214,831,232Qwen/Qwen3-32B-GGUF
    Qwen3-32BQ4_K_M19,762,149,024Qwen/Qwen3-32B-GGUF
    Qwen3-30B-A3B (MoE)Q8_032,483,931,648Qwen/Qwen3-30B-A3B-GGUF
    Qwen3-30B-A3B (MoE)Q6_K25,092,531,712Qwen/Qwen3-30B-A3B-GGUF
    Qwen3-30B-A3B (MoE)Q5_K_M21,725,580,800Qwen/Qwen3-30B-A3B-GGUF
    Qwen3-30B-A3B (MoE)Q4_K_M18,556,685,824Qwen/Qwen3-30B-A3B-GGUF
    Qwen2.5-7B-InstructFP1615,237,853,536Qwen/Qwen2.5-7B-Instruct-GGUF
    Qwen2.5-7B-InstructQ8_08,098,525,408Qwen/Qwen2.5-7B-Instruct-GGUF
    Qwen2.5-7B-InstructQ6_K6,254,198,880Qwen/Qwen2.5-7B-Instruct-GGUF
    Qwen2.5-7B-InstructQ5_K_M5,444,831,360Qwen/Qwen2.5-7B-Instruct-GGUF
    Qwen2.5-7B-InstructQ4_K_M4,683,073,632Qwen/Qwen2.5-7B-Instruct-GGUF
    Qwen2.5-7B-InstructQ3_K_M3,808,391,072Qwen/Qwen2.5-7B-Instruct-GGUF
    Qwen2.5-7B-InstructQ2_K3,015,940,000Qwen/Qwen2.5-7B-Instruct-GGUF
    Llama-3.1-8BIQ2_XXS2,399,212,576Genrius-AI/pingala8-benchmarks
    Llama-3.1-8BPingala-8 2-bit2,388,210,816Genrius-AI/Llama-3.1-8B-Pingala8-2bit

    KV cache and llama.cpp defaults