Instructions to use thinkingmachines/Inkling-2-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thinkingmachines/Inkling-2-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="thinkingmachines/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("thinkingmachines/Inkling-2-Mini") model = AutoModelForMultimodalLM.from_pretrained("thinkingmachines/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]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use thinkingmachines/Inkling-2-Mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thinkingmachines/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": "thinkingmachines/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/thinkingmachines/Inkling-2-Mini
- SGLang
How to use thinkingmachines/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 "thinkingmachines/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": "thinkingmachines/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 "thinkingmachines/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": "thinkingmachines/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 thinkingmachines/Inkling-2-Mini with Docker Model Runner:
docker model run hf.co/thinkingmachines/Inkling-2-Mini
This is the shit, no benchmaxing
It really performs on par with Qwen 3.8 27B while being way faster, this is a great achievement!
Never thought someone would beat Qwen, even though the comparison would only be fair against Qwen4.
Edit: More information on this impression:
German legal documents
On different tasks involving German legal documents it performed on par with Qwen 3.8 27B.
- Tasks: classification, visual classification, more complex questions regarding emails or groups of documents
- Size: around 4,000 samples in total
My first impression was based on only this eval.
Text to SQL
| Model | EX | Note |
|---|---|---|
| Qwen3.8-27B (FP8) | 67.36 | greedy (t=0), no thinking |
| flash-sqlite-4b (4B, ck3476) | 64.75 | greedy (t=0) |
| Laguna-S-2.1 | 59.8 | sampled single answer, model card: t=1.0, top-p 1.0, top-k 20, thinking on |
| Qwen3.5-4B base | 59.00 | greedy (t=0), zero-shot |
| Inkling-2-Mini (medium) | 59 | t=1.0, reasoning effort "medium"; your value, not measured in our runs (our medium run stopped at 177 of 1,534 items) |
| Inkling-2-Mini (minimal) | 57.11 | average of 7 sampled answers, docs: t=1.0, reasoning effort "minimal" |
| flash-sqlite (2B) | 57.05 | greedy (t=0) |
| Qwen3.5-2B base | 41.8 | greedy (t=0), zero-shot |
Hermes Agent
Performed quite nicely, but this is only based on vibes, no statistically relevant evals.
Reading title i thought you mean the opposite
Reading title i thought you mean the opposite
This is the shit -> GOOD
This is shit -> BAD
But on the first glance it might be misleading ...
It really is good. Qwen3.8-27b is obviously the popular model for self-hosting, but from out of nowhere Inkling comes in with novel architecture and a really sold model. I'm still just starting with it, but I continue to be impressed with it so far.
It doesn't beat 27b but it's miles better than 35ba3b. It would be peak if they could fix the looping issues and maybe improve the drafter (MTP head, maybe?) for some extra speed gains in a 2.1 release perhaps.