{
 "reference": "/lab/12gb-vram/",
 "data": {
  "job": "2026-11-25-12gb-vram-b12723",
  "date": "2026-11-25",
  "build": "b12723",
  "image": "ghcr.io/ggml-org/llama.cpp:full-cuda-b12723",
  "digest": "sha256:1c72cbe908cba4310a80d464d9982f65d350a6e603afa0b39f52b063d255df00",
  "rig": {
   "cpu": "AMD Ryzen 7 7800X3D (8 cores, 16 threads)",
   "docker": "Docker Engine 29.9.3",
   "driver": "621.01",
   "gpu": "NVIDIA GeForce RTX 4070 SUPER",
   "os": "Windows 11 Pro, Docker Desktop (WSL 2)",
   "ram": "32 GB"
  },
  "card_mib": 12282,
  "limit_mib": 11514,
  "desktop_mib": [
   442,
   739
  ],
  "clock_mhz": 2700,
  "rounds": 2,
  "models": [
   {
    "bytes": 1282439264,
    "file": "Qwen3-1.7B-Q4_K_M.gguf",
    "name": "Qwen3 1.7B",
    "quant": "Q4_K_M",
    "source": "https://huggingface.co/ggml-org/Qwen3-1.7B-GGUF"
   },
   {
    "bytes": 7219673216,
    "file": "gemma-4-12B-it-Q4_0.gguf",
    "name": "Gemma 4 12B",
    "quant": "Q4_0",
    "source": "https://huggingface.co/ggml-org/gemma-4-12B-it-GGUF"
   },
   {
    "bytes": 9001753376,
    "file": "Qwen3-14B-Q4_K_M.gguf",
    "name": "Qwen3 14B",
    "quant": "Q4_K_M",
    "source": "https://huggingface.co/ggml-org/Qwen3-14B-GGUF"
   }
  ],
  "kv": [
   "f16",
   "q8_0",
   "q4_0"
  ],
  "tests": [
   "Read a 512-token prompt",
   "Read a 4,096-token prompt",
   "Write 128 tokens",
   "Write 128 tokens after 4,096 in context",
   "Write 128 tokens after 16,384 in context",
   "Write 128 tokens after 32,768 in context"
  ],
  "rows": [
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "f16",
    "model": "Qwen3-1.7B-Q4_K_M.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 1815.2,
     "Read a 512-token prompt": 1419.7,
     "Write 128 tokens": 1156.68,
     "Write 128 tokens after 16,384 in context": 3199.45,
     "Write 128 tokens after 32,768 in context": 5007.45,
     "Write 128 tokens after 4,096 in context": 1843.45
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 20148.65,
      "spread_pct": 0.2
     },
     "Read a 512-token prompt": {
      "median": 19437.654,
      "spread_pct": 0.5
     },
     "Write 128 tokens": {
      "median": 292.627,
      "spread_pct": 0.2
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 132.603,
      "spread_pct": 0.0
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 87.277,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 225.826,
      "spread_pct": 0.2
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "q8_0",
    "model": "Qwen3-1.7B-Q4_K_M.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 1605.2,
     "Read a 512-token prompt": 1393.45,
     "Write 128 tokens": 1143.56,
     "Write 128 tokens after 16,384 in context": 2346.33,
     "Write 128 tokens after 32,768 in context": 3314.33,
     "Write 128 tokens after 4,096 in context": 1620.33
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 18338.158,
      "spread_pct": 0.9
     },
     "Read a 512-token prompt": {
      "median": 17698.531,
      "spread_pct": 1.0
     },
     "Write 128 tokens": {
      "median": 277.398,
      "spread_pct": 0.8
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 168.072,
      "spread_pct": 0.5
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 122.958,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 237.36,
      "spread_pct": 0.2
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "q4_0",
    "model": "Qwen3-1.7B-Q4_K_M.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 1493.2,
     "Read a 512-token prompt": 1379.45,
     "Write 128 tokens": 1136.56,
     "Write 128 tokens after 16,384 in context": 1891.33,
     "Write 128 tokens after 32,768 in context": 2411.33,
     "Write 128 tokens after 4,096 in context": 1501.33
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 18945.032,
      "spread_pct": 0.2
     },
     "Read a 512-token prompt": {
      "median": 18523.486,
      "spread_pct": 0.1
     },
     "Write 128 tokens": {
      "median": 277.489,
      "spread_pct": 0.4
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 183.332,
      "spread_pct": 0.4
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 141.019,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 242.137,
      "spread_pct": 0.6
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "f16",
    "model": "gemma-4-12B-it-Q4_0.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 7961.72,
     "Read a 512-token prompt": 7581.22,
     "Write 128 tokens": 7089.82,
     "Write 128 tokens after 16,384 in context": 8169.97,
     "Write 128 tokens after 32,768 in context": 8441.97,
     "Write 128 tokens after 4,096 in context": 7965.97
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 3764.121,
      "spread_pct": 0.1
     },
     "Read a 512-token prompt": {
      "median": 3874.969,
      "spread_pct": 0.1
     },
     "Write 128 tokens": {
      "median": 56.869,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 52.362,
      "spread_pct": 0.2
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 50.754,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 53.617,
      "spread_pct": 0.0
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "q8_0",
    "model": "gemma-4-12B-it-Q4_0.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 7706.72,
     "Read a 512-token prompt": 7502.47,
     "Write 128 tokens": 7050.44,
     "Write 128 tokens after 16,384 in context": 7823.09,
     "Write 128 tokens after 32,768 in context": 7975.09,
     "Write 128 tokens after 4,096 in context": 7709.09
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 3599.518,
      "spread_pct": 0.2
     },
     "Read a 512-token prompt": {
      "median": 3734.098,
      "spread_pct": 0.3
     },
     "Write 128 tokens": {
      "median": 55.447,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 50.973,
      "spread_pct": 0.2
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 47.072,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 53.028,
      "spread_pct": 0.0
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "q4_0",
    "model": "gemma-4-12B-it-Q4_0.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 7570.72,
     "Read a 512-token prompt": 7460.47,
     "Write 128 tokens": 7029.44,
     "Write 128 tokens after 16,384 in context": 7638.09,
     "Write 128 tokens after 32,768 in context": 7726.09,
     "Write 128 tokens after 4,096 in context": 7572.09
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 3662.065,
      "spread_pct": 0.1
     },
     "Read a 512-token prompt": {
      "median": 3795.159,
      "spread_pct": 0.3
     },
     "Write 128 tokens": {
      "median": 55.358,
      "spread_pct": 0.2
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 51.346,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 47.975,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 53.554,
      "spread_pct": 0.2
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 0,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "f16",
    "model": "Qwen3-14B-Q4_K_M.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 9142.52,
     "Read a 512-token prompt": 8579.02,
     "Write 128 tokens": 8286.0,
     "Write 128 tokens after 16,384 in context": 11114.77,
     "Write 128 tokens after 32,768 in context": 13690.77,
     "Write 128 tokens after 4,096 in context": 9182.77
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 2951.78,
      "spread_pct": 0.1
     },
     "Read a 512-token prompt": {
      "median": 1757.467,
      "spread_pct": 0.2
     },
     "Write 128 tokens": {
      "median": 47.924,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 38.035,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 32,768 in context": null,
     "Write 128 tokens after 4,096 in context": {
      "median": 46.494,
      "spread_pct": 0.1
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "q8_0",
    "model": "Qwen3-14B-Q4_K_M.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 8842.52,
     "Read a 512-token prompt": 8541.52,
     "Write 128 tokens": 8267.25,
     "Write 128 tokens after 16,384 in context": 9896.02,
     "Write 128 tokens after 32,768 in context": 11272.02,
     "Write 128 tokens after 4,096 in context": 8864.02
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 2902.361,
      "spread_pct": 0.0
     },
     "Read a 512-token prompt": {
      "median": 1742.281,
      "spread_pct": 0.3
     },
     "Write 128 tokens": {
      "median": 47.372,
      "spread_pct": 0.0
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 37.638,
      "spread_pct": 0.0
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 31.635,
      "spread_pct": 0.1
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 45.651,
      "spread_pct": 0.1
     }
    }
   },
   {
    "fits": {
     "Read a 4,096-token prompt": 2,
     "Read a 512-token prompt": 2,
     "Write 128 tokens": 2,
     "Write 128 tokens after 16,384 in context": 2,
     "Write 128 tokens after 32,768 in context": 2,
     "Write 128 tokens after 4,096 in context": 2
    },
    "kv": "q4_0",
    "model": "Qwen3-14B-Q4_K_M.gguf",
    "need_mib": {
     "Read a 4,096-token prompt": 8682.52,
     "Read a 512-token prompt": 8521.52,
     "Write 128 tokens": 8257.25,
     "Write 128 tokens after 16,384 in context": 9246.02,
     "Write 128 tokens after 32,768 in context": 9982.02,
     "Write 128 tokens after 4,096 in context": 8694.02
    },
    "results": {
     "Read a 4,096-token prompt": {
      "median": 2918.869,
      "spread_pct": 0.1
     },
     "Read a 512-token prompt": {
      "median": 1756.594,
      "spread_pct": 0.2
     },
     "Write 128 tokens": {
      "median": 47.403,
      "spread_pct": 0.0
     },
     "Write 128 tokens after 16,384 in context": {
      "median": 38.0,
      "spread_pct": 0.2
     },
     "Write 128 tokens after 32,768 in context": {
      "median": 30.86,
      "spread_pct": 0.0
     },
     "Write 128 tokens after 4,096 in context": {
      "median": 45.627,
      "spread_pct": 0.1
     }
    }
   }
  ],
  "samples": {
   "Qwen3-1.7B-Q4_K_M.gguf|f16": {
    "Read a 4,096-token prompt": [
     20181.623862,
     20115.675143
    ],
    "Read a 512-token prompt": [
     19330.768828,
     19544.538657
    ],
    "Write 128 tokens": [
     293.19649166666665,
     292.05787133333337
    ],
    "Write 128 tokens after 16,384 in context": [
     132.66521666666668,
     132.54049633333332
    ],
    "Write 128 tokens after 32,768 in context": [
     87.19282633333334,
     87.36031166666668
    ],
    "Write 128 tokens after 4,096 in context": [
     225.41530466666666,
     226.23580466666667
    ]
   },
   "Qwen3-1.7B-Q4_K_M.gguf|q4_0": {
    "Read a 4,096-token prompt": [
     18904.259051,
     18985.804103
    ],
    "Read a 512-token prompt": [
     18544.015834,
     18502.955446
    ],
    "Write 128 tokens": [
     276.42666233333335,
     278.55206833333335
    ],
    "Write 128 tokens after 16,384 in context": [
     184.073002,
     182.591392
    ],
    "Write 128 tokens after 32,768 in context": [
     140.93093966666666,
     141.106891
    ],
    "Write 128 tokens after 4,096 in context": [
     240.77827866666667,
     243.494832
    ]
   },
   "Qwen3-1.7B-Q4_K_M.gguf|q8_0": {
    "Read a 4,096-token prompt": [
     18166.928185,
     18509.387704
    ],
    "Read a 512-token prompt": [
     17524.499006,
     17872.562923
    ],
    "Write 128 tokens": [
     275.047726,
     279.7488876666667
    ],
    "Write 128 tokens after 16,384 in context": [
     168.846989,
     167.29720833333332
    ],
    "Write 128 tokens after 32,768 in context": [
     122.84282433333333,
     123.07273266666668
    ],
    "Write 128 tokens after 4,096 in context": [
     237.78499733333334,
     236.93554866666668
    ]
   },
   "Qwen3-14B-Q4_K_M.gguf|f16": {
    "Read a 4,096-token prompt": [
     2949.260741,
     2954.29858
    ],
    "Read a 512-token prompt": [
     1760.547387,
     1754.387605
    ],
    "Write 128 tokens": [
     47.87249,
     47.97618333333333
    ],
    "Write 128 tokens after 16,384 in context": [
     37.99886566666667,
     38.071487999999995
    ],
    "Write 128 tokens after 32,768 in context": [],
    "Write 128 tokens after 4,096 in context": [
     46.460664333333334,
     46.526906999999994
    ]
   },
   "Qwen3-14B-Q4_K_M.gguf|q4_0": {
    "Read a 4,096-token prompt": [
     2922.483333,
     2915.255061
    ],
    "Read a 512-token prompt": [
     1760.184844,
     1753.003607
    ],
    "Write 128 tokens": [
     47.38633333333333,
     47.41919633333333
    ],
    "Write 128 tokens after 16,384 in context": [
     37.92007,
     38.080812333333334
    ],
    "Write 128 tokens after 32,768 in context": [
     30.868194333333335,
     30.851566333333334
    ],
    "Write 128 tokens after 4,096 in context": [
     45.59907666666667,
     45.654092
    ]
   },
   "Qwen3-14B-Q4_K_M.gguf|q8_0": {
    "Read a 4,096-token prompt": [
     2902.783154,
     2901.938191
    ],
    "Read a 512-token prompt": [
     1736.833547,
     1747.728447
    ],
    "Write 128 tokens": [
     47.37160933333333,
     47.37280333333334
    ],
    "Write 128 tokens after 16,384 in context": [
     37.64401966666667,
     37.631866333333335
    ],
    "Write 128 tokens after 32,768 in context": [
     31.611953666666665,
     31.658344333333332
    ],
    "Write 128 tokens after 4,096 in context": [
     45.58917133333333,
     45.712404
    ]
   },
   "gemma-4-12B-it-Q4_0.gguf|f16": {
    "Read a 4,096-token prompt": [
     3761.453345,
     3766.788463
    ],
    "Read a 512-token prompt": [
     3872.094476,
     3877.842529
    ],
    "Write 128 tokens": [
     56.94143666666667,
     56.79677566666667
    ],
    "Write 128 tokens after 16,384 in context": [
     52.28066366666667,
     52.443549999999995
    ],
    "Write 128 tokens after 32,768 in context": [
     50.79214233333334,
     50.71540533333333
    ],
    "Write 128 tokens after 4,096 in context": [
     53.638411999999995,
     53.594719999999995
    ]
   },
   "gemma-4-12B-it-Q4_0.gguf|q4_0": {
    "Read a 4,096-token prompt": [
     3663.940484,
     3660.189657
    ],
    "Read a 512-token prompt": [
     3805.797218,
     3784.520296
    ],
    "Write 128 tokens": [
     55.47944966666666,
     55.237468
    ],
    "Write 128 tokens after 16,384 in context": [
     51.313438999999995,
     51.37797833333334
    ],
    "Write 128 tokens after 32,768 in context": [
     48.00562399999999,
     47.94504633333333
    ],
    "Write 128 tokens after 4,096 in context": [
     53.435391333333335,
     53.671651
    ]
   },
   "gemma-4-12B-it-Q4_0.gguf|q8_0": {
    "Read a 4,096-token prompt": [
     3592.199487,
     3606.837466
    ],
    "Read a 512-token prompt": [
     3724.43097,
     3743.765129
    ],
    "Write 128 tokens": [
     55.415565333333326,
     55.47808633333333
    ],
    "Write 128 tokens after 16,384 in context": [
     51.06643666666667,
     50.878683
    ],
    "Write 128 tokens after 32,768 in context": [
     47.134243,
     47.01045366666667
    ],
    "Write 128 tokens after 4,096 in context": [
     53.03777366666666,
     53.01748166666667
    ]
   }
  },
  "self_test": {
   "clear": 0,
   "max_delta_pct": 0.2,
   "name": "Qwen3 14B Q4_K_M, KV cache q8_0, twice a round in separate containers",
   "tests": 6
  },
  "method": [
   "llama-bench from llama.cpp b12723 in its official CUDA image, every layer on the GPU (-ngl 99), flash attention on, 3 repetitions a test; each repetition of a writing test fills a context of its own",
   "Median of 2 rounds; the setting that starts each round rotates, and every call loads the model again in a fresh container",
   "What fits: llama-bench -v reports what llama.cpp allocates on the card for each test (weights, KV cache, compute buffer). A test that asks for more than 11.24 GB, the card's 11.99 GB less 0.75 GB for the CUDA runtime and the Windows desktop, is stopped there and does not fit: past the card's memory the Windows driver moves the rest into system memory, and the test crawls",
   "GB of 1,024 MiB, as nvidia-smi and Windows count them; Hugging Face lists the files in GB of 1,000 MB",
   "Models: GGUF files from ggml-org on Hugging Face (Apache-2.0), read-only from the PC",
   "The card ran its cores at 2,700 MHz under load, the median of 318 readings with it busy; a card at other clocks is faster or slower"
  ]
 }
}