Run this model with HF Jobs

Run Gabt123/Swift-Inkling-2-Mini-GGUF-nativeNVFP4 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 to fine-tune https://huggingface.co/Gabt123/Swift-Inkling-2-Mini-GGUF-nativeNVFP4. 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/Gabt123/Swift-Inkling-2-Mini-GGUF-nativeNVFP4 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.

Swift-Inkling-2-Mini โ€” native-NVFP4 GGUF (BF16 dense)

GGUF form of ukisai/Swift-Inkling-2-Mini (UkisAI's shorter-reasoning post-training of Thinking Machines Lab's Inkling-2-Mini), converted so that the routed experts keep the checkpoint's own NVFP4 weights instead of being requantized.

This is the source form for NInfer-3090's inkling2_gguf recipe (sm_70/sm_80/sm_86/sm_89) and is readable by the reference Inkling-2 converter's own fork of llama.cpp. The dense tensors are BF16, which is what the engine binds for this architecture: the packs of attention input projections are read as direct contiguous tensors, so they cannot be stored as GGML Q8_0 blocks.

File Bytes Size
Swift-Inkling-2-Mini-BF16-nativeNVFP4.gguf 22,867,452,128 21.30 GiB
Swift-Inkling-2-Mini-DSpark-BF16.gguf 647,786,144 0.60 GiB
mmproj-Swift-Inkling-2-Mini-BF16.gguf 641,806,496 0.60 GiB

What is in each file

File Tensors Types
Swift-Inkling-2-Mini-BF16-nativeNVFP4.gguf 734 40 NVFP4 (type 40), 330 BF16, 364 F32
Swift-Inkling-2-Mini-DSpark-BF16.gguf 54 30 BF16, 24 F32
mmproj-Swift-Inkling-2-Mini-BF16.gguf 422 140 BF16, 282 F32

The 40 NVFP4 tensors are the layers-0-19 routed-expert banks (ffn_gate_up_exps, ffn_down_exps), each with a per-expert FP32 multiplier beside it. Layers 20-23 keep BF16 expert banks: those are the checkpoint's MXFP8 values widened to BF16, which is exact. Dense attention and embedding tensors are BF16; routers, norms, loop controllers, conv taps and clip scales are F32.

Why NVFP4 instead of a normal quant

The source checkpoint already stores layers 0-19 experts in NVFP4 (E2M1 codes, one E4M3 block scale per 16 values, one FP32 multiplier per expert) and layers 20-23 in MXFP8. Repacking those words is lossless and keeps an Inkling-class model inside a 24 GB card; a Q4_K/IQ-style requantization would discard the publisher's own encoding for no size win. The expert blocks here are the checkpoint's weights, not a re-quantization of them.

The dense weights are not re-encoded: the sm_86 engine's Inkling-2 route reads the fused attention input projections (and the embedding/head) as direct contiguous tensors, and a GGML Q8_0 block weight is refused there at warmup. A BF16-dense build is therefore the only dense representation that produces a working NInfer artifact for this model.

Verification

  • Layer 0, expert 0, w13 (2,304 gate+up rows ร— 2,304 columns): the repack, llama.cpp's gguf.quants NVFP4 dequantizer and an independent decode of the HF representation agree on every value โ€” max|diff| = 0, 100% exact, including the gate/up de-interleave and the per-expert multiplier (amax / 2688).
  • Tensor type counts above were read back with gguf-py.
  • This file loads in the fork's llama-server and answers a headless chat prompt correctly ("What is 17*23?" โ†’ 391, finish stop), and the .ninfer artifact built from it loads in NInfer-3090's engine and answers 391 as well.

What these files are not

  • Not stock llama.cpp files. Stock llama.cpp does not know the Inkling-2 architecture, and the expert banks are NVFP4 (type 40) blocks. Use the fork this was produced with (unslothai/llama.cpp, branch mtp-fixes at commit 8aa2f23f6bbe0b2d23eb3ff676f318f96111d591 (PR #390; that commit is not in master)) or feed them to NInfer-3090's converter.
  • Not a quant sweep: one dense representation (BF16) and the checkpoint's own expert blocks.

Conversion path

Reference converter: unslothai/llama.cpp, branch mtp-fixes at commit 8aa2f23f6bbe0b2d23eb3ff676f318f96111d591 (PR #390), with gguf-py from the same checkout on PYTHONPATH.

# text tower: dense BF16, layers 0-19 experts kept as GGML NVFP4 (type 40)
INKLING2_NVFP4_NATIVE=1 python3 convert_hf_to_gguf.py /path/to/Swift-Inkling-2-Mini \
  --outtype bf16 --outfile Swift-Inkling-2-Mini-BF16-nativeNVFP4.gguf

# vision tower
python3 convert_hf_to_gguf.py /path/to/Swift-Inkling-2-Mini \
  --outtype bf16 --outfile mmproj-Swift-Inkling-2-Mini-BF16.gguf --mmproj

# DSpark drafter (reads mtp.safetensors from a config shim, see CONVERSION.md)
python3 convert_hf_to_gguf.py /path/to/dspark-shim \
  --outtype bf16 --outfile Swift-Inkling-2-Mini-DSpark-BF16.gguf --dspark

Then the artifact, in NInfer-3090:

python3 -m tools.convert \
  --model Swift-Inkling-2-Mini-BF16-nativeNVFP4.gguf --recipe inkling2_gguf \
  --mtp-gguf Swift-Inkling-2-Mini-DSpark-BF16.gguf \
  --mmproj mmproj-Swift-Inkling-2-Mini-BF16.gguf \
  --resource tokenizer.json=/path/to/Swift-Inkling-2-Mini/tokenizer.json \
  --resource tokenizer_config.json=/path/to/Swift-Inkling-2-Mini/tokenizer_config.json \
  --resource chat_template.jinja=/path/to/Swift-Inkling-2-Mini/chat_template.jinja \
  --name swift-inkling2-mini --out swift_inkling2_mini_3090.ninfer

CONVERSION.md has the --dspark config shim detail (the fork's dispatch whitelist omits the looped architecture name; only architectures in a copy of config.json is rewritten, the weights are untouched). tokenizer.json, tokenizer_config.json and chat_template.jinja are included because the NInfer converter takes the frontend resources from the HF checkpoint rather than from the GGUF.

Checksums

69775186d2d4f737f2c4039824982e49e7cfba8bcd7d04de1e7d588569127fb8  Swift-Inkling-2-Mini-BF16-nativeNVFP4.gguf
7a2c87318358170654b6163a0526cca8a775748b671753a47b29876dfced120c  Swift-Inkling-2-Mini-DSpark-BF16.gguf
e0a2e4f8a6210031e03592833935101325b84e2c446d70ab76ad5f006b8aa451  mmproj-Swift-Inkling-2-Mini-BF16.gguf

Licensing

Apache-2.0 for UkisAI's contribution; the model and DSpark drafter are Thinking Machines Lab's Inkling-2-Mini under its model-license terms (see LICENSE). All quality claims for the weights belong to the upstream card.


Source model card โ€” ukisai/Swift-Inkling-2-Mini

Verbatim copy (including its YAML front matter): SOURCE_MODEL_CARD.md. The text below is reproduced unchanged; all model, training and benchmark claims in it belong to UkisAI, not to this GGUF build.

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
54
GGUF
Model size
26B params
Architecture
inkling2
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Gabt123/Swift-Inkling-2-Mini-GGUF-nativeNVFP4

Quantized
(13)
this model