Run this model with HF Jobs
Run Gabt123/Swift-Inkling-2-Mini-3090-Ninfer-v3 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-3090-Ninfer-v3. 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-3090-Ninfer-v3 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/Gabt123/Swift-Inkling-2-Mini-3090-Ninfer-v3. 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.
Instructions to use Gabt123/Swift-Inkling-2-Mini-3090-Ninfer-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use Gabt123/Swift-Inkling-2-Mini-3090-Ninfer-v3 with NInfer:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Swift-Inkling-2-Mini โ NInfer-3090 artifact (sm_86)
A .ninfer v3 artifact of ukisai/Swift-Inkling-2-Mini
for NInfer-3090, the sm_70/sm_80/sm_86/sm_89 build of the
NInfer engine. Components: text + DSpark drafter + vision.
This is an import, not a quantization: the checkpoint's own NVFP4 experts (layers 0โ19) and MXFP8 experts (layers 20โ23) are carried over without requantization, with only their container changed.
Test status and risk
- Built for the sm_86 engine, NInfer-3090.
- Load and generation were verified only with that sm_86 build (arch 86 plus PTX) run on an sm_120 GPU (NVIDIA RTX PRO 4500 Blackwell), where the driver JIT-compiled the embedded PTX for that card. No sm_70/sm_80/sm_86/sm_89 hardware was available, so neither SASS-level correctness nor 3090 speed, memory or scheduling behaviour has been measured.
- Vision was not exercised (
--visionoff); long context, batched serving and perplexity were not run. - Use this artifact at your own risk. It is provided as is, without warranty of any kind. Validate it on your own card before relying on it.
Files
| File | Bytes | Role |
|---|---|---|
swift_inkling2_mini_3090.ninfer |
24,159,612,672 | the artifact (single file) |
swift_inkling2_mini_3090.ninfer.conversion.json |
โ | conversion report: sources, methods, formats, timings |
artifact-manifest.json |
โ | schema-2 manifest, incl. GGUF source checksums |
SHA256SUMS |
โ | artifact checksum |
conversion.log |
โ | converter stdout |
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/ |
โ | frontend/source metadata, copied from the checkpoint |
LICENSE |
โ | Apache-2.0, from the checkpoint |
Representation
| Part | Stored as | Bits/weight |
|---|---|---|
| Routed experts, layers 0โ19 | ggml_rec_nvfp4_nvfp4 โ GGML NVFP4 (E2M1 codes, UE4M3 block scale per 16) + one FP32 multiplier per expert (= amax / outer_scale_denominator = amax / 2688) |
4.5 |
| Routed experts, layers 20โ23 | BF16 banks (the checkpoint's MXFP8 values widened to BF16, which is exact) | 16 |
| Attention, embeddings, head, loop controllers | BF16 | 16 |
| Routers, norms, queries, conv taps, clip scales, DSpark controls | FP32 | 32 |
NVFP4 on sm_86 is a storage format, not a tensor-core instruction. Ampere has no FP4 MMA; the SM86 kernels
decode the E2M1 codes in registers and execute FP32/A16 arithmetic on the CUDA cores, and A8 (dp4a) on the
GGML-format projections. The gain is bandwidth: the 20 NVFP4 banks are 11.5 GB instead of 27 GB of BF16.
Conversion path
HF โ GGUF, with the reference Inkling-2 converter โ unslothai/llama.cpp, branch
mtp-fixesat commit8aa2f23(PR #390; that commit is not inmaster),conversion/inkling2.py, withINKLING2_NVFP4_NATIVE=1: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 python3 convert_hf_to_gguf.py /path/to/Swift-Inkling-2-Mini \ --outtype bf16 --outfile Swift-Inkling-2-Mini-DSpark-BF16.gguf --dspark python3 convert_hf_to_gguf.py /path/to/Swift-Inkling-2-Mini \ --outtype bf16 --outfile mmproj-Swift-Inkling-2-Mini-BF16.gguf --mmprojThe GGUFs are published with the GGUF build of this model (
Swift-Inkling-2-Mini-*.gguf,SHA256SUMSbeside them); their digests are recorded inartifact-manifest.json.--dsparkneeds a directory whoseconfig.jsoncarries"architectures": ["Inkling2ForConditionalGeneration"](the fork's dispatch whitelist omits the looped name) besidemtp.safetensorsand the tokenizer resources; only that copy ofconfig.jsonis edited, the weights are untouched. The command above shows the shim path in place of the checkpoint.GGUF โ artifact, with NInfer-3090's
inkling2_ggufrecipe: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
Running it
ninfer-serve swift_inkling2_mini_3090.ninfer \
--host 0.0.0.0 --api-key "$NINFER_API_KEY" \
--max-context 65536 \
--mxfp8-experts on \
--spec dspark --draft-tokens 3 \
--vision
--mxfp8-experts onre-encodes the BF16 layers 20โ23 banks to MXFP8 at load (lossless; the artifact is unchanged) and frees about 3.8 GB of device memory. On a 24 GB card this is what leaves room for KV.- Approximate fit on a 24 GB card: ~20.3 GB of weights with vision and the drafter loaded, ~2 GB for KV โ about
64k tokens at the 32 KiB/token global-KV rate. Use
--kv-dtypelow-bit rings or drop--visionfor more. The dense weights are BF16 because the engine requires it: the fused attention input projections are read as direct contiguous tensors (src/models/inkling2/program/text_program.cpp:783-790,src/core/weight_view.cpp:323), and a Q8_0 block weight is refused at warmup withdirect tensor requires a resident contiguous weight. Measured with the drafter on an sm_120 host through the sm_86 build (PTX JIT): 21.4 GiB of weights, 8.2 GiB free. --spec dsparktakes--draft-tokens1โ7 (default 3 onsm_86).
Verification performed
- NVFP4 bridge, bit-exact. For layer 0, expert 0,
w13(2,304 gate+up rows ร 2,304): the reference repack, llama.cpp'sgguf.quantsNVFP4 dequantizer, and an independent decode of the HF representation agree on every value โmax|diff| = 0, 100% exact, including the gate/up de-interleave, the nibble order and the per-expert multiplier. - Artifact structure.
tools.artifact.inspect: 1194 objects, 1190 bindings (714 text / 422 vision / 54 DSpark), 20ggml_rec_nvfp4_nvfp4banks, componentstext,dspark,vision; single file;artifact_idf958afbbfd7447f8a004bd357e725073. - Source coverage is enforced by the converter: every GGUF tensor must map to exactly one logical parameter.
- Runtime, through the sm_86 engine. The sm_86 build (arch 86 with PTX, JIT-compiled by the driver) loaded this
artifact on an sm_120 host and answered a headless prompt (
What is 17*23?โ391, finishstop, DSpark on, 4k context). This exercises the artifact and the engine's Inkling-2 route end to end, but not sm_86 machine code: no 70/80/86/89 card was available, so SASS-level correctness and 3090 timings remain unmeasured.
Open items
- No activation calibration exists on this route, and none is needed:
sm_86has no A4 path.
Licensing
The checkpoint is Apache-2.0 (UkisAI's post-training of Thinking Machines Lab's Inkling-2-Mini; see LICENSE and
the upstream model card). All quality and benchmark figures for the model belong to
ukisai/Swift-Inkling-2-Mini and were not re-measured here.
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 conversion.
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-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 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
- -
Model tree for Gabt123/Swift-Inkling-2-Mini-3090-Ninfer-v3
Base model
thinkingmachines/Inkling-2-Mini