Run this model with HF Jobs

Run ukisai/Swift-Inkling-2-Mini on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/ukisai/Swift-Inkling-2-Mini. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ukisai/Swift-Inkling-2-Mini on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/ukisai/Swift-Inkling-2-Mini. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/ukisai/Swift-Inkling-2-Mini. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "ukisai/Swift-Inkling-2-Mini" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "ukisai/Swift-Inkling-2-Mini",
		"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 images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "ukisai/Swift-Inkling-2-Mini" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "ukisai/Swift-Inkling-2-Mini",
		"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"
						}
					}
				]
			}
		]
	}'
Quick Links
UkisAI
Website  •  Learn more  •  GGUF  •  GSQ-RCO  •  License

Swift Inkling 2 Mini

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.

Benchmarks

Benchmark Score Mean tokens Median tokens
Base Swift Base Swift Reduction Reduction
General reasoning
GPQA-Diamond86.67%85.45%16,5719,455↓ 42.9%↓ 56.6%
MMLU-Pro83.19%82.41%5,4712,521↓ 53.9%↓ 58.6%
C-Eval82.15%84.40%3,3171,611↓ 51.4%↓ 52.4%
IFBench76.07%73.73%5,5962,247↓ 59.8%↓ 53.5%
Mathematics
AIME 2024–202699.33%97.11%16,97210,137↓ 40.3%↓ 44.0%
HMMT (Nov 2025)66.67%64.67%20,71515,282↓ 26.2%↓ 40.1%
Multimodal
ERQA63.25%61.50%4,1341,653↓ 60.0%↓ 58.6%
Coding
LiveCodeBench v686.41%85.99%15,99011,140↓ 30.3%↓ 33.7%
Agentic coding
Terminal-Bench 2.1*57.98%57.75%36,72027,454↓ 25.2%↓ 57.0%
DeepSWE v1.1*28.32%36.58%80,59449,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.

BenchmarkRunsOutput cap
GPQA-Diamond5100,000
MMLU-Pro5100,000
C-Eval516,384
IFBench581,920
AIME 2024–20265250,000
HMMT Nov 20255250,000
ERQA5100,000
LiveCodeBench v65100,000
Terminal-Bench 2.15 per taskagent limit 5 h per task, context 131,072, Harbor 0.20.0 + Terminus 2; thinking tokens per trial (all agent turns)
DeepSWE v1.13 per taskmini-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
Max86.67%85.45%16,5719,455↓ 42.9%↓ 56.6%
High86.46%84.44%13,5236,618↓ 51.1%↓ 60.1%
Medium84.75%80.20%5,8443,027↓ 48.2%↓ 35.1%
Low79.19%76.77%1,9401,400↓ 27.8%↓ 17.5%

MTP speculative decoding

The published 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.

How to use

GGUF download

The GGUF version is available for compatible llama.cpp-based runtime.

Transformers

import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor

model_id = "ukisai/Swift-Inkling-2-Mini"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
    model_id,
    dtype=torch.bfloat16,
    device_map="auto",
)

messages = [{"role": "user", "content": [{"type": "text", "text": "Why is the sky blue?"}]}]

inputs = processor.apply_chat_template(
    messages, reasoning_effort="max", tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors="pt",
).to(model.device)
input_len = inputs["input_ids"].shape[-1]

outputs = model.generate(**inputs, max_new_tokens=1024)
print(processor.decode(outputs[0][input_len:], skip_special_tokens=False))

vLLM

vllm serve ukisai/Swift-Inkling-2-Mini \
  --tensor-parallel-size 1 \
  --max-model-len 262144 \
  --reasoning-parser inkling \
  --enable-auto-tool-choice \
  --tool-call-parser inkling \
  --default-chat-template-kwargs '{"reasoning_effort": "max"}' \
  --port 8000

SGLang

Alternatively, use a current SGLang build with Inkling 2 Mini support:

sglang serve \
  --model-path ukisai/Swift-Inkling-2-Mini \
  --context-length 262144 \
  --reasoning-parser inkling \
  --tool-call-parser inkling2 \
  --enable-multimodal \
  --default-chat-template-kwargs '{"reasoning_effort": "max"}' \
  --port 8000

Adjust tensor parallelism and context length to your GPU memory. See the base model's vLLM recipe and SGLang recipe for installation and hardware-specific settings.

Optional MTP decoding

The published weights include the base model's MTP head. To enable self-speculative decoding, append the corresponding flags to the server command above:

# vLLM
--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'

# SGLang
--speculative-algorithm DSPARK

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
126
Safetensors
Model size
26B params
Tensor type
F32
·
BF16
·
F8_E4M3
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ukisai/Swift-Inkling-2-Mini

Finetuned
(192)
this model
Quantizations
11 models

Collection including ukisai/Swift-Inkling-2-Mini