How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf bouroo/Inkling-2-Mini-MXFP4:
# Run inference directly in the terminal:
llama cli -hf bouroo/Inkling-2-Mini-MXFP4:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf bouroo/Inkling-2-Mini-MXFP4:
# Run inference directly in the terminal:
llama cli -hf bouroo/Inkling-2-Mini-MXFP4:
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf bouroo/Inkling-2-Mini-MXFP4:
# Run inference directly in the terminal:
./build/bin/llama cli -hf bouroo/Inkling-2-Mini-MXFP4:
Use Docker
docker model run hf.co/bouroo/Inkling-2-Mini-MXFP4:
Quick Links

Inkling-2-Mini MXFP4 + DSpark

MXFP4 quantization of thinkingmachines/Inkling-2-Mini with a matching MXFP4 DSpark speculative-decoding drafter, plus the vision projector for image input.

File Size Layout Runtime Drafter
Inkling-2-Mini-UD-MXFP4.gguf 14.77 GB 48-block inkling2 Unsloth prebuilt yes
dspark/dspark-Inkling-2-Mini-MXFP4.gguf 0.18 GB drafter Unsloth prebuilt โ€”
Inkling-2-Mini-MXFP4.gguf 14.77 GB looped inkling2_loop mainline + LM Studio no
mmproj-F16.gguf 0.64 GB vision projector stock llama.cpp + LM Studio โ€”

Two targets, one drafter. Pick the target by runtime, not by size โ€” they are the same weights in the two layouts llama.cpp ships. The UD target is derived from Unsloth's root GGUF; both have expert scales folded; see Quantization detail.

  • Inkling-2-Mini-UD-MXFP4.gguf โ€” 48-block inkling2 layout. Needs Unsloth's prebuilt; stock llama.cpp and LM Studio reject it (check_tensor_dims: tensor 'blk.24.attn_q.weight' not found).
  • Inkling-2-Mini-MXFP4.gguf โ€” looped inkling2_loop layout. Loads on stock llama.cpp and LM Studio.

Both layouts pair with the drafter once the engine carries DSpark support for Inkling-2. See Drafter support.

mmproj-F16.gguf is the same encoder Unsloth ships (inkling2v projector, 640px / 20px patches, 23 blocks). It is one file for both target layouts. See Vision.

Which runtime

Runtime 48-block target Looped target Drafter
Unsloth b12588-mix-c0c3de8 yes no (unknown architecture) yes
llama.cpp 29b52d3 + PR #32218 no yes yes
llama.cpp mainline no yes no
LM Studio 2.80.1 no yes no

Use Unsloth's prebuilt for the 48-block file:

curl -L -o llama.tgz https://github.com/unslothai/llama.cpp/releases/download/b12588-mix-c0c3de8/llama-b12588-mix-c0c3de8-bin-macos-arm64.tar.gz
tar xzf llama.tgz
# with the drafter
llama-cli -m Inkling-2-Mini-UD-MXFP4.gguf \
          -md dspark/dspark-Inkling-2-Mini-MXFP4.gguf \
          --spec-type draft-dspark --spec-draft-n-max 3 \
          -ngl 99 -c 4096 -p "your prompt"

# target only
llama-cli -m Inkling-2-Mini-UD-MXFP4.gguf -ngl 99 -c 4096 -p "your prompt"

--spec-type draft-mtp does not apply: the model ships a DSpark block drafter, not an MTP head. Do not pin the drafter to one device (-devd) โ€” it borrows the target's embeddings and output head.

Drafter support

The drafter's tensors โ€” dflare_norm, attn_k_ctx, attn_v_ctx, dspark_fuse, dspark_norm, dspark_hidden_out โ€” come from PR #32218, still open and unmerged upstream. That is the whole reason a stock build rejects it. It is also a third DSpark variant, DSPARK_INKLING2, whose joint_proj is {2*n_embd + 2*rank, 3*rank} = {5120, 768} โ€” the shape this file carries. The older DSPARK variant wants {n_embd + 2*rank, 3*rank} = {2816, 768}, which is why the released drafter fails on a build that only knows that variant.

The PR applies cleanly to 29b52d3 and to 19bc41d. Building it takes ~3 minutes and makes the drafter work on both layouts:

git clone --depth=1 --revision 29b52d398b294509746ec0a3f28948a3107c0213 \
  https://github.com/ggml-org/llama.cpp && cd llama.cpp
curl -sL -H "Accept: application/vnd.github.v3.diff" \
  https://api.github.com/repos/ggml-org/llama.cpp/pulls/32218 -o dspark.diff
git apply dspark.diff
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=ON -DBUILD_SHARED_LIBS=ON
cmake --build build -j8 --target llama-cli llama-server

