Instructions to use maternion/Inkling-2-Mini-DFlash2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with 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 maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
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 maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "maternion/Inkling-2-Mini-DFlash2-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "maternion/Inkling-2-Mini-DFlash2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
- Ollama
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with Ollama:
ollama run hf.co/maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with Docker Model Runner:
docker model run hf.co/maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
- Lemonade
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Inkling-2-Mini-DFlash2-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use maternion/Inkling-2-Mini-DFlash2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "maternion/Inkling-2-Mini-DFlash2-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Inkling-2-Mini-DFlash2-GGUF
Please re-pull the GGUFs โ they were updated on Nov 27. Earlier copies are missing
token_embd_norm.weightdue to layer name mismatch, which gives zero draft acceptance on current llama.cpp.
Requires a
llama.cppbuild from current master with Inkling DFlash2 support (PR #33073). Older stock builds such asb12588andb12675abort on the first token; see Runtime requirement.
This repo packages the DFlash2 draft for
Inkling-2-Mini as GGUF, for
llama-server's --spec-type draft-dflash2 path. It is a speculative-decoding draft, not a
standalone model: it has no usable vocabulary head of its own and only works paired with the
Inkling-2-Mini target.
The weights and architecture come from
incoai/Inkling-2-Mini-DFlash2; nothing
here was retrained or fine-tuned. The BF16 GGUF was converted by
ufrik and published at
ufrik/Inkling-2-Mini-Dflash2-GGUF.
This repo mirrors that BF16 file and adds the smaller quantizations derived from it.
This is the first DFlash2 draft for Inkling that runs under llama.cpp. Stock upstream builds abort on the first token (see Runtime requirement).
Files
| File | Size | Tensors | Notes |
|---|---|---|---|
Inkling-2-Mini-DFlash2-Draft-BF16.gguf |
1001 MB | 82 | 49 BF16 + 32 F32 norm/scale vectors + F32 embed norm |
Inkling-2-Mini-DFlash2-Draft-Q8_0.gguf |
538 MB | 82 | 8-bit, near-lossless |
Inkling-2-Mini-DFlash2-Draft-Q6_K.gguf |
418 MB | 82 | 6-bit K-quant |
Inkling-2-Mini-DFlash2-Draft-Q5_K_M.gguf |
357 MB | 82 | 5-bit K-quant, medium |
Inkling-2-Mini-DFlash2-Draft-Q4_K_M.gguf |
300 MB | 82 | 4-bit K-quant, medium |
The quantized files are produced from the BF16 file with llama-quantize presets; the BF16 file
is the reference conversion. Lower quantizations trade draft quality for size and have not been
benchmarked separately for acceptance rate. Q8_0 is the closest to BF16.
Runtime requirement
You need a llama.cpp build with Inkling-2 DFlash2 support, i.e. master since
PR #33073 (merged 2026-11-26). Older builds,
including b12588 and b12675, abort on the first completion:
common/common.cpp: get_sub_batch: failed to add token 200899 at index 3 (error -2, n = 4)
GGML_ABORT -> common_batch::get_sub_batch -> server_context_impl::decode
Inkling's LM head is padded (output.weight is [2304, 201024], real vocab 200058). The DFlash2
candidate path runs ggml_top_k over the draft logits and casts the result straight to
llama_token, so a draft carrying the padded 201024 vocab can emit ids in [200058, 201024) that
the batch rejects. The files here use the target's real 200058 vocab, so that cannot happen.
The runtime also needs two Inkling-specific things: the target's embed RMS norm, which these files
store as token_embd_norm.weight (the loader treats it as optional, so a draft without it loads
but drafts from unnormalized embeddings and gets zero acceptance), and selector soft-capping after
the candidate correction instead of on the final logits. Because of these the draft is
Inkling-specific
and should not be pointed at other targets. The target checkpoint is the ordinary padded
Inkling-2-Mini-UD-Q8_K_XL.gguf; no repacked or unpadded target is needed.
Architecture
| Key | Value |
|---|---|
general.architecture |
dflash |
dflash.block_count |
5 |
dflash.block_size |
8 (block-diffusion draft block) |
dflash.embedding_length / feed_forward_length |
2304 / 6912 |
dflash.target_layers |
[5, 23, 41, 48] (0-based layer-visit ids; the last is the final norm) |
dflash.selector_rank / selector_top_k |
256 / 16 |
dflash.conv_kernel_size / conv_group_size |
2 / 16 |
dflash.attention.sliding_window |
2048 (all 5 layers) |
dflash.context_length |
1,048,576 |
dflash.final_logit_softcapping |
30.0 (ignored, see item 3 above) |
dflash.rope.freq_base |
10000.0 |
dflash.attention.layer_norm_rms_epsilon |
1e-6 |
tokenizer.ggml.tokens |
200058 (target's real vocab) |
tokenizer.ggml.pre / model |
inkling2 / gpt2 |
token_embd_norm.weight |
2304 F32 (the target's embed RMS norm) |
| eos / eot / pad / mask | 200006 / 200006 / 199999 / 200056 |
| chat template | present (inherited from the target) |
Serve
Minimal
If you already have Inkling-2-Mini in GGUF and a patched build, this is all you need:
llama-server \
-m Inkling-2-Mini-UD-Q8_K_XL.gguf \
--spec-draft-model Inkling-2-Mini-DFlash2-Draft-BF16.gguf \
--spec-type draft-dflash2 \
--spec-draft-n-max 7
Swap -BF16 for -Q8_0, -Q6_K, -Q5_K_M or -Q4_K_M to use a smaller draft. Then open
http://localhost:8080 or POST to /completion.
Advanced
The configuration this draft was verified with, served on an M3 Ultra (96 GB) alongside the target and its vision projector:
llama-server \
-m Inkling-2-Mini-UD-Q8_K_XL.gguf \
--mmproj Inkling-2-Mini-GGUF-mmproj-BF16.gguf/mmproj-BF16.gguf \
--spec-draft-model Inkling-2-Mini-DFlash2-Draft-BF16.gguf \
--spec-type draft-dflash2 \
--spec-draft-n-max 7 --spec-draft-n-min 0 \
-c 368640 --parallel 3 -fa on -ngl 99 -ctk q8_0 -ctv q8_0 \
--jinja --reasoning on --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --repeat-penalty 1.0
What the extra flags buy: --mmproj vision, -c 368640 --parallel 3 the full context with three
concurrent slots, -ctk q8_0 -ctv q8_0 a quantized KV cache (the reason 368 K fits in 96 GB),
--jinja the target's chat template, --reasoning on Inkling's thinking mode, and the explicit
sampling block so the server defaults match the served model. Add --metrics if you want
draft-acceptance numbers in the log.
Measured performance
Same machine (sun, M3 Ultra 96 GB), same server, --temp 0, 4 prompts ร 2 reps (warm-up rep
discarded), decode speed from the server's own timings.predicted_per_second:
| Config | tok/s |
|---|---|
Inkling-2-Mini + this draft (draft-dflash2, n-max 7, BF16) |
56.6 mean (37.9 โ 74.6) |
| Inkling-2-Mini + DSpark draft | 27.5 |
| Inkling-2-Mini, no draft | 26.2 |
The DSpark and no-draft rows were measured on the Unsloth b12588-mix build at ctx 32768,
1 slot, so they are not a controlled baseline for the 56.6 row (c212d25ad plus patches,
ctx 368640, 3 slots). Treat 56.6 as the served-configuration figure and re-measure your own
no-draft baseline before quoting a speedup ratio. As a caution: the same class of draft measured
15.8 tok/s on the mix build, slower than drafting nothing. The engine matters far more than the
draft file.
Provenance
Converted from incoai/Inkling-2-Mini-DFlash2
(model.safetensors, 990 MB, model_type: qwen3, DFlash2DraftModel) with convert_hf_to_gguf.py
from llama.cpp c212d25ad, --outtype bf16. The resulting BF16 GGUF is
ufrik/Inkling-2-Mini-Dflash2-GGUF,
which this repo mirrors; the quantized variants here are derived from it. The upstream repo is
the source of every weight in these files, and the place to go for the original safetensors, the
authors' SGLang reference (sglang_inkling_dflash2.py) and any updated draft.
That repo ships no tokenizer, which makes the stock converter write
tokenizer.ggml.eos_token_id = None and die in struct.pack. The tokenizer metadata was
therefore taken from the Inkling-2-Mini target (pre = inkling2), with the special ids set to the
values the target uses.
ufrik's BF16 kept the target's padded 201024-token layout, and the runtime sizes the selector
codebooks from the draft's own vocab, so that layout could propose padding ids. These files keep
the same weights but trim the tokenizer block and the two selector codebooks to the target's real
200058 vocab, add the target's embed norm as token_embd_norm.weight (missing from conversions
made before PR #33073), and set two metadata values to match the model config:
dflash.target_layers = [5, 23, 41, 48] (0-based visit ids) and
dflash.selector_softcap_after_correction = true. The codebooks are the only weights that change,
and only by dropping the unused padding rows. No dflash.vocab_size key is needed with this
layout.
Limitations
- Draft-only. Cannot generate on its own.
- Inkling-specific (
tok_normand softcap behaviour come from the target). - Needs the runtime with Inkling-2 DFlash2 support (master since PR #33073).
- BF16 is the reference conversion. Q8_0, Q6_K, Q5_K_M and Q4_K_M are provided for smaller footprints but have not been benchmarked for acceptance-rate loss.
- Acceptance-rate telemetry requires starting the server with
--metrics.
License
Apache-2.0, following the base model
incoai/Inkling-2-Mini-DFlash2. The
target model, thinkingmachines/Inkling-2-Mini,
carries its own license, which also applies to the tokenizer metadata taken from it. The
conversion script and this README are the only parts authored here.
- Downloads last month
- 1,276
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for maternion/Inkling-2-Mini-DFlash2-GGUF
Base model
thinkingmachines/Inkling-2-Mini