Instructions to use ukisai/Swift-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 ukisai/Swift-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 ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ukisai/Swift-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 ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ukisai/Swift-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 ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
Use Docker
docker model run hf.co/ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use ukisai/Swift-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 "ukisai/Swift-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": "ukisai/Swift-Inkling-2-Mini-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
- Ollama
How to use ukisai/Swift-Inkling-2-Mini-GGUF with Ollama:
ollama run hf.co/ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use ukisai/Swift-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 ukisai/Swift-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": "ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ukisai/Swift-Inkling-2-Mini-GGUF with Docker Model Runner:
docker model run hf.co/ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
- Lemonade
How to use ukisai/Swift-Inkling-2-Mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Swift-Inkling-2-Mini-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ukisai/Swift-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 ukisai/Swift-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 ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ukisai/Swift-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 ukisai/Swift-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 "ukisai/Swift-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"
Swift Inkling 2 Mini
GGUF quantizations. Derived directly from Swift Inkling 2 Mini with llama.cpp. Run a chosen quantization tier with a current llama.cpp-compatible runtime such as llama-server.
Swift Inkling 2 Mini is UkisAI's reasoning-efficient derivative of Inkling 2 Mini, using 58.6% fewer thinking tokens while maintaining near-identical performance (<1% loss) and as a result getting a x2.4 speed-up on several tasks.
The prompt is a sample from LiveCodeBench v6
Training approach
We made Swift Inkling 2 Mini efficient by figuring out which tokens were linked to pathological overthinking and penalizing them without rewarding shorter reasoning length directly. We trained a model with this premise, then used it as the teacher for contextual on-policy distillation, leading to "compressed" token usage while maintaining accuracy.
Swift Inkling 2 Mini produces shorter reasoning traces. In our testing, we also observe fewer overthinking errors (reasoning loops without exit).
Evaluation scope
All results below compare the Inkling 2 Mini base with Swift Inkling 2 Mini. Both models use the same saved evaluation protocols, and all scores are averages over five seeds (0โ4) per model.
The main table reports BF16 results. Quantized results are in Quantized models.
Benchmarks
| Benchmark | Score | Mean tokens | Median tokens | |||
|---|---|---|---|---|---|---|
| Base | Swift | Base | Swift | Reduction | Reduction | |
| General reasoning | ||||||
| GPQA-Diamond | 86.67% | 85.45% | 16,571 | 9,455 | โ 42.9% | โ 56.6% |
| MMLU-Pro | 83.19% | 82.41% | 5,471 | 2,521 | โ 53.9% | โ 58.6% |
| C-Eval | 82.15% | 84.40% | 3,317 | 1,611 | โ 51.4% | โ 52.4% |
| IFBench | 76.07% | 73.73% | 5,596 | 2,247 | โ 59.8% | โ 53.5% |
| Mathematics | ||||||
| AIME 2024โ2026 | 99.33% | 97.11% | 16,972 | 10,137 | โ 40.3% | โ 44.0% |
| HMMT (Nov 2025) | 66.67% | 64.67% | 20,715 | 15,282 | โ 26.2% | โ 40.1% |
| Multimodal | ||||||
| ERQA | 63.25% | 61.50% | 4,134 | 1,653 | โ 60.0% | โ 58.6% |
| Coding | ||||||
| LiveCodeBench v6 | 86.41% | 85.99% | 15,990 | 11,140 | โ 30.3% | โ 33.7% |
| Agentic coding | ||||||
| Terminal-Bench 2.1* | 57.98% | 57.75% | 36,720 | 27,454 | โ 25.2% | โ 57.0% |
| DeepSWE v1.1* | 28.32% | 36.58% | 80,594 | 49,883 | โ 38.1% | โ 41.1% |
* Note: Thinking Machines benchmarked Inkling 2 Mini on agent tasks with its full 1M-token context window. We consider that unrealistic for local use, so we ran both models at context sizes most people can actually run: 131,072 tokens for Terminal-Bench 2.1 and 262,144 tokens for DeepSWE v1.1.
How to reproduce
Serving: native mixed precision (BF16 attention, NVFP4/MXFP8 experts) ยท vLLM (vllm/vllm-openai:inkling-2-mini image) ยท data-parallel across 2 GPUs ยท context 262,144 ยท thinking on (enable_thinking=True, reasoning_effort="max").
Sampling: temperature 1.0 ยท top_p 0.95 ยท top_k 20 ยท min_p 0.0 ยท no repeat penalty.
Benchmarks: every benchmark averaged over five seeds (0โ4) per model, same caps and scorer for base and Swift.
| Benchmark | Runs | Output cap |
|---|---|---|
| GPQA-Diamond | 5 | 100,000 |
| MMLU-Pro | 5 | 100,000 |
| C-Eval | 5 | 16,384 |
| IFBench | 5 | 81,920 |
| AIME 2024โ2026 | 5 | 250,000 |
| HMMT Nov 2025 | 5 | 250,000 |
| ERQA | 5 | 100,000 |
| LiveCodeBench v6 | 5 | 100,000 |
| Terminal-Bench 2.1 | 5 per task | agent limit 5 h per task, context 131,072, Harbor 0.20.0 + Terminus 2; thinking tokens per trial (all agent turns) |
| DeepSWE v1.1 | 3 per task | mini-swe-agent 2.4.6, task time limits; thinking tokens per trial (all agent turns) |
Efficiency across reasoning efforts
Swift Inkling 2 Mini was benchmarked, trained and made to be used at "max" reasoning effort. The Swift version of the model at "max" uses 30.1% fewer tokens even when compared to the base model at the default "high" reasoning effort.
Inkling 2 Mini's reasoning effort setting lets users choose how much the model thinks. For Swift Inkling 2 Mini to be useful across these settings, it needs to reduce thinking while keeping accuracy close to the base.
| Reasoning effort | Score | Mean thinking tokens | Median thinking tokens | |||
|---|---|---|---|---|---|---|
| Base | Swift | Base | Swift | Reduction | Reduction | |
| GPQA-Diamond | ||||||
| Max | 86.67% | 85.45% | 16,571 | 9,455 | โ 42.9% | โ 56.6% |
| High | 86.46% | 84.44% | 13,523 | 6,618 | โ 51.1% | โ 60.1% |
| Medium | 84.75% | 80.20% | 5,844 | 3,027 | โ 48.2% | โ 35.1% |
| Low | 79.19% | 76.77% | 1,940 | 1,400 | โ 27.8% | โ 17.5% |
MTP speculative decoding
The BF16 weights include the base model's MTP head. These results evaluate its acceptance rate on GPQA-Diamond (32 questions), served with llama.cpp.
| Benchmark | Base MTP acceptance |
Swift MTP acceptance |
|---|---|---|
| GPQA-Diamond BF16 GGUF | 48.7% | 49.4% |
Swift keeps the base model's MTP acceptance with the same, unchanged MTP head.
Quantized models
Quantized deployment is the intended use for Swift: lower-memory weights paired with shorter reasoning. The GGUF evaluations below retain token savings on GPQA-Diamond, and Swift reduces output-cap failures by 59โ94%.
| Benchmark / quantization | Base accuracy | Swift accuracy | Mean token reduction | Median token reduction |
|---|---|---|---|---|
| GPQA-Diamond GGUF Q4_K_M ยท completion tokens | 85.45% | 85.15% | โ 40.4% | โ 55.9% |
| GPQA-Diamond BF16 ยท thinking tokens | 86.67% | 85.45% | โ 42.9% | โ 56.6% |
Quantized evaluation settings
Each row compares the same quantized base with and without the Swift post-training. GPQA uses five seeds. Output cap: GPQA 100,000. Truncated answers count as incorrect. Base quantization: a Q4_K_M with the same per-tensor types as Swift's, served with llama.cpp. The BF16 row is the same run as the BF16 table.
GGUF quantizations
| File | Size |
|---|---|
| Swift-Inkling-2-Mini-BF16.gguf | 52.2 GB |
| Swift-Inkling-2-Mini-Q8_0.gguf | 27.8 GB |
| Swift-Inkling-2-Mini-Q6_K_L.gguf | 25.4 GB |
| Swift-Inkling-2-Mini-Q6_K.gguf | 24.7 GB |
| Swift-Inkling-2-Mini-Q6_K_S.gguf | 24.0 GB |
| Swift-Inkling-2-Mini-Q5_K_M.gguf | 21.2 GB |
| Swift-Inkling-2-Mini-Q5_K_S.gguf | 19.2 GB |
| Swift-Inkling-2-Mini-Q4_K_L.gguf | 19.7 GB |
| Swift-Inkling-2-Mini-Q4_K_M.gguf | 18.7 GB |
| Swift-Inkling-2-Mini-Q4_K_S.gguf | 16.9 GB |
| Swift-Inkling-2-Mini-Q4_1.gguf | 16.6 GB |
| Swift-Inkling-2-Mini-Q4_0.gguf | 15.1 GB |
| Swift-Inkling-2-Mini-IQ4_NL.gguf | 16.1 GB |
| Swift-Inkling-2-Mini-IQ4_XS.gguf | 15.1 GB |
| Swift-Inkling-2-Mini-Q3_K_L.gguf | 15.3 GB |
| Swift-Inkling-2-Mini-Q3_K_M.gguf | 14.6 GB |
| Swift-Inkling-2-Mini-Q3_K_S.gguf | 13.4 GB |
| Swift-Inkling-2-Mini-IQ3_M.gguf | 15.3 GB |
| Swift-Inkling-2-Mini-IQ3_XS.gguf | 13.8 GB |
| Swift-Inkling-2-Mini-IQ3_XXS.gguf | 13.3 GB |
| Swift-Inkling-2-Mini-Q2_K.gguf | 11.9 GB |
| Swift-Inkling-2-Mini-IQ2_M.gguf | 11.9 GB |
| Swift-Inkling-2-Mini-IQ2_S.gguf | 11.1 GB |
| Swift-Inkling-2-Mini-IQ2_XXS.gguf | 10.3 GB |
| mmproj-Swift-Inkling-2-Mini-BF16.gguf | 0.6 GB |
| mmproj-Swift-Inkling-2-Mini-F16.gguf | 0.6 GB |
The vision encoder is in the separate mmproj files; pass one with --mmproj. Not sure which file to pick?
Swift-Inkling-2-Mini-Q4_K_M.gguf is a good default. The benchmark scores above were measured on the
safetensors checkpoint, not on these files.
Use llama.cpp b12600 or newer (Inkling 2 Mini support):
llama-server -hf ukisai/Swift-Inkling-2-Mini-GGUF:Q4_K_M --jinja --reasoning-effort max
# or, after downloading:
llama-server -m Swift-Inkling-2-Mini-Q4_K_M.gguf \
--mmproj mmproj-Swift-Inkling-2-Mini-BF16.gguf --jinja --reasoning-effort max -c 32768 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
Set -c to the context length that fits your memory.
Recipe
All files were built with llama.cpp b12600 from the published safetensors checkpoint, with an importance matrix.
Every file passed a load and generation smoke test before upload.
License and access
Swift Inkling 2 Mini is a derivative of Inkling 2 Mini, and both are licensed under the Apache License 2.0. See NOTICE for the change notice and attribution details.
Citation
@misc{swift-inkling-2-mini,
title = {Swift Inkling 2 Mini},
author = {UkisAI},
year = {2026},
url = {https://huggingface.co/ukisai/Swift-Inkling-2-Mini}
}
- Downloads last month
- 5,060
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for ukisai/Swift-Inkling-2-Mini-GGUF
Base model
thinkingmachines/Inkling-2-Mini