Measured on M4 Pro 48 GB, -c 4096, --spec-draft-n-max 3:

Prompt Layout No drafter Drafter
200-token list looped 26.6 / 26.7 37.0 / 38.3
200-token list 48-block 26.1 30.9
400-token explainer looped 27.0 / 27.0 23.3 / 23.2
400-token explainer 48-block 26.2 19.0

Draft acceptance was 26.4% (52 accepted / 197 generated, mean length 1.79) on a short chat turn. Long generations regress โ€” the draft cost outweighs acceptance once the target is already compute-bound.

Why LM Studio cannot run the drafter

LM Studio 2.80.1 bundles llama.cpp 29b52d398 โ€” the same base commit โ€” so it has inkling2_loop and the joint_proj DSpark variant, but not PR #32218. Concretely:

  • Its engine advertises --spec-type draft-dspark, and its UI exposes llm.load.speculativeDecoding.draftModel plus ...draftDsparkSidecar.
  • Setting both is accepted, but the spawned llama-server receives no --model-draft and no --spec-type. Its compatibility check drops the drafter silently; the model loads and generates without speculation.
  • Swapping in a newer libllama-common fails: LM Studio ships a patched fork exporting six symbols absent from upstream, including a 3-argument common_init_from_params(common_params&, std::string&, bool), common_init_result::fit_failed(), common_speculative_init_result::error(), mtmd_init_from_file_with_error(), mtmd_get_memory_usage(), and hash_sha256(). Its shim links against all of them, so a drop-in replacement breaks at load with Symbol not found.

Running the drafter in LM Studio therefore needs either a runtime update that carries PR #32218, or a custom engine build matching that private ABI. Do not put draftDspark in the per-model config: it is accepted and then ignored, so it only misleads.

Vision

mmproj-F16.gguf adds the vision encoder; the model is natively multimodal, so the text GGUFs alone have no sight. One projector serves both target layouts.

# one-shot, stock llama.cpp
llama-mtmd-cli -m Inkling-2-Mini-MXFP4.gguf \
               --mmproj mmproj-F16.gguf \
               --image your.png -c 4096 -ngl 99 --jinja \
               -p "Describe this image."

--jinja is required: without it llama-mtmd-cli aborts with this custom template is not supported.

llama-mtmd-cli has no -md flag, so vision and the drafter combine through llama-server, which takes both:

llama-server -m Inkling-2-Mini-MXFP4.gguf \
             --mmproj mmproj-F16.gguf \
             -md dspark/dspark-Inkling-2-Mini-MXFP4.gguf \
             --spec-type draft-dspark --spec-draft-n-max 3 \
             -c 4096 -ngl 99 --jinja --port 8080

Verified together: 73 from a rendered image with draft acceptance 58.3% (56/96) โ€” image prompts draft unusually well.

Encoder is inkling2v: 640px images, 20px patches, 23 blocks, 1024-dim, 2304-dim projection, spatial merge 2. Measured on M4 Pro: ~354 ms to encode one 640px image.

LM Studio

Drop mmproj-F16.gguf next to the target GGUF in its model directory and LM Studio detects the vision adapter on the next load. The loaded size grows from 14.77 GB to 15.41 GB, which is how you know it was picked up. Then use the normal OpenAI chat API:

