Instructions to use ToPo-ToPo/Inkling-Small-mlx-2bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ToPo-ToPo/Inkling-Small-mlx-2bit 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("ToPo-ToPo/Inkling-Small-mlx-2bit") config = load_config("ToPo-ToPo/Inkling-Small-mlx-2bit") # 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 ToPo-ToPo/Inkling-Small-mlx-2bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ToPo-ToPo/Inkling-Small-mlx-2bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ToPo-ToPo/Inkling-Small-mlx-2bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ToPo-ToPo/Inkling-Small-mlx-2bit 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 "ToPo-ToPo/Inkling-Small-mlx-2bit"
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 ToPo-ToPo/Inkling-Small-mlx-2bit
Run Hermes
hermes
- OpenClaw new
How to use ToPo-ToPo/Inkling-Small-mlx-2bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ToPo-ToPo/Inkling-Small-mlx-2bit"
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 "ToPo-ToPo/Inkling-Small-mlx-2bit" \ --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"
ToPo-ToPo/Inkling-Small-mlx-2bit
MLX 2bit conversion of thinkingmachines/Inkling-Small
for Apple Silicon (mlx-vlm). 276B total / 12B active sparse MoE (42 layers, 256 routed experts top-6 + 2 shared),
text + image + audio in, text out.
See also: ToPo-ToPo/Inkling-Small-mlx-4bit.
Provenance (self-converted from official weights)
- Source:
thinkingmachines/Inkling-Small(license: apache-2.0, bf16, 531.9 GB) - Tool:
mlx-vlm 0.6.7—mlx_vlm.convert --hf-path <staged> --mlx-path . -q --q-bits 2 --q-group-size 64 - Effective: 2.506 bits/weight (77 GiB on disk, ~83.5 GB peak RSS at inference)
Config translation (already applied here)
The official config.json cannot be loaded by mlx-vlm as published — its schema uses different key names
than mlx_vlm.models.inkling expects. This repo ships the translated config, so no action is needed:
| Key | Official | Here |
|---|---|---|
model_type |
inkling_mm_model |
inkling |
text_config.intermediate_size |
2048 (expert width) | 16384 (dense width) |
text_config.moe_intermediate_size |
— (was intermediate_size) |
2048 |
vision_config.text_hidden_size |
decoder_dmodel |
4096 |
audio_config.text_hidden_size |
decoder_dmodel |
4096 |
vision_config.num_channels |
n_channels |
3 |
tokenizer_config.pad_token / eos_token |
unset | <|endoftext|> / <|content_model_end_sampling|> |
image_token_id / audio_token_id are left unset so that mlx-vlm's defaults (200054 / 200053) apply —
those are the placeholders InklingProcessor actually emits.
Loader shim (required)
mlx-vlm 0.6.7 and 0.6.8 need two patches at runtime for any Inkling checkpoint. Apply them before load():
from mlx_vlm.models import inkling
from mlx_vlm.models.inkling import config as inkling_config
from mlx_vlm import prompt_utils
# 1. models/inkling does not re-export its sub-config classes, which the generic
# loader fetches with getattr -> AttributeError on load.
for name in ("TextConfig", "VisionConfig", "AudioConfig"):
setattr(inkling, name, getattr(inkling_config, name))
# 2. prompt_utils.MODEL_CONFIG has no "inkling" entry, so apply_chat_template treats
# the model as text-only and drops image/audio parts.
prompt_utils.MODEL_CONFIG.setdefault("inkling", prompt_utils.MessageFormat.LIST_WITH_IMAGE_FIRST)
When serving over mlx_vlm.server, also add Inkling's structural tokens to
mlx_vlm.server.responses_state._CONTENT_MARKERS (<|message_model|>, <|content_text|>,
<|end_message|>) and set MLX_VLM_THINKING_START_TOKEN=<|content_thinking|> /
MLX_VLM_THINKING_END_TOKEN=<|end_message|>, so the reasoning channel and those markers do not
end up in content.
Reasoning effort
The chat template always injects a Thinking effort level: system message (default 0.9). Control it
with the OpenAI-compatible reasoning_effort — "none" / "minimal" / "low" / "medium" / "high" /
"max", or a float in [0.0, 0.99]. "none" disables thinking entirely.
Usage
from mlx_vlm import load, generate
model, processor = load("ToPo-ToPo/Inkling-Small-mlx-2bit") # apply the shim above first
The first load reads 77 GiB, so allow a few minutes and raise any client-side startup timeouts accordingly.
- Downloads last month
- -
2-bit
Model tree for ToPo-ToPo/Inkling-Small-mlx-2bit
Base model
thinkingmachines/Inkling-Small