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
Update headline for 12 benchmarks and add agent-benchmark footnote
Browse files26 unmodified lines272829303031323367 unmodified lines10110210310410510410510610710810911011111211326 unmodified lines# 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).It uses **44.6% fewer thinking tokens** while scoring **1.29 pp below** the base across ten benchmarks.It uses **42.5% fewer thinking tokens** while scoring **0.41 pp below** the base across twelve benchmarks.
## Training approach
67 unmodified lines <tr><td class="model">ERQA</td><td><strong>63.25%</strong></td><td class="swift15">61.50%</td><td>4,134</td><td class="swift15">1,653</td><td class="change">↓ 60.0%</td><td class="change">↓ 58.6%</td></tr> <tr><td class="section" colspan="7">Coding</td></tr> <tr><td class="model">LiveCodeBench v6</td><td><strong>86.41%</strong></td><td class="swift15">85.99%</td><td>15,990</td><td class="swift15">11,140</td><td class="change">↓ 30.3%</td><td class="change">↓ 33.7%</td></tr> <tr><td class="model">Terminal-Bench 2.1</td><td><strong>57.98%</strong></td><td class="swift15">57.75%</td><td>36,720</td><td class="swift15">27,454</td><td class="change">↓ 25.2%</td><td class="change">↓ 57.0%</td></tr> <tr><td class="model">DeepSWE v1.1</td><td>28.32%</td><td class="swift15"><strong>36.58%</strong></td><td>80,594</td><td class="swift15">49,883</td><td class="change">↓ 38.1%</td><td class="change">↓ 41.1%</td></tr> <tr><td class="model">Terminal-Bench 2.1*</td><td><strong>57.98%</strong></td><td class="swift15">57.75%</td><td>36,720</td><td class="swift15">27,454</td><td class="change">↓ 25.2%</td><td class="change">↓ 57.0%</td></tr> <tr><td class="model">DeepSWE v1.1*</td><td>28.32%</td><td class="swift15"><strong>36.58%</strong></td><td>80,594</td><td class="swift15">49,883</td><td class="change">↓ 38.1%</td><td class="change">↓ 41.1%</td></tr> </tbody></table>
<p><strong>* Note on agent benchmarks (Terminal-Bench 2.1 and DeepSWE v1.1):</strong> Both Inkling 2 Mini and Swift Inkling 2 Mini ran under the exact same local harness, <code>reasoning_effort="max"</code>, and context limits (131,072 in Harbor 0.20.0 + Terminus 2 for Terminal-Bench 2.1; 262,144 in mini-swe-agent 2.4.6 for DeepSWE v1.1). Absolute scores sit below the base model card (71.6% in pi v0.83.0 on Terminal-Bench 2.1; 48.2% on DeepSWE v1.1) because our harness differs on Terminal-Bench 2.1 and both runs cap context below Inkling 2 Mini's 1M native window. Under those shared budgets, shorter trajectories directly reduce context-limit failures: agent timeouts fell from 147 to 67 on Terminal-Bench 2.1, and context-limit exits fell from 98 to 15 on DeepSWE v1.1 (+8.26 pp). On tasks solved by both models, Swift cuts mean thinking tokens by 42.4% on Terminal-Bench 2.1 (63 common tasks) and 42.4% on DeepSWE v1.1 (44 common tasks).</p>
<details><summary><strong>How to reproduce</strong></summary>
README.md+5-3