{"model": "bouroo/inkling-2-mini-mxfp4/inkling-2-mini-mxfp4.gguf",
 "messages": [{"role": "user", "content": [
   {"type": "text", "text": "What two digits are in this image?"},
   {"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}]}]}

Verified end to end: 42 and 73 from two different rendered images, both through llama-mtmd-cli and through LM Studio's HTTP API.

Recommended settings

From Unsloth's Inkling-2-Mini guide:

Temperature Top-p Top-k Min-p
1.0 1.0 0 0.0

32K context, --jinja, --parallel 1. The GGUF already carries these as general.sampling.*, and common/common.cpp applies them as defaults โ€” a per-flag user setting always wins (if (config & user_config) return;), so an explicit --temp 0 or "temperature": 0 still takes effect.

Verified with no sampling flags on the server:

sampler params: top_k = 0, top_p = 1.000, min_p = 0.000, ... temp = 1.000

LM Studio

LM Studio does not read general.sampling (zero references in its bundle), so its defaults live in a per-model config file:

~/.lmstudio/.internal/user-concrete-model-default-config/<vendor>/<repo>/<file>.gguf.json

{
  "preset": "",
  "operation": {
    "fields": [
      { "key": "llm.prediction.temperature", "value": 1 },
      { "key": "llm.prediction.topPSampling", "value": { "checked": true, "value": 1 } },
      { "key": "llm.prediction.topKSampling", "value": 0 },
      { "key": "llm.prediction.minPSampling", "value": { "checked": true, "value": 0 } }
    ]
  },
  "load": {
    "fields": [
      { "key": "llm.load.contextLength", "value": 32768 },
      { "key": "llm.load.numParallelSessions", "value": 1 }
    ]
  }
}

That config applies only to the looped Inkling-2-Mini-MXFP4.gguf, which is the one LM Studio can load. Leave llm.load.contextLength at 32768: the 131072 default makes LM Studio estimate 50.12 GB and refuse to load on a 48 GB machine.

LM Studio cannot run the drafter at all โ€” its engine predates the DSpark support this file needs, and it silently drops the draft model. Details: Why LM Studio cannot run the drafter. Do not add draftDspark to the config; it is accepted then ignored.

Measured behaviour

M4 Pro 48 GB, Metal, -c 4096, greedy, --spec-type draft-dspark --spec-draft-n-max 3.

Short generations get faster; long ones get slower:

Prompt n No drafter With drafter
What is 17*23? Just the number. 48 27.1, 27.6, 27.3 29.4, 33.3, 30.5
What is 17*23? Answer with just the number. 48 27.1, 27.3, 27.0 33.7, 27.3, 31.4
ISO-8601 parser function 400 27.1, 27.0, 26.9 23.3, 23.2, 21.3

Values are tok/s, three runs each. Acceptance over a 300-token code generation: 44.6% for the BF16 drafter, 36.4% for this MXFP4 drafter (170/381 vs 154/423 accepted of 3 drafted). Lower acceptance means more wasted draft compute, which is why long generations regress while short bursts still win. n_max above 3 regressed further (19.9 โ†’ 19.0 โ†’ 15.8 tok/s at n_max 1, 3, 7).

The drafter is a net loss on output longer than roughly a paragraph on this hardware. Use it for short answers, tool calls and classification; leave it off for long-form generation.

Quantization detail

Target:

Tensor group Type
expert ffn_gate_up_exps, ffn_down_exps MXFP4
attention projections Q8_0
pre-loop dense FFN, embeddings, output BF16
norms, conv kernels, router, loop control F32
expert outer .scale NVFP4 scales retained (40 tensors)

Drafter: all 30 BF16 tensors MXFP4, dspark_fuse, norms and biases F32. One tensor needed fallback in each direction; dspark_fuse.weight must stay F32 โ€” quantizing it to F16 trips binary_op: unsupported types: dst: f32, src0: f32, src1: f16 at draft time.

Note on llama-quantize behaviour: ftype MXFP4_MOE only assigns MXFP4 to tensors matching a MoE name pattern. The drafter is entirely dense, so it needs explicit per-tensor assignment via --tensor-type-file (name=MXFP4), otherwise everything silently becomes Q8_0.

MXFP8: not a GGUF type

Inkling-2-Mini's source checkpoint ships in mixed NVFP4 and MXFP8. MXFP8 is a checkpoint precision โ€” it has no ggml type and no GGUF equivalent. Across mainline 19bc41d, current master and Unsloth master, the string mxfp8 appears in zero files under ggml/ or src/.

The nearest GGUF type is F8_E4M3 (plain FP8, type 43). It is unusable here:

  • llama-quantize exposes no FP8 ftype (invalid ftype 'F8_E4M3')
  • Metal hard-rejects it for matmul: ggml-metal-device.m returns false when op->src[0]->type == GGML_TYPE_F8_E4M3, so it would run on CPU only

So this repo ships MXFP4, which has 13 native Metal kernels and runs on the GPU. That is also why the target is MXFP4 rather than a closer-to-source NVFP4: NVFP4 has zero Metal kernels in this build.

Quality

Verified before publishing, both files together, on Unsloth b12588:

  • 17*23 โ†’ 391
  • Rayleigh-scattering explanation coherent and correct
  • Greedy output matches the BF16-drafter and no-drafter runs on short prompts

The target is requantized from NVFP4 expert weights (the only quantized experts in the Q8_K_XL release), so it is a second-generation quant for those tensors. Spot checks pass; it has not been benchmarked against the Q8 source on a full eval suite.

Reasoning-heavy model: give it โ‰ฅ600 tokens or content comes back empty with the budget spent in the reasoning channel.

Files not included

Only mmproj-F16.gguf ships here. Unsloth also publishes mmproj-BF16.gguf (0.64 GB) and mmproj-F32.gguf (1.27 GB); they are the same encoder at different precision. F16 is the size/quality midpoint and is what was verified above.

Downloads last month
484
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 bouroo/Inkling-2-Mini-MXFP4

Quantized
(314)
this model