Instructions to use eaddario/Inkling-2-Mini-DKL 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 eaddario/Inkling-2-Mini-DKL 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 eaddario/Inkling-2-Mini-DKL:F16 # Run inference directly in the terminal: llama cli -hf eaddario/Inkling-2-Mini-DKL:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf eaddario/Inkling-2-Mini-DKL:F16 # Run inference directly in the terminal: llama cli -hf eaddario/Inkling-2-Mini-DKL:F16
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 eaddario/Inkling-2-Mini-DKL:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf eaddario/Inkling-2-Mini-DKL:F16
Use Docker
docker model run hf.co/eaddario/Inkling-2-Mini-DKL:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use eaddario/Inkling-2-Mini-DKL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eaddario/Inkling-2-Mini-DKL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eaddario/Inkling-2-Mini-DKL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/eaddario/Inkling-2-Mini-DKL:F16
- Ollama
How to use eaddario/Inkling-2-Mini-DKL with Ollama:
ollama run hf.co/eaddario/Inkling-2-Mini-DKL:F16
- Unsloth Desktop
- Pi
How to use eaddario/Inkling-2-Mini-DKL with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf eaddario/Inkling-2-Mini-DKL:F16
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": "eaddario/Inkling-2-Mini-DKL:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use eaddario/Inkling-2-Mini-DKL with Docker Model Runner:
docker model run hf.co/eaddario/Inkling-2-Mini-DKL:F16
- Lemonade
How to use eaddario/Inkling-2-Mini-DKL with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull eaddario/Inkling-2-Mini-DKL:F16
Run and chat with the model
lemonade run user.Inkling-2-Mini-DKL-F16
List all available models
lemonade list
- Hermes Agent
How to use eaddario/Inkling-2-Mini-DKL with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf eaddario/Inkling-2-Mini-DKL:F16
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 eaddario/Inkling-2-Mini-DKL:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use eaddario/Inkling-2-Mini-DKL with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf eaddario/Inkling-2-Mini-DKL:F16
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 "eaddario/Inkling-2-Mini-DKL:F16" \ --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"
Experimental Degrade-one Delta-KL (Kullback–Leibler) quantization of thinkingmachines/Inkling-2-Mini
These GGUFs are generated by allocating a global bits-per-weight (bpw) or file-size budget through output-sensitive per-tensor measurements. To determine this, each tensor is individually quantized to a low bpw size while the remaining tensors are kept at source precision to measure KL distortion.
While the Delta-KL scoring is only possible with this fork, the quants produced are compatible with standard llama.cpp. There's a pull request (#33794) to merge the changes back into the core llama.cpp project. This may or may not ever happen so, until then, the modified versions will be available on GitHub.
Original model: thinkingmachines/Inkling-2-Mini
From the original model creators:
Inkling 2 Mini
![]()
1. General Information
Inkling 2 Mini is a general-purpose multimodal model that accepts text and image inputs and generates text outputs. It is intended for use in English and other languages, and across multiple coding languages. The model is designed to be used by developers building AI-powered applications, including agentic and tool-use systems, coding assistants, chatbots, and retrieval-augmented generation systems, and is suitable for general-purpose conversational use, instruction-following, and other natural language and visual tasks. It is released with open weights to support research, fine-tuning and integration into third-party products by downstream developers.
Languages: English, general multilingual support
Model provider: Thinking Machines Lab, Inc.
Date of release: November 20, 2026
License: Apache 2.0
⚠️ PLEASE READ THIS BEFORE USING THESE EXPERIMENTAL VERSIONS! ⚠️
An area of personal interest is finding ways to optimize the inference performance of LLMs when deployed in resource-constrained environments like commodity hardware, desktops, laptops, mobiles, edge devices, etc. There are many approaches to accomplish this, including architecture simplification and knowledge distillation, but my focus has been primarily on quantization and pruning.
The method extends --target-bpw/--target-size allocation with degrade-one Delta-KL. llama-imatrix --dkl-probe collects an imatrix and then measures one quantizable tensor at a time: it quantizes only that tensor, dequantizes it back to source precision, and compares the resulting model's next-token probability distributions with those of the unmodified model.
The probe type is q2_K (or q4_0 if the tensor's row length is not a multiple of 256); tensors with no suitable probe type are skipped and remain unprobed. More implementation detail is available in the fork's README.
For testing and comparison, I use models produced by Bartowski (see credits below), Unsloth (Daniel and Michael Han do some really interesting stuff!), and occasionaly ISTA DAS Lab (very high quality models!), but when they do not provide suitable versions the tests and comparisons are against standard quantization without target-size optimizations.
All experimental versions are generated using an appropriate imatrix created from datasets available at eaddario/imatrix-calibration. In llama.cpp, an imatrix is a calibration file derived from running representative text through the model and collecting activation statistics. It is used to weight quantization error so that error in more important directions, as estimated from activations, is penalized more heavily.
The process to generate these models is roughly as follows:
- Convert the original model's safetensors to GGUF F16.
- Estimate the Perplexity score for the F16 model (baseline) using the wikitext-2-raw-v1 dataset, and save the logits.
- Collect the imatrix and generate the Delta-KL probes.
- Quantize the baseline model to a target average BPW.
- Calculate Perplexity, KL divergence, ARC (Easy+Challenge), GPQA-Diamond, HellaSwag, MMLU-Redux, Truthful QA and WinoGrande scores for each quantized model.
BF16-to-F16 conversion
A common concern when converting BFloat16 (BF16) models to Float16 (F16) is the potential for accuracy loss. Specifically:
- Weight clipping (overflow): this can occur if a model's weights exceed the finite F16 range of approximately ±65,504. It is relatively rare, but it is a real risk.
- Subnormal zeroing (underflow): very small weights, below the range represented by F16 subnormals, can be converted to zero.
When the F16 model is subsequently used for quantization, differences in metrics such as Perplexity (PPL) or Kullback–Leibler divergence (KLD) are usually small, but they remain model-dependent. Every BF16 base model is validated for overflow clipping before conversion.
F16 is chosen for compatibility and performance in the resource-constrained environments targeted here. Conversion and inference are often faster with F16 than BF16 on those backends, and F16 remains more widely supported on mobile, edge and embedded hardware.
Advantages and disadvantages of Delta-KL target-BPW/target-size quantization
Advantages
Target an arbitrary size
--target-bpw 4.5678, for example, produces a model at close that average BPW (--target-sizeaccepts a file-size budget). This is useful for maximizing usable VRAM or fitting a deployment constraint when standard quant sizes fall just above or below the available capacity.
Output-sensitive, data-driven allocation
- Instead of relying only on error estimates, measured scoring determines how much degrading each tensor changes the model's distribution and offsets that error during quantization producing much higher quality models at a very reasonable computational cost.
More controlled same-size comparisons
- Standard
llama.cpprecipes such as Q4_K_M can produce different effective BPW values for different models. Targeting the same global budget makes comparisons between models or families closer to controlled experiments at the same compression ratio.
- Standard
Disadvantages
Delta-KL probing adds runtime overhead
- Each quantizable tensor eligible for probing is decoded and scored over the probe chunks with only that tensor degraded, so probing adds some overhead. Target-budget quantization also scores many candidate types and is slower than standard quantization.
--state-filecaches the estimated errors and supports resuming interrupted quantization.
- Each quantizable tensor eligible for probing is decoded and scored over the probe chunks with only that tensor degraded, so probing adds some overhead. Target-budget quantization also scores many candidate types and is slower than standard quantization.
Measured scoring requires an imatrix with valid probe rows
- Measured scoring (
llama-quantize --target-scoringdefault's option) needs a compatible imatrix containing well-formed probe rows. Without it, estimated error scoring will be used instead. Tensors that are skipped or otherwise unprobed continue to use their estimated scores.
- Measured scoring (
Known losses and limited evidence
- Losses relative to estimated scoring have been observed during tests with the default
automode at certain model/size combinations (usually above Q4_K), and their causes are not established. Delta-KL validation is still limited, so these experimental models should be evaluated independently.
- Losses relative to estimated scoring have been observed during tests with the default
Models
Bits per weight, size, perplexity and KL divergence scores (available in-repo)
| Model | BPW | Size (GB) | μPPL | 𝜌PPL | μKLD | Same Top-P |
|---|---|---|---|---|---|---|
| Inkling-2-Mini-F16 | 16.0226 | 48.63 | 6.242600 ±0.037560 | 100% | N/A | N/A |
| Inkling-2-Mini-Q2_K | 2.5432 | 7.72 | 15.412036 ±0.100078 | 82.62% | 0.940728 ±0.002258 | 61.593 ±0.123 |
| Inkling-2-Mini-Q3_K | 3.5000 | 10.62 | 6.443010 ±0.038919 | 99.01% | 0.042044 ±0.000245 | 91.857 ±0.069 |
| Inkling-2-Mini-Q4_K | 4.5000 | 13.66 | 6.297735 ±0.038032 | 99.67% | 0.013604 ±0.000082 | 95.283 ±0.054 |
| Inkling-2-Mini-Q5_K | 5.5000 | 16.69 | 6.259405 ±0.037647 | 99.82% | 0.006807 ±0.000046 | 96.556 ±0.046 |
| Inkling-2-Mini-Q6_K | 6.5000 | 19.73 | 6.251493 ±0.037625 | 99.89% | 0.003989 ±0.000032 | 97.426 ±0.040 |
| Inkling-2-Mini-Q7_K | 7.4999 | 22.76 | 6.246226 ±0.037594 | 99.92% | 0.002784 ±0.000024 | 97.849 ±0.037 |
| Inkling-2-Mini-Q8_0 | 8.4995 | 25.80 | 6.244916 ±0.037589 | 99.93% | 0.002436 ±0.000020 | 97.986 ±0.036 |
Like-for-like comparisons with other models (versions not in repo)
- Generated with standard
llama.cpp
| Model | BPW | Size (GB) | μPPL | 𝜌PPL | μKLD | Same Top-P |
|---|---|---|---|---|---|---|
| Inkling-2-Mini-Q2_K | 3.3300 | 10.11 | 6.782317 ±0.040599 | 97.72% | 0.097774 ±0.000442 | 87.143 ±0.085 |
| Inkling-2-Mini-Q3_K | 4.2074 | 12.77 | 6.371006 ±0.038201 | 99.28% | 0.028538 ±0.000155 | 92.938 ±0.065 |
| Inkling-2-Mini-Q4_K | 5.3597 | 16.27 | 6.292605 ±0.037802 | 99.66% | 0.013069 ±0.000080 | 95.144 ±0.054 |
| Inkling-2-Mini-Q5_K | 6.1048 | 18.53 | 6.260107 ±0.037689 | 99.83% | 0.006329 ±0.000041 | 96.639 ±0.046 |
| Inkling-2-Mini-Q6_K | 7.2045 | 21.87 | 6.250098 ±0.037607 | 99.89% | 0.003933 ±0.000030 | 97.407 ±0.040 |
| Inkling-2-Mini-Q8_0 | 8.5332 | 25.90 | 6.242937 ±0.037564 | 99.92% | 0.002854 ±0.000028 | 97.816 ±0.037 |
- Generated with Delta-KL fork with same size as standard
llama.cpp
| Model | BPW | Size (GB) | μPPL | 𝜌PPL | μKLD | Same Top-P |
|---|---|---|---|---|---|---|
| Inkling-2-Mini-Q2_K | 3.3300 | 10.11 | 6.488647 ±0.039185 | 98.82% | 0.050783 ±0.000281 | 90.954 ±0.073 |
| Inkling-2-Mini-Q3_K | 4.2074 | 12.77 | 6.323176 ±0.038294 | 99.55% | 0.018365 ±0.000110 | 94.494 ±0.058 |
| Inkling-2-Mini-Q4_K | 5.3597 | 16.27 | 6.258863 ±0.037635 | 99.81% | 0.007193 ±0.000046 | 96.461 ±0.047 |
| Inkling-2-Mini-Q5_K | 6.1048 | 18.53 | 6.255444 ±0.037644 | 99.87% | 0.004986 ±0.000037 | 97.146 ±0.042 |
| Inkling-2-Mini-Q6_K | 7.2045 | 21.87 | 6.248459 ±0.037603 | 99.91% | 0.003077 ±0.000028 | 97.752 ±0.038 |
| Inkling-2-Mini-Q8_0 | 8.5332 | 25.90 | 6.245382 ±0.037592 | 99.93% | 0.002440 ±0.000021 | 97.964 ±0.036 |
ARC, GPQA-Diamond, HellaSwag, MMLU-Redux, Truthful QA, and WinoGrande scores
Scores generated using llama-perplexity with 750 tasks per test where possible, and a context size of 1024 tokens.
For the test data used in the generation of these scores, follow the appropriate links: ARC Challenge, Truthful QA, GPQA-Diamond, HellaSwag, MMLU-Redux, WinoGrande
| Model | ARC Challenge | GPQA-Diamond | HellaSwag | MMLU-Redux | Truthful QA | WinoGrande | Avg Score |
|---|---|---|---|---|---|---|---|
| Inkling-2-Mini-Q2_K | 54.0000 ±1.8211 | 21.7172 ±2.9377 | 56.13 | 39.8667 ±1.7890 | 23.7333 ±1.5546 | 62.9333 ±1.7648 | 43.06 |
| Inkling-2-Mini-Q3_K | 65.8667 ±1.7325 | 25.7576 ±3.1156 | 77.87 | 77.2000 ±1.5330 | 24.0000 ±1.5605 | 71.7333 ±1.6453 | 57.07 |
| Inkling-2-Mini-Q4_K | 68.4000 ±1.6988 | 26.7677 ±3.1544 | 78.00 | 79.6000 ±1.4724 | 25.3333 ±1.5892 | 73.0667 ±1.6209 | 58.53 |
| Inkling-2-Mini-Q5_K | 68.0000 ±1.7045 | 24.7475 ±3.0746 | 78.93 | 79.3333 ±1.4795 | 24.9333 ±1.5808 | 72.5333 ±1.6309 | 58.08 |
| Inkling-2-Mini-Q6_K | 67.8667 ±1.7063 | 28.2828 ±3.2088 | 79.07 | 80.9333 ±1.4354 | 25.0667 ±1.5836 | 73.8667 ±1.6054 | 59.18 |
| Inkling-2-Mini-Q7_K | 67.8667 ±1.7063 | 27.7778 ±3.1912 | 78.80 | 79.6000 ±1.4724 | 25.6000 ±1.5947 | 72.8000 ±1.6260 | 58.74 |
| Inkling-2-Mini-Q8_0 | 67.8667 ±1.7063 | 27.2727 ±3.1731 | 78.67 | 79.4667 ±1.4760 | 25.0667 ±1.5836 | 73.6000 ±1.6106 | 58.66 |
Tokens per second benchmarks
Scores generated using llama-bench. Standard (llama-quantize with no optimization) Q4_K_M quantization included for comparison.
| model | size | params | backend | threads | test | t/s |
|---|---|---|---|---|---|---|
| Inkling-2-Mini-Q2_K | 7.72 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 597.97 ± 0.90 |
| Inkling-2-Mini-Q2_K | 7.72 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 43.76 ± 0.70 |
| Inkling-2-Mini-Q2_K | 7.72 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 79.80 ± 0.73 |
| Inkling-2-Mini-Q3_K | 10.62 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 585.85 ± 2.64 |
| Inkling-2-Mini-Q3_K | 10.62 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 42.58 ± 1.18 |
| Inkling-2-Mini-Q3_K | 10.62 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 76.33 ± 0.30 |
| Inkling-2-Mini-Q4_K | 13.66 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 584.82 ± 2.06 |
| Inkling-2-Mini-Q4_K | 13.66 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 41.91 ± 0.55 |
| Inkling-2-Mini-Q4_K | 13.66 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 74.47 ± 0.50 |
| Inkling-2-Mini-Q5_K | 16.69 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 582.83 ± 2.58 |
| Inkling-2-Mini-Q5_K | 16.69 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 40.91 ± 0.61 |
| Inkling-2-Mini-Q5_K | 16.69 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 72.84 ± 0.37 |
| Inkling-2-Mini-Q6_K | 19.73 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 566.36 ± 6.91 |
| Inkling-2-Mini-Q6_K | 19.73 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 39.12 ± 0.54 |
| Inkling-2-Mini-Q6_K | 19.73 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 70.16 ± 0.26 |
| Inkling-2-Mini-Q7_K | 19.73 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 566.36 ± 6.91 |
| Inkling-2-Mini-Q7_K | 19.73 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 39.12 ± 0.54 |
| Inkling-2-Mini-Q7_K | 19.73 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 70.16 ± 0.26 |
| Inkling-2-Mini-Q8_0 | 25.80 GiB | 26.07 B | MTL,BLAS | 12 | pp512 | 589.18 ± 2.91 |
| Inkling-2-Mini-Q8_0 | 25.80 GiB | 26.07 B | MTL,BLAS | 12 | tg128 | 35.56 ± 0.34 |
| Inkling-2-Mini-Q8_0 | 25.80 GiB | 26.07 B | MTL,BLAS | 12 | pp1024+tg1024 | 65.74 ± 0.17 |
Metrics used
Perplexity: a measure of how well a language model predicts held-out text. Lower values indicate less surprise and better predictive fit; a value of 1 would represent no uncertainty under the usual definition.
Kullback–Leibler (KL) divergence: a measure of how one probability distribution differs from another. The μKLD table column compares each fully quantized model's next-token output probability distributions with the F16 baseline on the same evaluation tokens; lower is better, and 0 means identical distributions. Degrade-one Delta-KL is a separate per-tensor allocation signal: it degrades one tensor at a time, averages per-token KL over the probe chunks, restores the tensor, and supplies those values for allocation. These probe values are not the μKLD values reported in the table.
AI2 Reasoning Challenge (ARC): a benchmark to evaluate the ability of AI models to answer complex science questions that require logical reasoning beyond pattern matching.
GPQA-Diamond: a challenging dataset of 448 multiple-choice questions written by domain experts in biology, physics, and chemistry.
HellaSwag: the Harder Endings, Longer contexts, and Low-shot Activities for Situations With Adversarial Generations is a benchmark designed to test commonsense natural language inference. It requires the model to predict the most likely ending of a sentence.
MMLU: the Massive Multitask Language Understanding benchmark evaluates LLMs' general knowledge and problem-solving abilities across 57 subjects, including elementary mathematics, US history, computer science, and law.
Truthful QA: evaluates how well LLMs generate truthful responses to questions. It identifies whether AI models can avoid generating false or misleading information, particularly in areas where human knowledge is prone to misconceptions.
WinoGrande: based on the Winograd Schema Challenge, this is a natural language understanding task requiring models to resolve ambiguities in sentences involving pronoun references.
Credits
llama.cpp has a large and vibrant community of contributors that actively maintains and extends its functionality, adding new models and architectures almost as fast as they appear. Considering the breakneck speed at which the AI/ML field is advancing, this alone is a remarkable feat!
While I am grateful to all contributors, I want to recognise three in particular:
- Colin Kealty (Bartowski), for the many contributions and for being one of the best sources of high-quality quantized models available on Hugging Face
- Georgi Gerganov for his amazing work with llama.cpp and the ggml/gguf libraries
- Iwan Kawrakow for being one of the key authors behind the many quantization algorithms and the imatrix functionality.
- Downloads last month
- 5,340
Model tree for eaddario/Inkling-2-Mini-DKL
Base model
thinkingmachines/Inkling-2-Mini