Inkling-2-Mini GGUF (Q4_K_M)

A quantized GGUF conversion of thinkingmachines/Inkling-2-Mini, packaged for inference with llama.cpp.

Overview

This repository contains a Q4_K_M quantized GGUF conversion of Thinking Machines Lab's Inkling 2 Mini, a 26.4B parameter (3.4B active, 5.4B effective active with looping) multimodal autoregressive looped transformer. The weights were quantized locally using llama.cpp commit 225a5345b (build b12627) and are provided so others can run the model with llama.cpp on consumer hardware.

Quantized by: fintecheando

Why this repo exists

Inkling 2 Mini uses the inkling2_loop architecture: 24 physical transformer layers, of which layers 6โ€“17 run three times (shared weights), yielding 48 layer applications per token. Existing third-party GGUF conversions (e.g. unsloth/Inkling-2-Mini-GGUF) declare the architecture as inkling2 with 48 blocks. Those files fail to load in current llama.cpp because the tensor layout expects 48 physical blocks โ€” for example, llama.cpp reports tensor 'blk.24.attn_q.weight' not found when the file only contains 24 blocks.

This repo publishes GGUFs that correctly declare general.architecture = 'inkling2_loop' with block_count = 24 and loop.start = 6, loop.end = 18, loop.count = 3, so they load and run in llama.cpp builds from commit 225a5345b onward.

This description is factual and is not intended to criticize any other publisher.

Requirements

  • llama.cpp built from commit 225a5345b (b12627) or newer. Older builds may not support the inkling2_loop architecture.
  • A GGUF-compatible loader: llama-cli, llama-server (llama serve), or any llama.cpp binding.

Files

File Quant Size SHA256 Notes
inkling2-mini-Q4_K_M.gguf Q4_K_M 17 GB eb0d1fab25e0b01999dd92770143bf412fb39574e5dffbb4f0d4d02e8a196d41 4-bit medium quant; best balance of size and quality for this model

Usage

Via Hugging Face Hub (llama serve)

llama serve -hf fintecheando/Inkling-2-Mini-GGUF:Q4_K_M \
  -c 65536 -ub 128 -ot \
  --ctx-shift 0

This starts an OpenAI-compatible API server at http://localhost:8080/v1/chat/completions (and /v1/completions).

Direct file

llama-cli -m inkling2-mini-Q4_K_M.gguf -p "The capital of France is" -n 200 -c 512
llama-server -m inkling2-mini-Q4_K_M.gguf -c 65536 -ub 128 -ot --host 0.0.0.0 --port 8080

Tested configuration

  • Hardware: RTX 3060 12 GB, 32 GB RAM
  • llama.cpp: commit 225a5345b (b12627), built with CUDA
  • Context: 64K
  • KV cache: Q8_0
  • -ub 128 (uniform batch size)
  • Expert (MoE) layers 0โ€“5 and 18โ€“23 offloaded to CPU with -ot; looped core layers 6โ€“17 kept on GPU

Measured on one machine: ~55 tokens/s prompt processing, ~14 tokens/s generation. These are single-machine measurements, not guarantees โ€” your results will vary with hardware, context length, batch size, and offload settings.

Notes for low-VRAM GPUs

The looped core layers (6โ€“17) run three times per token and are the compute-heavy part of the model; keeping them on the GPU matters most for speed. The non-looped layers (0โ€“5, 18โ€“23) can be offloaded to CPU with -ot to save VRAM with minimal speed impact.

This architecture's attention may not use flash attention in llama.cpp, so the compute buffer grows with -ub and context length. On a 12 GB GPU, large contexts combined with large -ub can exceed VRAM โ€” reduce -ub or context if you see out-of-memory errors.

How it was made

The GGUF was converted from the original thinkingmachines/Inkling-2-Mini weights using this llama.cpp version's convert_hf_to_gguf.py, then quantized with llama-quantize to Q4_K_M. The exact command lines and whether an importance (imatrix) matrix was used were not recorded; if you need them, request them from the quantizer.

License & attribution

Disclaimer

Quantization can reduce model quality relative to the original BF16 weights. These GGUF files are provided as-is, with no warranties of any kind.

Downloads last month
370
GGUF
Model size
26B params
Architecture
inkling2_loop
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for fintecheando/Inkling-2-Mini-GGUF

Quantized
(464)
this model