{
 "tracker": "/lab/llama-cpp/",
 "lab": {
  "checks": [],
  "claims": [],
  "commands": [
   "docker run --rm --gpus all -v ./models:/models:ro --entrypoint /app/llama-bench ghcr.io/ggml-org/llama.cpp:full-cuda-b12648 -m /models/Qwen3-14B-Q4_K_M.gguf -ngl 99 -fa 1 -ctk f16 -ctv f16 -r 3 -p 512,4096 -n 0",
   "The same with -p 0 -n 128 -d 0,4096,16384 for writing",
   "For the other builds use ghcr.io/ggml-org/llama.cpp:full-cuda-b12004, ghcr.io/ggml-org/llama.cpp:full-cuda-b12316.",
   "Model Qwen3 14B Q4_K_M: https://huggingface.co/ggml-org/Qwen3-14B-GGUF (Qwen3-14B-Q4_K_M.gguf)"
  ],
  "date": "2026-11-24",
  "family": "gpu-llm",
  "findings": [
   {
    "kind": "difference",
    "text": "Qwen3 14B Q4_K_M: Read a 512-token prompt: b12648 is 100.9% faster than b12004"
   }
  ],
  "limits": [
   "One card: an NVIDIA GeForce RTX 4070 SUPER with 12 GB under Windows 11 and WSL 2; another card, driver or system may behave differently.",
   "llama-bench's synthetic prompts on one model: a chat server, other models or other context lengths may differ."
  ],
  "method": [
   "Median of 3 rounds; the build that starts each round rotates",
   "llama-bench, 3 repetitions per test, every layer on the GPU, flash attention on, KV cache f16",
   "Models: Qwen3 14B Q4_K_M (GGUF files from ggml-org, Apache-2.0), read-only from the PC",
   "Peak VRAM: the card's use above its level before each call (nvidia-smi on the host)",
   "Each build is the newest at least 300 builds before the next, run as it ships, all in one run on 2026-11-24"
  ],
  "product": "llama.cpp",
  "question": "How do llama.cpp b12004 to b12648 compare on the same card?",
  "results": [
   {
    "better": "higher",
    "clear": true,
    "delta_pct": 100.85728381463761,
    "kind": "speed",
    "name": "Qwen3 14B Q4_K_M: Read a 512-token prompt",
    "unit": "tok/s",
    "values": {
     "b12004": {
      "median": 871.59,
      "spread_pct": 0.3
     },
     "b12316": {
      "median": 877.643,
      "spread_pct": 2.2
     },
     "b12648": {
      "median": 1750.652,
      "spread_pct": 0.0
     }
    }
   },
   {
    "better": "higher",
    "clear": false,
    "delta_pct": 3.0055385321773675,
    "kind": "speed",
    "name": "Qwen3 14B Q4_K_M: Read a 4,096-token prompt",
    "unit": "tok/s",
    "values": {
     "b12004": {
      "median": 2822.589,
      "spread_pct": 0.3
     },
     "b12316": {
      "median": 2828.375,
      "spread_pct": 0.1
     },
     "b12648": {
      "median": 2907.423,
      "spread_pct": 0.0
     }
    }
   },
   {
    "better": "higher",
    "clear": false,
    "delta_pct": 0.02508780732564069,
    "kind": "speed",
    "name": "Qwen3 14B Q4_K_M: Write 128 tokens",
    "unit": "tok/s",
    "values": {
     "b12004": {
      "median": 47.832,
      "spread_pct": 0.4
     },
     "b12316": {
      "median": 47.973,
      "spread_pct": 0.1
     },
     "b12648": {
      "median": 47.844,
      "spread_pct": 0.1
     }
    }
   },
   {
    "better": "higher",
    "clear": false,
    "delta_pct": 0.8358234810099079,
    "kind": "speed",
    "name": "Qwen3 14B Q4_K_M: Write 128 tokens after 4,096 in context",
    "unit": "tok/s",
    "values": {
     "b12004": {
      "median": 46.182,
      "spread_pct": 0.2
     },
     "b12316": {
      "median": 46.571,
      "spread_pct": 0.1
     },
     "b12648": {
      "median": 46.568,
      "spread_pct": 0.2
     }
    }
   },
   {
    "better": "higher",
    "clear": false,
    "delta_pct": 0.424522083058672,
    "kind": "speed",
    "name": "Qwen3 14B Q4_K_M: Write 128 tokens after 16,384 in context",
    "unit": "tok/s",
    "values": {
     "b12004": {
      "median": 37.925,
      "spread_pct": 0.1
     },
     "b12316": {
      "median": 38.07,
      "spread_pct": 0.1
     },
     "b12648": {
      "median": 38.086,
      "spread_pct": 0.1
     }
    }
   },
   {
    "better": "lower",
    "clear": false,
    "delta_pct": 0.4566210045662165,
    "kind": "resource",
    "name": "Qwen3 14B Q4_K_M: Peak VRAM",
    "unit": "GB",
    "values": {
     "b12004": {
      "median": 10.95,
      "spread_pct": 0.0
     },
     "b12316": {
      "median": 10.97,
      "spread_pct": 0.0
     },
     "b12648": {
      "median": 11.0,
      "spread_pct": 0.0
     }
    }
   }
  ],
  "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"
  },
  "schema": 1,
  "self_test": {
   "clear": 0,
   "max_delta_pct": 0.5,
   "name": "b12648 against b12648 in two containers"
  },
  "subjects": [
   {
    "digest": "sha256:3beda4861d0c73e0946b40909940c5443626fd5190472a45f0ef7d3369a35604",
    "image": "ghcr.io/ggml-org/llama.cpp:full-cuda-b12004",
    "label": "b12004"
   },
   {
    "digest": "sha256:1a4983fc58a092dc0a63e13d07213f58ffbcf454143f0a433b25bcfe4d109f06",
    "image": "ghcr.io/ggml-org/llama.cpp:full-cuda-b12316",
    "label": "b12316"
   },
   {
    "digest": "sha256:18715ab607da04a28cfdd118384091a136a8410ed03951dc515acd1054ff3f90",
    "image": "ghcr.io/ggml-org/llama.cpp:full-cuda-b12648",
    "label": "b12648"
   }
  ]
 }
}