Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
inkling
Mixture of Experts
reasoning
efficient-thinking
token-efficient
post-training
agentic
terminal-bench
conversational
8-bit precision
modelopt
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.
Instructions to use ukisai/Swift-Inkling-2-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ukisai/Swift-Inkling-2-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ukisai/Swift-Inkling-2-Mini") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ukisai/Swift-Inkling-2-Mini") model = AutoModelForMultimodalLM.from_pretrained("ukisai/Swift-Inkling-2-Mini", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ukisai/Swift-Inkling-2-Mini 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" # 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", "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
- SGLang
How to use ukisai/Swift-Inkling-2-Mini with 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" } } ] } ] }' - Docker Model Runner
How to use ukisai/Swift-Inkling-2-Mini with Docker Model Runner:
docker model run hf.co/ukisai/Swift-Inkling-2-Mini
Keep only AIME 2026 in benchmark tables and update 10-benchmark headline
Browse files26 unmodified lines2728293031323359 unmodified lines9394959697989910020 unmodified lines12112212312412512612712826 unmodified lines# Swift Inkling 2 MiniSwift Inkling 2 Mini is UkisAI's reasoning-efficient derivative of [Inkling 2 Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini).It uses **42.5% fewer thinking tokens** while scoring **0.41 pp below** the base across twelve benchmarks.## Training approach59 unmodified lines<tr><td class="model">IFBench</td><td><strong>76.07%</strong></td><td class="swift15">73.73%</td><td>5,596</td><td class="swift15">2,247</td><td class="change">↓ 59.8%</td><td class="change">↓ 53.5%</td></tr><tr><td class="model">MMLU-Pro</td><td><strong>83.19%</strong></td><td class="swift15">82.41%</td><td>5,471</td><td class="swift15">2,521</td><td class="change">↓ 53.9%</td><td class="change">↓ 58.6%</td></tr><tr><td class="section" colspan="7">Mathematics</td></tr><tr><td class="model">AIME 2024</td><td><strong>99.33%</strong></td><td class="swift15">98.00%</td><td>11,887</td><td class="swift15">6,727</td><td class="change">↓ 43.4%</td><td class="change">↓ 43.2%</td></tr><tr><td class="model">AIME 2025</td><td><strong>99.33%</strong></td><td class="swift15">98.00%</td><td>20,298</td><td class="swift15">11,499</td><td class="change">↓ 43.3%</td><td class="change">↓ 42.4%</td></tr><tr><td class="model">AIME 2026</td><td><strong>99.33%</strong></td><td class="swift15">95.33%</td><td>18,730</td><td class="swift15">12,185</td><td class="change">↓ 34.9%</td><td class="change">↓ 46.5%</td></tr><tr><td class="model">HMMT (Nov 2025)</td><td><strong>66.67%</strong></td><td class="swift15">64.67%</td><td>20,715</td><td class="swift15">15,282</td><td class="change">↓ 26.2%</td><td class="change">↓ 40.1%</td></tr><tr><td class="section" colspan="7">Multimodal</td></tr>20 unmodified lines<tr><td style="padding:3px 8px;">GPQA-Diamond</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr><tr><td style="padding:3px 8px;">C-Eval</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">16,384</td></tr><tr><td style="padding:3px 8px;">IFBench</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">81,920</td></tr><tr><td style="padding:3px 8px;">AIME 2024</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr><tr><td style="padding:3px 8px;">AIME 2025</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr><tr><td style="padding:3px 8px;">AIME 2026</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr><tr><td style="padding:3px 8px;">HMMT Nov 2025</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr><tr><td style="padding:3px 8px;">ERQA</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr>26 unmodified lines2728293031323359 unmodified lines93949596979820 unmodified lines11912012112212312426 unmodified lines# Swift Inkling 2 MiniSwift Inkling 2 Mini is UkisAI's reasoning-efficient derivative of [Inkling 2 Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini).It uses **42.3% fewer thinking tokens** while scoring **0.22 pp below** the base across ten benchmarks.## Training approach59 unmodified lines<tr><td class="model">IFBench</td><td><strong>76.07%</strong></td><td class="swift15">73.73%</td><td>5,596</td><td class="swift15">2,247</td><td class="change">↓ 59.8%</td><td class="change">↓ 53.5%</td></tr><tr><td class="model">MMLU-Pro</td><td><strong>83.19%</strong></td><td class="swift15">82.41%</td><td>5,471</td><td class="swift15">2,521</td><td class="change">↓ 53.9%</td><td class="change">↓ 58.6%</td></tr><tr><td class="section" colspan="7">Mathematics</td></tr><tr><td class="model">AIME 2026</td><td><strong>99.33%</strong></td><td class="swift15">95.33%</td><td>18,730</td><td class="swift15">12,185</td><td class="change">↓ 34.9%</td><td class="change">↓ 46.5%</td></tr><tr><td class="model">HMMT (Nov 2025)</td><td><strong>66.67%</strong></td><td class="swift15">64.67%</td><td>20,715</td><td class="swift15">15,282</td><td class="change">↓ 26.2%</td><td class="change">↓ 40.1%</td></tr><tr><td class="section" colspan="7">Multimodal</td></tr>20 unmodified lines<tr><td style="padding:3px 8px;">GPQA-Diamond</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr><tr><td style="padding:3px 8px;">C-Eval</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">16,384</td></tr><tr><td style="padding:3px 8px;">IFBench</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">81,920</td></tr><tr><td style="padding:3px 8px;">AIME 2026</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr><tr><td style="padding:3px 8px;">HMMT Nov 2025</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr><tr><td style="padding:3px 8px;">ERQA</td><td style="padding:3px 8px;text-align:right;">5</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr>
README.md+1-5