Instructions to use existentialbirds/Inkling-2-Mini-mlx-vlm-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use existentialbirds/Inkling-2-Mini-mlx-vlm-4bit 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("existentialbirds/Inkling-2-Mini-mlx-vlm-4bit") config = load_config("existentialbirds/Inkling-2-Mini-mlx-vlm-4bit") # 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 existentialbirds/Inkling-2-Mini-mlx-vlm-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "existentialbirds/Inkling-2-Mini-mlx-vlm-4bit"
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": "existentialbirds/Inkling-2-Mini-mlx-vlm-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use existentialbirds/Inkling-2-Mini-mlx-vlm-4bit 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 "existentialbirds/Inkling-2-Mini-mlx-vlm-4bit"
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 existentialbirds/Inkling-2-Mini-mlx-vlm-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use existentialbirds/Inkling-2-Mini-mlx-vlm-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "existentialbirds/Inkling-2-Mini-mlx-vlm-4bit"
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 "existentialbirds/Inkling-2-Mini-mlx-vlm-4bit" \ --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"
existentialbirds/Inkling-2-Mini-mlx-vlm-4bit
Mixed-precision mlx-vlm checkpoint of thinkingmachines/Inkling-2-Mini (c9d028302cd0f035fdf8e7e91f089a4ce94d2195, 26.4B total parameters, 48 looped layer visits per token). Benchmarked in Peregrine. Companion drafter: existentialbirds/Inkling-2-Mini-DSpark-mlx-vlm-4bit.
Quick Start
uv tool install "git+https://github.com/existential-birds/mlx-vlm.git@perf/inkling2-serving" --force
mlx_vlm.server \
--model existentialbirds/Inkling-2-Mini-mlx-vlm-4bit \
--prefill-step-size 512 \
--cache-limit 4294967296 \
--max-num-seqs 4 \
--port 8080
Notes:
--prefill-step-size 512caps global relative-position attention mask allocations at6.1 GiB(down from24.3 GiBat2048) for 131K context.- Chat template thinking level is set via
reasoning_effort("none","low","medium","high"; default0.9), notenable_thinking. - Optional speculative decoding for code generation (
54.3 tok/satT=0.6; leave off for sampled prose orc4batches):--draft-model existentialbirds/Inkling-2-Mini-DSpark-mlx-vlm-4bit --draft-kind dflash --draft-block-size 5
Precision (17.27 GB / 16.08 GiB, 5.24 bpw)
Converted with mlx_vlm.convert -q --q-bits 4 --mtp into mlx-vlm layout (language_model.*, vision_tower.*, processor_config.json, tiktoken/tokenizer.model). Routed MoE experts stay in their source formats so inkling2_grouped_expert_qmv runs without re-quantizing experts:
| Component | Precision |
|---|---|
Routed MoE experts, layers 0..19 |
Original nvfp4 (group_size=16) |
Routed MoE experts, layers 20..23 |
Original mxfp8 (group_size=32) |
Dense text layers (attention + embed_tokens + lm_head) |
Affine 4-bit (group_size=64; decode read 6.30 -> 3.03 GB/tok) |
Vision tower (inkling2_vision) & router/loop state |
Original BF16 / FP32 |
Benchmarks (Apple M4 Max 40c GPU, 48 GB, macOS 26.6.1)
Measured on AC power (mlx 0.32.5, existential-birds/mlx-vlm@f871d0b7, T=0.6, reasoning_effort="none"). Full logs in existential-birds/peregrine:
| Metric | Base NVFP4 | Stock mlx-vlm + 4-bit |
perf/inkling2-serving + Flags |
|---|---|---|---|
c1 decode (median of 6) |
33.1 tok/s |
44.1 tok/s |
46.5 tok/s |
c4 aggregate decode |
16.2-34.7 tok/s (swap) |
79.4 tok/s |
93.3 tok/s |
| Cold prefill (3.3K / 25.6K) | 333 / 307 tok/s |
551 / 524 tok/s |
591 / 547 tok/s |
| Short TTFT / Startup | 245 ms / 9.2 s |
198 ms / 7.3 s |
196 ms / 5.3 s |
Peak memory (<= 33K ctx) |
34.3 GiB |
29.9 GiB |
23.9 GiB |
Validation (T=0):
- vs base NVFP4: first-token logit cosine
0.9986-0.9996, softmaxKL = 0.00000 nats. - Needle retrieval:
3/3exact at33.2K(23.9 GiB) and3/3exact at132.8K(22.7 tok/sdecode,30.1 GiB). - Concurrent soak:
6/6exact across2 x 67.3Kstreams (25.2 GiB). Modalities checked: chat, reasoning,inklingtool calls, and vision (image_url).
License & Attribution
- License: Apache License 2.0 (
LICENSE,NOTICE). - Attribution & Modifications: Derived from
thinkingmachines/Inkling-2-Mini(c9d028302cd0f035fdf8e7e91f089a4ce94d2195) by Thinking Machines Lab, Inc. Modified tensors and config formlx-vlmwith 4-bit affine dense text weights (group_size=64). - Acceptable Use: Subject to Thinking Machines Lab's Model Acceptable Use Policy. See upstream card for safety notes and Training Data Documentation.
- Downloads last month
- 51
4-bit
Model tree for existentialbirds/Inkling-2-Mini-mlx-vlm-4bit
Base model
thinkingmachines/Inkling-2-Mini