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
No Balance
This model performs worse than tiny models from years ago at common tasks, such as story writing, and even ranks below Gemma 3 4b in creative writing at the arena. Qwen 3.8 is also much worse. and ranks much lower than Qwen 3.5, at things like creative writing.
Trading tons of general knowledge and abilities for marginal gains in coding and agentic ability is a huge overall regression. Have LLMs hit a ceiling? Is this the future of OS AI?
This model performs worse than tiny models from years ago at common tasks, such as story writing, and even ranks below Gemma 3 4b in creative writing at the arena. Qwen 3.8 is also much worse. and ranks much lower than Qwen 3.5, at things like creative writing.
Trading tons of general knowledge and abilities for marginal gains in coding and agentic ability is a huge overall regression. Have LLMs hit a ceiling? Is this the future of OS AI?
i noticed the same, it seems the intelligence of the models is being traded for a tiny bit of coding improvement, sad.
In a world where we can build systems that can replace any part of the human experience can it be beneficial to tailor these models to more specialized tasks which are in high demand but low supply? It reduces the risk of people losing their jobs and assists software developers and researchers in meeting the demand of their employers.
I know you like testing LLMs and I appreciate a lot of your insights. but is there anything in particular you are hoping to achieve with the technology that you couldn't do yourself given enough time and effort? Do you really want this technology to do everything simply because it can?
I think this is not just the future of open source AI, but also closed source AI. Someday we will have much much smaller models, specialized for a very narrow tasks, and this will be to the benefit of both the environment and economy. Isn't this a reasonable tradeoff from that perspective?
Of course the argument can still be made that the model is way over-fitted for specific tasks to the detriment of their general knowledge and intelligence, but the utility of intelligence itself has to be also considered at some point.
This model is still a great advancement in agentic tool use and high level reasoning though, great for RAG and research agents.
In a world where we can build systems that can replace any part of the human experience can it be beneficial to tailor these models to more specialized tasks which are in high demand but low supply? It reduces the risk of people losing their jobs and assists software developers and researchers in meeting the demand of their employers.
I know you like testing LLMs and I appreciate a lot of your insights. but is there anything in particular you are hoping to achieve with the technology that you couldn't do yourself given enough time and effort? Do you really want this technology to do everything simply because it can?
I think this is not just the future of open source AI, but also closed source AI. Someday we will have much much smaller models, specialized for a very narrow tasks, and this will be to the benefit of both the environment and economy. Isn't this a reasonable tradeoff from that perspective?
Of course the argument can still be made that the model is way over-fitted for specific tasks to the detriment of their general knowledge and intelligence, but the utility of intelligence itself has to be also considered at some point.
This model is still a great advancement in agentic tool use and high level reasoning though, great for RAG and research agents.
i think in the future hardware wont be an issue, software will allow us tho run big models locally, right now we are still using very stone age software for AI and systems, this hardware thing issue wont be going on forever.