Instructions to use analogalok/Inkling-2-Mini-SplitK-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 analogalok/Inkling-2-Mini-SplitK-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 analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL # Run inference directly in the terminal: llama cli -hf analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL # Run inference directly in the terminal: llama cli -hf analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
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 analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL # Run inference directly in the terminal: ./build/bin/llama cli -hf analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
Use Docker
docker model run hf.co/analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
- Llama new
- LM Studio
- Jan
- Ollama
How to use analogalok/Inkling-2-Mini-SplitK-GGUF with Ollama:
ollama run hf.co/analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
- Unsloth Desktop
- Pi
How to use analogalok/Inkling-2-Mini-SplitK-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
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": "analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use analogalok/Inkling-2-Mini-SplitK-GGUF with Docker Model Runner:
docker model run hf.co/analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
- Lemonade
How to use analogalok/Inkling-2-Mini-SplitK-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
Run and chat with the model
lemonade run user.Inkling-2-Mini-SplitK-GGUF-UD-Q3_K_XL
List all available models
lemonade list
- Hermes Agent
How to use analogalok/Inkling-2-Mini-SplitK-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 analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
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 analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use analogalok/Inkling-2-Mini-SplitK-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL
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 "analogalok/Inkling-2-Mini-SplitK-GGUF:UD-Q3_K_XL" \ --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-UD-Q3_K_XL (Split Per-Layer MoE Top-k GGUFs)
Per-layer asymmetric MoE routing builds of unsloth/Inkling-2-Mini-GGUF (UD-Q3_K_XL) that match active MoE expert counts (expert_used_count) to your GPU VRAM vs CPU DDR4 memory tiers โ running natively in stock llama.cpp / Unsloth -mix builds with zero C++ recompilation.
Credits: Base model by Thinking Machines Lab; Dynamic 3-bit quantization (
UD-Q3_K_XL) by Unsloth. These files only change theinkling2_loop.expert_used_countmetadata key from a global scalar8to a 24-elementUINT32array; all tensor weights remain bit-for-bit identical to Unsloth'sUD-Q3_K_XL.
Why Split Top-k?
On 8 GB GPUs (e.g., RTX 4060 Laptop + 16 GB DDR4), the middle 3ร looped core sits in fast VRAM (~256 GB/s), while outer layers spill to slow CPU DDR4 (~25โ40 GB/s).
Global --override-kv ...expert_used_count=int:5 slows down real tasks because starving the 3ร looped core causes rambling (+28% token bloat), while global k=6 still leaves CPU DDR4 bandwidth on the table. Setting expert_used_count per layer inside the GGUF header fixes both:
| File | blk.0โ5 (CPU) |
blk.6 (Loop Edge) |
blk.7โ17 (3ร GPU Core) |
blk.18โ23 (CPU) |
WikiText-2 PPL (8,192 tok) |
Best For |
|---|---|---|---|---|---|---|
Unsloth UD-Q3_K_XL (k=8) |
8 | 8 | 8 | 8 | 8.2201 |
Baseline lossless |
Global k=6 (--override-kv) |
6 | 6 | 6 | 6 | 8.4247 |
Untouched GGUF |
Inkling-2-Mini-UD-Q3_K_XL-split4684.gguf |
4 | 6 | 8 | 4 | 8.6100 (better than global k=5 8.6439) |
8 GB GPUs at 32kโ64k ctx (blk.6 on CPU via -ot [0-6]) |
Inkling-2-Mini-UD-Q3_K_XL-split585.gguf |
5 | 8 | 8 | 5 | 8.3989 (beats global k=6!) |
8 GB GPUs at 4kโ8k ctx (-ot [0-5]) or 10โ12 GB+ GPUs |
Recommended llama-server Command (8 GB RTX 4060, 32k Context)
Important: Do NOT pass
--override-kv inkling2_loop.expert_used_count=...โ that would overwrite the per-layer GGUF array back to a scalar!
llama-server -m Inkling-2-Mini-UD-Q3_K_XL-split4684.gguf \
--jinja --ctx-size 32768 --parallel 1 \
--cache-type-k q4_0 --cache-type-v q4_0 \
--temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 \
-ub 64 -ngl 99 -fit off -fa on -t 6 -tb 12 \
--no-op-offload --load-mode none \
-ot "blk\.([0-6]|1[89]|2[0-3])\.ffn_.*_exps.*=CPU" \
--chat-template-kwargs '{"reasoning_effort":0.3}'
- Measured on RTX 4060 Laptop (8 GB) + 16 GB DDR4 (
32,768ctx,q4_0KV, Unslothb12651-mix):- Clean
3.2kprompt:154.44 t/sprefill ยท30.46 t/sdecode (+28% pp / +7% tgvs globalk=6,+81% pp / +34% tgvsk=8). 11,374-token summarization while screen recording:114.92 t/sprefill ยท25.71 t/sdecode.
- Clean
For 4kโ8k max speed with Inkling-2-Mini-UD-Q3_K_XL-split585.gguf, change --ctx-size 8192 and [0-6] โ [0-5] (puts blk.6 on GPU at k=8).
Already Have Unsloth's GGUF? Patch Locally in < 1s
Use patch_split_k.py included in this repo instead of re-downloading 12.7 GiB:
# Write a patched copy:
python patch_split_k.py --gguf Inkling-2-Mini-UD-Q3_K_XL.gguf --preset 4684 --out Inkling-2-Mini-UD-Q3_K_XL-split4684.gguf
# Or patch in-place (<1s, 0 GB extra disk, saves 12 MB header backup):
python patch_split_k.py --gguf Inkling-2-Mini-UD-Q3_K_XL.gguf --preset 4684 --in-place
python patch_split_k.py --gguf Inkling-2-Mini-UD-Q3_K_XL.gguf --restore
- Downloads last month
- 217
3-bit
Model tree for analogalok/Inkling-2-Mini-SplitK-GGUF
Base model
thinkingmachines/Inkling-2-Mini