Instructions to use askthesultans/Inkling-2-Mini-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 askthesultans/Inkling-2-Mini-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 askthesultans/Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf askthesultans/Inkling-2-Mini-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 askthesultans/Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf askthesultans/Inkling-2-Mini-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 askthesultans/Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
Use Docker
docker model run hf.co/askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use askthesultans/Inkling-2-Mini-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "askthesultans/Inkling-2-Mini-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": "askthesultans/Inkling-2-Mini-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
- Ollama
How to use askthesultans/Inkling-2-Mini-GGUF with Ollama:
ollama run hf.co/askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use askthesultans/Inkling-2-Mini-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf askthesultans/Inkling-2-Mini-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": "askthesultans/Inkling-2-Mini-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use askthesultans/Inkling-2-Mini-GGUF with Docker Model Runner:
docker model run hf.co/askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
- Lemonade
How to use askthesultans/Inkling-2-Mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Inkling-2-Mini-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use askthesultans/Inkling-2-Mini-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 askthesultans/Inkling-2-Mini-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 askthesultans/Inkling-2-Mini-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use askthesultans/Inkling-2-Mini-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf askthesultans/Inkling-2-Mini-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 "askthesultans/Inkling-2-Mini-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 GGUF (Q8_0, Q4_K_M), verified on AMD ROCm
Q8_0 and Q4_K_M GGUFs of thinkingmachines/Inkling-2-Mini (Apache-2.0), with measured quality loss against a full-precision reference, and notes for running it on multiple AMD GPUs.
Text only. llama.cpp's converter keeps the language model; the vision encoder and multi-token-prediction heads are not included.
Files
| File | Size | sha256 |
|---|---|---|
inkling-2-mini-q8_0.gguf |
27.8 GB (25.9 GiB) | cf5315ada5535dfb21b019c168ea418bdd56f1dd29f11961d25affb40fe583af |
inkling-2-mini-q4_k_m.gguf |
17.5 GB (16.3 GiB) | 4c3ab725c69bedd1efd4d9fa6fe8994684e875f205c0c8be78c16d317a946b22 |
How it was made
- Official weights (
thinkingmachines/Inkling-2-Mini, NVFP4/MXFP8) converted with llama.cpp'sconvert_hf_to_gguf.pyat commit46eb1742d(21 Nov 2026) to BF16. The converter unpacks the 4-bit weights, so the BF16 GGUF is an essentially exact copy of the release (704 tensors, 48.6 GiB, sha256a27e238eโฆ942c261). llama-quantizeBF16 โ Q8_0 and Q4_K_M. No imatrix. No other changes to the weights.- Checked that the GGUF declares
inkling2_loopand carries the loop settings (loop.start,loop.end,loop.count,loop.gate_rank,loop.varying).
Verification (3x AMD Radeon AI PRO R9700, gfx1201, ROCm 7.2.1)
Perplexity, wikitext-2 test set, context 2048, full set:
| PPL | |
|---|---|
| BF16 (reference) | 5.9341 ยฑ 0.0353 |
| Q8_0 | 5.9356 ยฑ 0.0353 (+0.03%) |
| Q4_K_M | 5.9764 ยฑ 0.0355 (+0.71%) |
KL divergence against a CPU BF16 reference (20 chunks, llama-perplexity --kl-divergence), which measures both quantisation loss and GPU-vs-CPU correctness:
| ROCm vs CPU BF16 | Mean KLD | Same top token | PPL ratio |
|---|---|---|---|
| BF16 (backend only) | 0.0026 ยฑ 0.0001 | 97.92 ยฑ 0.10% | 1.0010 ยฑ 0.0006 |
| Q8_0 | 0.0033 ยฑ 0.0001 | 97.73 ยฑ 0.10% | 1.0011 ยฑ 0.0007 |
| Q4_K_M | 0.0144 ยฑ 0.0002 | 95.04 ยฑ 0.15% | 1.0073 ยฑ 0.0014 |
Reading it: the BF16 row is ROCm against CPU on the same full-precision file, so it measures the backend alone. A gap of 0.0026 is ordinary rounding between backends (a 65B dense model measured the same way on this rig: 0.0022), so the new looped code computes correctly on ROCm. Q8_0 adds almost nothing on top of that. Q4_K_M costs about five times the backend gap and keeps the same top token 95% of the time. CPU reference: 20 chunks, PPL 5.9658, logits file sha256 b8f0fcf6โฆcb797f97.
Running it
Needs a recent llama.cpp: Inkling 2 Mini (inkling2_loop) support landed on 20 Nov 2026 (#32694, with fixes in #32429 and #32657). Older builds, and tools that bundle them, will not load it.
Which file: Q8_0 is practically lossless (+0.03% perplexity vs BF16) and fits a 32 GB card. Q4_K_M costs about 0.7% and fits a 24 GB card. Tested on RDNA4 (Radeon AI PRO R9700); it should work wherever llama.cpp's ROCm, CUDA, Vulkan, Metal or CPU backends run, but other hardware (including CDNA) was not tested here.
One GPU: -ngl 99 -sm none.
Several GPUs: read this. The looped model gives llama.cpp 48 layer slots (24 stored layers + 2 extra passes of the 12 looped ones). With -sm layer, the default split divides those 48 slots across the cards, but weights only live in the first 24, so the first card gets most of the weights and the last card may get none. On 3 cards at BF16 this put 17 of 24 layers (33 GiB) on GPU 0 and failed. A split that matches the rule, -ts 8,8,33 on three cards, put 8 stored layers on each. Repeat passes may also keep their memory on a different card from their weights, adding PCIe traffic: in one run each, Q8_0 took 15 min 35 s with the default split and 10 min 35 s with -ts 6,36,6.
Credits and licence
Model by Thinking Machines Lab, Apache-2.0; this repository redistributes a quantised copy under the same licence. GGUF support by the llama.cpp contributors. Conversion and measurements by Sam Sultan; full method and numbers: the write-up in rdna4-local-ai-lab (GitHub). Not affiliated with Thinking Machines Lab or AMD.
- Downloads last month
- 262
4-bit
8-bit
Model tree for askthesultans/Inkling-2-Mini-GGUF
Base model
thinkingmachines/Inkling-2-Mini