Instructions to use ufrik/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 ufrik/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 ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
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 ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
Use Docker
docker model run hf.co/ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use ufrik/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 "ufrik/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": "ufrik/Inkling-2-Mini-Dflash2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
- Ollama
How to use ufrik/Inkling-2-Mini-Dflash2-GGUF with Ollama:
ollama run hf.co/ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
- Unsloth Desktop
- Pi
How to use ufrik/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 ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
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": "ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ufrik/Inkling-2-Mini-Dflash2-GGUF with Docker Model Runner:
docker model run hf.co/ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
- Lemonade
How to use ufrik/Inkling-2-Mini-Dflash2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
Run and chat with the model
lemonade run user.Inkling-2-Mini-Dflash2-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use ufrik/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 ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
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 ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ufrik/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 ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16
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 "ufrik/Inkling-2-Mini-Dflash2-GGUF:BF16" \ --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 draft (GGUF, BF16)
This is a converted GGUF of the DFlash2 draft published by incoai:
incoai/Inkling-2-Mini-DFlash2. All model weights and the DFlash2 architecture are theirs; nothing here retrained or fine-tuned anything. The contribution in this repo is the GGUF packaging and the llama.cpp runtime work that makes their draft actually run against Inkling-2-Mini. Please cite / link the original repo if you use this.
A speculative-decoding draft model for
Inkling-2-Mini (the target it drafts for),
in GGUF, for llama-server's --spec-type draft-dflash2 path. It is not a standalone model:
it has no usable vocabulary head of its own and only works paired with the Inkling-2-Mini target.
This is the first DFlash2 draft for Inkling that runs under llama.cpp. Upstream llama.cpp
aborts on the first token with Inkling (see Runtime requirement).
Files
| File | Size | Tensors | Notes |
|---|---|---|---|
Inkling-2-Mini-DFlash2-Draft-BF16.gguf |
1,002,166,976 B (955.7 MiB) | 81 | 49 BF16 (990 MB) + 32 F32 (norm/scale vectors) |
SHA-256: 2407193231dea04b7d874e1a2101d34ce97e07a40843e355939d123b4318c186
Runtime requirement (read this)
Requires a llama.cpp build that carries the Inkling DFlash2 fixes. Stock 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
Cause: Inkling's LM head is padded (output.weight is [2304, 201024], real vocab 200058). The
DFlash2 candidate path takes ggml_top_k over the full padded logits and casts the result
straight to llama_token, so it emits ids in [200058, 201024) that the batch rejects. Three
changes in src/models/dflash.cpp / src/models/dflash2.cpp, all gated on
LLM_ARCH_INKLING2_LOOP, fix it:
- vocabulary clamp โ view the logits as
valid_vocab ร n_tokensbeforeggml_top_k(vocab.n_tokens()of the target), mirroring thevalid_vocab_sizeclamp in the vendor's SGLang DFlash; - target token-embedding norm โ apply the target's
tok_norm(RMS) to the draft's token embeddings, which the draft does not carry; - skip final logit soft-capping โ Inkling does not use the softcap that
dflashapplies whenfinal_logit_softcapping > 0.
Because of (2) and (3), this draft is Inkling-specific and should not be pointed at other
targets. The build used here is llama-inkling-dflash-work (llama.cpp c212d25ad + those three
patches); 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 |
[6, 24, 42, 48] (1-based; layers whose hidden states the draft reads) |
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 requirement 3) |
dflash.rope.freq_base |
10000.0 |
dflash.attention.layer_norm_rms_epsilon |
1e-6 |
tokenizer.ggml.tokens |
201024 (padded โ matches the target's storage) |
tokenizer.ggml.pre / model |
inkling2 / gpt2 |
| 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
Then open http://localhost:8080 or POST to /completion. Everything else below is tuning.
Advanced โ the configuration this draft was verified with
Served as a production service 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 3
concurrent slots, -ctk q8_0 -ctv q8_0 quantised KV/value 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. --metrics is worth adding 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) |
56.6 mean (37.9 โ 74.6) |
| Inkling-2-Mini + DSpark draft | 27.5 |
| Inkling-2-Mini, no draft | 26.2 |
The DSpark / 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 + 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. For what it is worth as a caution: the same
class of draft measured 15.8 tok/s on the mix build โ slower than drafting nothing โ so 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. Upstream repo: https://huggingface.co/incoai/Inkling-2-Mini-DFlash2
โ that is the source of every weight in this file 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 (201024-token vocab, pre = inkling2) and the special ids set
to the values the target uses.
This file deliberately keeps the selector codebooks at their trained padded width
([256, 201024]) and writes no dflash.vocab_size key. That is the convention it was verified
with, on the build named above. A second convention exists in the wild โ trimmed codebooks
([256, 200058]) plus explicit dflash.vocab_size / vocab_size_unpadded keys and an
unpadded tokenizer block โ and it also loads. The two are not interchangeable; if your build
rejects one, do not assume it will reject the other.
Limitations
- Draft-only. Cannot generate on its own.
- Inkling-specific (
tok_norm+ softcap behaviour come from the target). - Needs the patched runtime; on stock builds it aborts rather than degrades.
- Only BF16 is provided. The draft is ~1 GB; Q8_0 is possible but untested for acceptance-rate loss.
- Acceptance-rate telemetry requires starting the server with
--metrics.
License
Unresolved โ do not assume. The checkpoint is converted from
incoai/Inkling-2-Mini-DFlash2, which
publishes no license file, and its target is
thinkingmachines/Inkling-2-Mini. Both
need to be settled before this repo can carry a license. Until then treat the weights as
"all rights reserved" by their respective upstreams; the conversion script and this README are
the only parts authored here.
- Downloads last month
- 1,605
16-bit
Model tree for ufrik/Inkling-2-Mini-Dflash2-GGUF
Base model
thinkingmachines/Inkling-2-Mini