{
  "id": "inkling-2-mini",
  "title": "Inkling-2-Mini 26.4B looped MoE at 64k on llama.cpp",
  "summary": "A 17.6 GB looped MoE on a 12 GB card: the experts of the loop core (layers 6-17, read three times per token) on the GPU, the rest in RAM, on stock llama.cpp master at ub 1024. 32.9 tok/s decode and 568 tok/s prefill at 8k (17.5 and 39 with every expert in RAM).",
  "status": "measured",
  "updated": "2026-11-30",
  "use_cases": [
    "coding",
    "reasoning",
    "vision",
    "long-context"
  ],
  "model": {
    "name": "Inkling-2-Mini",
    "hf_repo": "thinkingmachines/Inkling-2-Mini",
    "params": "26.4B",
    "architecture": "looped MoE, 24 layers, 128 experts (8 active); layers 6-17 run 3 times per token; image input"
  },
  "weights": {
    "format": "GGUF",
    "quant": "IQ4_NL",
    "size_gb": 17.6,
    "source": "https://huggingface.co/ggml-org/Inkling-2-Mini-GGUF",
    "file": "Inkling-2-Mini-IQ4_NL.gguf",
    "revision": "db61c5b4",
    "notes": "Options: Unsloth's Mainline_Support 2-bit and 3-bit files (unsloth/Inkling-2-Mini-GGUF @ 45fd0876) and our NVFP4 repack."
  },
  "engine": {
    "name": "llama.cpp",
    "repo": "https://github.com/ggml-org/llama.cpp",
    "version": "master f6d944f6d (stock, no patches)",
    "patches": [
      "none for the default; INK_BUILD=r2inkfix runs the round-2 build, master 225a5345b + inkling-2-mini/patches/0001 and 0002 (F16 relative-bias mask), which the quant options and the 128k profile were measured on"
    ],
    "cuda": "12.9"
  },
  "hardware": {
    "gpu": "NVIDIA GeForce RTX 3060",
    "vram_gb": 12,
    "ram_gb": 62,
    "cpu": "Intel Core i5-12500",
    "disk": "NVMe SSD",
    "os": "Linux",
    "driver": "615.78.08",
    "notes": "sm_86. The desktop holds 0.95 GB of the card. RAM read bandwidth 57.1 GB/s at 6 threads."
  },
  "serve": {
    "command": "INK_NO_GPU_RUN=1 ./serve.sh",
    "script": "serve.sh",
    "port": 8085,
    "api": "OpenAI-compatible",
    "key_flags": [
      "-ngl 99 --fit off",
      "-ot 'blk\\.([0-5]|1[89]|2[0-3])\\.ffn_.*_exps=CPU'",
      "-c 65536 -np 1 -t 6",
      "-b 2048 -ub 1024",
      "-fa on -ctk q8_0 -ctv q8_0",
      "--jinja --reasoning-format deepseek"
    ]
  },
  "context_tokens": 65536,
  "placement": "VRAM: all dense weights and the experts of loop-core layers 6-17 (6.4 GiB). RAM: the experts of layers 0-5 and 18-23, mmap'd.",
  "results": [
    {
      "metric": "decode",
      "label": "coding answer, empty context (round-2 build: 29.0)",
      "value": 32.9,
      "unit": "tok/s",
      "baseline": 29.0,
      "headline": true,
      "source": "inkling-2-mini/RESULTS.md:392"
    },
    {
      "metric": "decode",
      "label": "after 32k of context (round-2 build: 23.6)",
      "value": 29.0,
      "unit": "tok/s",
      "baseline": 23.6,
      "source": "inkling-2-mini/RESULTS.md:393"
    },
    {
      "metric": "prefill",
      "label": "8k prompt (round-2 build: 144.1)",
      "value": 568,
      "unit": "tok/s",
      "baseline": 144.1,
      "headline": true,
      "source": "inkling-2-mini/RESULTS.md:395"
    },
    {
      "metric": "prefill",
      "label": "32k prompt, measured on a busy host (round-2 build: 122.9)",
      "value": "470-481",
      "unit": "tok/s",
      "source": "inkling-2-mini/RESULTS.md:396"
    },
    {
      "metric": "needles",
      "label": "at 32k and at 62k",
      "value": "3/3, 3/3",
      "unit": "found",
      "source": "inkling-2-mini/RESULTS.md:397"
    },
    {
      "metric": "vram_peak",
      "label": "after a 62k prompt, whole card",
      "value": 11587,
      "unit": "MiB",
      "source": "inkling-2-mini/RESULTS.md:401"
    },
    {
      "metric": "quality",
      "label": "KL divergence vs Q8_0, wikitext-2 (NVFP4 repack: 0.0029)",
      "value": 0.0087,
      "unit": "KLD",
      "source": "inkling-2-mini/RESULTS.md:399"
    },
    {
      "metric": "decode",
      "label": "option: UD-IQ2_XXS, whole model on the GPU (KLD 10.7x IQ4_NL) [round-2 build]",
      "value": 41.4,
      "unit": "tok/s",
      "source": "inkling-2-mini/RESULTS.md:25"
    },
    {
      "metric": "prefill",
      "label": "option: UD-IQ2_XXS, 8k prompt [round-2 build]",
      "value": 295,
      "unit": "tok/s",
      "source": "inkling-2-mini/RESULTS.md:25"
    },
    {
      "metric": "decode",
      "label": "option: 128k profile, empty / after 124k [round-2 build]",
      "value": "26.4 / 14.6",
      "unit": "tok/s",
      "source": "inkling-2-mini/README.md:42"
    },
    {
      "metric": "decode",
      "label": "option: DFlash2 drafter (INK_SPEC=dflash2, ub 128), coding answer; same build without it",
      "value": 40.8,
      "unit": "tok/s",
      "baseline": 33.0,
      "source": "inkling-2-mini/RESULTS.md:351"
    },
    {
      "metric": "decode",
      "label": "option: DFlash2 drafter, coding answer after 32k; same build without it",
      "value": 33.4,
      "unit": "tok/s",
      "baseline": 29.0,
      "source": "inkling-2-mini/RESULTS.md:352"
    },
    {
      "metric": "decode",
      "label": "option: DFlash2 drafter, prose answer; same build without it",
      "value": 35.1,
      "unit": "tok/s",
      "baseline": 33.0,
      "source": "inkling-2-mini/RESULTS.md:353"
    },
    {
      "metric": "decode",
      "label": "option: DFlash2 drafter, coding eval at temperature 0 (median, 8/8 passed); same build without it",
      "value": 47.5,
      "unit": "tok/s",
      "baseline": 32.9,
      "source": "inkling-2-mini/RESULTS.md:354"
    },
    {
      "metric": "needles",
      "label": "option: DFlash2 drafter, at 32k and at 62k",
      "value": "3/3, 3/3",
      "unit": "found",
      "source": "inkling-2-mini/RESULTS.md:356"
    },
    {
      "metric": "vram_peak",
      "label": "option: DFlash2 drafter, after a 62k prompt",
      "value": 11.8,
      "unit": "GB",
      "source": "inkling-2-mini/RESULTS.md:357"
    },
    {
      "metric": "prefill",
      "label": "option: INK_LOAD_MODE=none, 8k prompt (decode 32.7)",
      "value": 651.6,
      "unit": "tok/s",
      "baseline": 568.9,
      "source": "inkling-2-mini/RESULTS.md:410"
    }
  ],
  "caveats": [
    "Older master (up to 225a5345b) gives NaN prompts when a loop-core layer's experts are in RAM with op offload on, and cannot run 64k with IQ4_NL without the two patches. Both are fixed in f6d944f6d.",
    "Image input at 64k needs ub 512 (serve.sh sets it with INK_MMPROJ); ub 1024 with the projector runs out of memory on the first image.",
    "128k needs the 6-15 layout at ub 64 without op offload; measured on the round-2 build, which INK_PROFILE=128k selects.",
    "A layout that loads within about 0.4 GB of the card's limit fails on its first request.",
    "The 2-bit files pass needles and the coding eval; only KLD shows how far they are from the full model.",
    "The DFlash2 drafter option takes 0.65 GB more VRAM and fits at 64k only with --spec-draft-n-ubatch 16 and ub 128.",
    "Decode after 32k on the default was measured at ub 128 on the same build; the ub 1024 runs of it fell on a busy host and are void."
  ],
  "credits": [
    "thinking-machines",
    "ggml-org",
    "llama-cpp",
    "unsloth",
    "pcuenca",
    "danielhanchen",
    "mtclinton",
    "pwilkin",
    "izento",
    "oxsilaris06",
    "apolinario",
    "multimodalart",
    "0xsero",
    "huggingface",
    "nvidia",
    "incoai",
    "z-lab"
  ],
  "findings": [],
  "contributor": {
    "name": "David Hatley",
    "github": "davidghatley"
  },
  "$schema": "https://davidghatley.github.io/3060-recipes/schema/recipe.schema.json",
  "url": "https://davidghatley.github.io/3060-recipes/recipes/inkling-2-mini/",
  "folder": "https://github.com/davidghatley/3060-recipes/tree/main/inkling-2-mini"
}
