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
Add high reasoning effort results
Browse files142 unmodified lines14314414514614714814917 unmodified lines1671681691701711721731741752 unmodified lines178179180181182183142 unmodified linesInkling 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 whilekeeping accuracy close to the base. We therefore tested `max`, `medium`, and `low`, comparing Swiftagainst the base at the same setting. Serving, sampling, output caps and the five seeds (0–4) are the same as inthe benchmarks above; only `reasoning_effort` changes.17 unmodified lines<tbody><tr><td class="section" colspan="7">GPQA-Diamond</td></tr><tr><td class="model">Max</td><td><strong>86.67%</strong></td><td class="swift15">85.45%</td><td>16,571</td><td class="swift15">9,455</td><td class="change">↓ 42.9%</td><td class="change">↓ 56.6%</td></tr><tr><td class="model">Medium</td><td><strong>84.75%</strong></td><td class="swift15">80.20%</td><td>5,844</td><td class="swift15">3,027</td><td class="change">↓ 48.2%</td><td class="change">↓ 35.1%</td></tr><tr><td class="model">Low</td><td><strong>79.19%</strong></td><td class="swift15">76.77%</td><td>1,940</td><td class="swift15">1,400</td><td class="change">↓ 27.8%</td><td class="change">↓ 17.5%</td></tr><tr><td class="section" colspan="7">AIME 2026</td></tr><tr><td class="model">Medium</td><td>95.33%</td><td class="swift15"><strong>96.67%</strong></td><td>11,249</td><td class="swift15">9,194</td><td class="change">↓ 18.3%</td><td class="change">↓ 35.6%</td></tr><tr><td class="model">Low</td><td><strong>92.67%</strong></td><td class="swift15">91.33%</td><td>7,533</td><td class="swift15">6,372</td><td class="change">↓ 15.4%</td><td class="change">↓ 36.4%</td></tr></tbody>2 unmodified linesAt `medium` and `low`, Swift Inkling 2 Mini uses 48.2% and 27.8% fewer mean thinking tokens on GPQA-Diamondand trails the base by 4.55 and 2.42 percentage points. On AIME 2026 it stays within 1.33 points of the base(2 of 150 answers) at both settings, scoring above it at `medium`, while using about 36% fewer median thinking tokens.Max-effort AIME results are in the benchmarks table above (AIME 2024–2026).## Quantized models142 unmodified lines14314414514614714814917 unmodified lines1671681691701711721731741751761772 unmodified lines180181182183184185186187142 unmodified linesInkling 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 whilekeeping accuracy close to the base. We therefore tested `max`, `high`, `medium`, and `low`, comparing Swiftagainst the base at the same setting. Serving, sampling, output caps and the five seeds (0–4) are the same as inthe benchmarks above; only `reasoning_effort` changes.17 unmodified lines<tbody><tr><td class="section" colspan="7">GPQA-Diamond</td></tr><tr><td class="model">Max</td><td><strong>86.67%</strong></td><td class="swift15">85.45%</td><td>16,571</td><td class="swift15">9,455</td><td class="change">↓ 42.9%</td><td class="change">↓ 56.6%</td></tr><tr><td class="model">High</td><td><strong>86.46%</strong></td><td class="swift15">84.44%</td><td>13,523</td><td class="swift15">6,618</td><td class="change">↓ 51.1%</td><td class="change">↓ 60.1%</td></tr><tr><td class="model">Medium</td><td><strong>84.75%</strong></td><td class="swift15">80.20%</td><td>5,844</td><td class="swift15">3,027</td><td class="change">↓ 48.2%</td><td class="change">↓ 35.1%</td></tr><tr><td class="model">Low</td><td><strong>79.19%</strong></td><td class="swift15">76.77%</td><td>1,940</td><td class="swift15">1,400</td><td class="change">↓ 27.8%</td><td class="change">↓ 17.5%</td></tr><tr><td class="section" colspan="7">AIME 2026</td></tr><tr><td class="model">High</td><td><strong>98.67%</strong></td><td class="swift15">94.00%</td><td>16,244</td><td class="swift15">10,296</td><td class="change">↓ 36.6%</td><td class="change">↓ 34.9%</td></tr><tr><td class="model">Medium</td><td>95.33%</td><td class="swift15"><strong>96.67%</strong></td><td>11,249</td><td class="swift15">9,194</td><td class="change">↓ 18.3%</td><td class="change">↓ 35.6%</td></tr><tr><td class="model">Low</td><td><strong>92.67%</strong></td><td class="swift15">91.33%</td><td>7,533</td><td class="swift15">6,372</td><td class="change">↓ 15.4%</td><td class="change">↓ 36.4%</td></tr></tbody>2 unmodified linesAt `medium` and `low`, Swift Inkling 2 Mini uses 48.2% and 27.8% fewer mean thinking tokens on GPQA-Diamondand trails the base by 4.55 and 2.42 percentage points. On AIME 2026 it stays within 1.33 points of the base(2 of 150 answers) at both settings, scoring above it at `medium`, while using about 36% fewer median thinking tokens.At `high`, the default setting, it uses 51.1% fewer mean thinking tokens on GPQA-Diamond (2.02 points belowthe base) and 36.6% fewer on AIME 2026 (4.67 points below the base, 7 of 150 answers).Max-effort AIME results are in the benchmarks table above (AIME 2024–2026).## Quantized models
README.md+5-1