Mixed Precision GGUF layer quantization of Inkling-2-Mini by thinkingmachines

Original model: https://huggingface.co/thinkingmachines/Inkling-2-Mini

The hybrid quant employs different quantization levels on a per layer basis to enable both high performance and small file size at the same time. An extended layer definition E quant Q4_E_H for the model is defined as follows (updated 11/29/2026):

   # Layer 0..5 prelude
   # Layer 6..17 loop
   # Layer 18..23 coda
   LAYER_TYPES='[
   ["A","attn","Q","attn_q","K","attn_k","V","attn_v","O","attn_o","S","ssm","F","ffn","G","ffn_g","U","ffn_u","D","ffn_d"],
   ["MAP","VOF","0","QN_K","2","Q2_K","3","Q3_K","4","Q4_K","5","Q5_K","6","Q6_K","8","Q8_0","h","F16","f","F32"],
   ["PAD",[[1152,2304,128,1,  1280,2304,128,1],
           [2304,2304,128,1,  2304,2560,128,1,  1,2,1,1]]],
   [0 ,"Q4_K_664"],[1 ,"Q4_K_664"],[2 ,"Q4_K_664"],[3 ,"Q4_K_664"],[4 ,"Q4_K_664"],[5 ,"Q4_K_664"],

   [6 ,"Q4_K_654"],[7 ,"Q4_K_654"],[8 ,"Q4_K_654"],[9 ,"Q4_K_654"],[10,"Q4_K_654"],[11,"Q4_K_654"],
   [12,"Q4_K_654"],[13,"Q4_K_654"],[14,"Q4_K_654"],[15,"Q4_K_654"],[16,"Q4_K_654"],[17,"Q4_K_654"],

   [18,"Q4_K_664"],[19,"Q4_K_664"],[20,"Q4_K_666"],[21,"Q4_K_666"],[22,"Q4_K_666"],[23,"Q4_K_666"]
   ]'
   FLAGS="--token-embedding-type Q6_K --output-tensor-type Q6_K --override-kv inkling2_loop.expert_feed_forward_length=int:1280"

Model FFN length is padded from 1152 to 1280 to allow use of K quants (length 32 scale blocks arranged in a length 256 superblock) in the FFN tensors instead of fallback legacy quants. The updated quant (11/29/2026) applies Q4_K to FFN from layers 0..19 and Q6_K from layers 20..23, to be analagous to the source checkpoint which used QAT NVFP4 from 0..19 and MXFP8 from 20..23.

Comparison:

Quant size PPL Comment
Q4_K_M 17.5e9 6.6 FFN padded for K quants, default embedding
Q4_E_H 17.8e9 6.6 FFN padded for K quants, Q6_K embedding Q6_K output

Keep in mind PPL result is meaningless at best and outright misleading at worst for model performance estimation. Q4_K_M is slightly smaller with same perplexity and flops with incorrect answers on simple prompts Q4_E_H handles easily. PPL is summarized only as a reference for comparision for future versions of llama.cpp. There is a lot of tricky code being developed quickly on this model in particular with the looped layers which could easily impact PPL results in the short term, though model does seem to be working well so large changes in futures versions are not expected.

The quant was sized to approximately 5bpw to minimize entropy loss. The layer quants were optimized for good performance across a curated set of test prompts. The quant is 1.7e9 smaller than the original NVFP4/MXFP8 checkpoint and uses all K quants for efficient execution with CPU offload on low VRAM rigs and/or GPUs/backends which don't support NVFP4/MXFP8.

Usage:

This is a RL trained (thinking) vision capable moe model. It can accept text and image imputs and produce text outputs. The layer quants for this model were optimized for good performance on a set of test/eval prompts using greedy sampling. The model will fall into infinite generations on some prompts with greedy sampling. This effect can be mitigated by use of temperature sampling. Image mode was tested on a small set of images and found to be functional but not very accurate on bird IDs.

To run the model on a low VRAM / high CPU RAM setup it is necessary to offload expert tensors to CPU:

OT="-ot exps=CPU -ngl 99"

