--- library_name: ninfer pipeline_tag: image-text-to-text inference: false license: apache-2.0 base_model: ukisai/Swift-Inkling-2-Mini base_model_relation: quantized language: - en tags: - ninfer - inkling2 - nvfp4 - mxfp8 - dspark - blackwell - multimodal - moe - conversational --- # Swift Inkling 2 Mini — NInfer V3 Artifact (A16Only, `main`) This directory packages the weights of [`ukisai/Swift-Inkling-2-Mini`](https://huggingface.co/ukisai/Swift-Inkling-2-Mini) as a native NInfer v3 `.ninfer` artifact. It is an exact repackaging: the checkpoint's native routed-expert encodings are imported bit-exactly, without requantization and without activation calibration. Architecture, tokenizer, chat template and model behavior are unchanged from the ukisai release. ## Artifact in this branch | Field | Value | |---|---| | File | `swift_inkling2_mini_v3.ninfer` (single file, no `.part-*` parts) | | Activation policy | `A16Only` for `nvfp4_mul`, `AllowA8` for `mxfp8` | | Calibration | none — exact import, numerically faithful to the checkpoint | | Bytes | `20,280,980,736` (18.89 GiB) | | SHA-256 | `9ae50dca46b7d5406e07d1a90af7de9b653e46e442a4464a8c2580aa43896879` | | Artifact ID | `53c9d28ccb044a97a710622cee8d7953` | | Source revision | `b4c962b25540c023f77ff688919ffd2e454fb62a` | This branch carries exactly one artifact. The calibrated W4A4 sibling lives on the [`AllowA4`](https://huggingface.co/Gabt123/Swift-Inkling-2-Mini-NInfer-V3/tree/AllowA4) branch: ```bash hf download Gabt123/Swift-Inkling-2-Mini-NInfer-V3 --include "*.ninfer" # main = A16Only ``` ## Usage ```bash ninfer-serve swift_inkling2_mini_v3.ninfer \ --host 127.0.0.1 --port 8080 \ --max-context 131072 \ --kv-dtype fp8 --swa-kv-dtype bf16 \ --spec dspark --draft-tokens 7 --proposal-head full \ --vision ``` `--vision` enables image input; omit it for text-only serving. DSpark runs with the full proposal head (`--proposal-head full`) and shares the Text embedding and output head, so it was converted without `--proposal`. `--max-context`, KV dtypes and context capacity are runtime choices; adjust them to available memory. ## Validation - Converted on an RTX PRO 4500 Blackwell (SM120, 32 GiB); the converter reported 60.2 s. - `tools.artifact.inspect` reports 892 objects (886 tensors, 6 resources), 1105 bindings and 670 uses. Format histogram: `bf16` 752, `fp32` 86, `nvfp4_mul` 40, `mxfp8` 8 — identical to the published Inkling-2-Mini artifact baseline. - `sha256sum -c SHA256SUMS` passes for the artifact. - No inference smoke test or benchmark claim is made for this repackaging. ## Files - `swift_inkling2_mini_v3.ninfer` — NInfer v3 artifact - `swift_inkling2_mini_v3.ninfer.conversion.json` — conversion report with per-object settings - `artifact-manifest.json` — artifact metadata - `SHA256SUMS` - `conversion.log` — converter stdout/stderr - `config.json`, `generation_config.json`, `processor_config.json`, `special_tokens_map.json`, `tokenizer.json`, `tokenizer_config.json`, `chat_template.jinja`, `hf_quant_config.json`, `tiktoken/tokenizer.model` — source metadata from the ukisai checkpoint - `LICENSE` — Apache-2.0 The source safetensors shard (19.5 GB) and `mtp.safetensors` are not duplicated here; use [`ukisai/Swift-Inkling-2-Mini`](https://huggingface.co/ukisai/Swift-Inkling-2-Mini) for those. ## License Apache-2.0, inherited from the ukisai release. Swift Inkling 2 Mini is a derivative work of [Inkling 2 Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini); see the source repository's `NOTICE` for UkisAI's change notice and attribution. ## Credits I - **UkisAI** — Swift-Inkling-2-Mini weights, post-training and source model card. - **Thinking Machines Lab** — Inkling-2-Mini architecture and base weights. - **Neroued / NInfer** — the NInfer engine and the `inkling2` conversion recipe. --- # Source model card — `ukisai/Swift-Inkling-2-Mini` Verbatim copy (including its YAML front matter): [`SOURCE_MODEL_CARD.md`](SOURCE_MODEL_CARD.md). The text below is reproduced unchanged; all model, training and benchmark claims in it belong to UkisAI, not to this conversion.
# Swift Inkling 2 Mini Swift Inkling 2 Mini is UkisAI's reasoning-efficient derivative of [Inkling 2 Mini](https://huggingface.co/thinkingmachines/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](https://github.com/UkisAI/Benchmark_configs), 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-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.
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) |
| 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% |
| Benchmark | Base MTP acceptance |
Swift MTP acceptance |
|---|---|---|
| GPQA-Diamond BF16 GGUF | 48.7% | 49.4% |
| 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% |