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 model card
Browse files100 unmodified lines10110210310410510610710817 unmodified lines126127128129130131132133100 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>—</td><td class="swift15">—</td><td class="change">—</td><td class="change">—</td></tr><tr><td class="model">DeepSWE v1.1</td><td>28.32%</td><td class="swift15"><strong>36.58%</strong></td><td>—</td><td class="swift15">—</td><td class="change">—</td><td class="change">—</td></tr></tbody></table>17 unmodified lines<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><tr><td style="padding:3px 8px;">LiveCodeBench v6</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;">MMLU-Pro</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;">Terminal-Bench 2.1</td><td style="padding:3px 8px;text-align:right;">5 per task</td><td style="padding:3px 8px;text-align:right;">agent limit 5 h per task, context 131,072, Harbor 0.20.0 + Terminus 2</td></tr><tr><td style="padding:3px 8px;">DeepSWE v1.1</td><td style="padding:3px 8px;text-align:right;">3 per task</td><td style="padding:3px 8px;text-align:right;">mini-swe-agent 2.4.6, task time limits</td></tr></tbody></table>100 unmodified lines10110210310410510610710817 unmodified lines126127128129130131132133100 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></tbody></table>17 unmodified lines<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><tr><td style="padding:3px 8px;">LiveCodeBench v6</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;">MMLU-Pro</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;">Terminal-Bench 2.1</td><td style="padding:3px 8px;text-align:right;">5 per task</td><td style="padding:3px 8px;text-align:right;">agent limit 5 h per task, context 131,072, Harbor 0.20.0 + Terminus 2; thinking tokens per trial (all agent turns)</td></tr><tr><td style="padding:3px 8px;">DeepSWE v1.1</td><td style="padding:3px 8px;text-align:right;">3 per task</td><td style="padding:3px 8px;text-align:right;">mini-swe-agent 2.4.6, task time limits; thinking tokens per trial (all agent turns)</td></tr></tbody></table>
README.md+4-4