This will open up about 85k tokens of space in VRAM for F16 context and 128k tokens for Q8_0 context on a 4070 (12G VRAM) GPU. Token gen rate is around 11tps on a 9900k / 4070 rig. Although it only has 3.4G parameters per moe expert, layers 6..17 are looped 3 times so the per token compute load doubles to 5.4G parameters per token, making gen with CPU offload slow. The model architecture is new and llama.cpp is rapidly adding features to support it better. As of 11/27 the model has been test usable with CPU expert offload under CUDA, but is unusably slow (1 tps gen) with cuda+RPC at llama.cpp b12833.

The model will sometimes fall into rep loops when using greedy sampling but this can be mitigated with temp sampling. Gen formatting is quite goofy and does not follow standard RL think block prefix / result. The model cranks out a bunch of weird special formatting tokens in results, but not consistently on all prompts, sometimes it just ends with one special token, other times it seems to create some kind of formatted output block inside special tokens.

The model appears to evidence subjective DNA sharing with gpt oss, showing same stilted english reasoning (most likely somebodys bright idea somewhere within OpenAI to reduce amount of gen tokens in RL block), QAT, greedy sampling instability, and use of many different special formatting tokens on the output. Unlike gpt oss these formatting tokens don't seem to invalidate a perplexity eval, probably because the are not consistently generated at fixed positions but prompt dependent in this model.

Example prompt:

How high is up?  Think outside the box.

The question of how high "up" is depends entirely on the frame of reference. In a physical sense, "up" is a relative direction defined by gravity, pointing toward the center of the Earth. If you are standing on a mountain, "up" is still toward the sky, but the absolute altitude is higher.

In a metaphorical or philosophical sense, "up" can represent aspiration, progress, or a state of being. It might refer to a goal, a higher state of consciousness, or a level of achievement. In this context, "up" is not a fixed number but a direction of movement toward something better or more elevated.

If you are looking for a specific measurement, such as the height of a mountain or the altitude of an aircraft, that would require a specific context. Without that, "up" remains a concept of direction and aspiration rather than a fixed numerical value. <|end_message|>

LONG CONTEXT:

Long context test is done at Q8_0 QKV with prompt https://huggingface.co/datasets/steampunque/benchlm/blob/main/Qwen3_Runescape_Massive_Prompt.txt which tokenizes to 113963 tokens.

lm Qwen3_Runescape_Massive_Prompt.txt

Based on the Experience Table in the provided book, the maximum level is 99. The total experience needed to reach level 99 is 13,034,431. Half of this amount is 6,517,215.5.

Looking at the table, the level that requires exactly 6,517,253 experience is level 92. Therefore, you are at level 92 when you reach half the experience of the maximum level.<|end_message|>

The test passes though response appears as if it may have been trained into the model. On the 9900k/4070 prompt processing is about 80 tok/s at start and around 77 tok/s at end; length 128 batches are being shipped to the 4070 for eval to achieve these prompt processing numbers.

VISION: The model went 0 for 2 on two tough bird ID images. On one of the images it did suggest the right bird as a possible alternative. It did well summarizing the contents of a scanned text image.

CODE: The model went 3 for 4 with greedy sampling on code gen, falling into a rep loop on one of the prompts. Re running the failed prompt with TEMP=1.0 instead of greedy sampling resulted in working programs across all test prompts.

Benchmarks:

A limited set of benchmarks for the model will eventually be published here: https://huggingface.co/spaces/steampunque/benchlm

Download the file from below:

Link Type Size/e9 B Notes
Inkling-2-Mini.Q4_E_H.gguf Q4_E_H 17.8e9 B ~5bpw
Inkling-2-Mini.mmproj.gguf F16 0.64e9 B vision tower

A discussion thread about the hybrid layer quant approach can be found here on the llama.cpp git repository:

https://github.com/ggml-org/llama.cpp/discussions/13040

Downloads last month
2,430
GGUF
Model size
29B params
Architecture
inkling2_loop
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

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

Model tree for steampunque/Inkling-2-Mini-MP-GGUF

Quantized
(396)
this model