Image-Text-to-Text
MLX
Safetensors
English
inkling2_loop
mlx-vlm
inkling2
Mixture of Experts
quantized
gptq
apple-silicon
tool-calling
agents
conversational
8-bit precision
Instructions to use VisualInference/Inkling-2-Mini-MLX-3bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use VisualInference/Inkling-2-Mini-MLX-3bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("VisualInference/Inkling-2-Mini-MLX-3bit") config = load_config("VisualInference/Inkling-2-Mini-MLX-3bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use VisualInference/Inkling-2-Mini-MLX-3bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VisualInference/Inkling-2-Mini-MLX-3bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "VisualInference/Inkling-2-Mini-MLX-3bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use VisualInference/Inkling-2-Mini-MLX-3bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VisualInference/Inkling-2-Mini-MLX-3bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default VisualInference/Inkling-2-Mini-MLX-3bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use VisualInference/Inkling-2-Mini-MLX-3bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VisualInference/Inkling-2-Mini-MLX-3bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "VisualInference/Inkling-2-Mini-MLX-3bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Card: fetch the tool-call patch by URL; note the end-to-end check
Browse files
README.md
CHANGED
|
@@ -114,10 +114,16 @@ Inkling 2: the model writes a correct call, and the server returns neither `tool
|
|
| 114 |
```sh
|
| 115 |
git clone https://github.com/Neywa-Labs/mlx-vlm && cd mlx-vlm
|
| 116 |
git checkout 111ac668078e017c9db1eb3936f4d7a6e0a88f89
|
| 117 |
-
|
|
|
|
|
|
|
| 118 |
pip install -e .
|
| 119 |
```
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
Everything in the tool and agent rows above was measured with that patch applied. Without a server you can parse
|
| 122 |
tool calls yourself: generate with `skip_special_tokens=False` and call
|
| 123 |
`processor.tokenizer.parse_response(text, prefix="")`, which uses the response template shipped in
|
|
|
|
| 114 |
```sh
|
| 115 |
git clone https://github.com/Neywa-Labs/mlx-vlm && cd mlx-vlm
|
| 116 |
git checkout 111ac668078e017c9db1eb3936f4d7a6e0a88f89
|
| 117 |
+
curl -L -o inkling2-tools.patch \
|
| 118 |
+
https://huggingface.co/VisualInference/Inkling-2-Mini-MLX-3bit/resolve/main/extras/mlx-vlm-inkling2-tool-calls.patch
|
| 119 |
+
git apply inkling2-tools.patch
|
| 120 |
pip install -e .
|
| 121 |
```
|
| 122 |
|
| 123 |
+
(`load()` downloads only model files, so the patch is not in the local snapshot; fetch it by URL as above.) These
|
| 124 |
+
steps were run against this repository as published: a clean checkout, the patch from the Hub, and a request with
|
| 125 |
+
`tools` returned two parallel `tool_calls` with `finish_reason: "tool_calls"`.
|
| 126 |
+
|
| 127 |
Everything in the tool and agent rows above was measured with that patch applied. Without a server you can parse
|
| 128 |
tool calls yourself: generate with `skip_special_tokens=False` and call
|
| 129 |
`processor.tokenizer.parse_response(text, prefix="")`, which uses the response template shipped in
|