Instructions to use audiohacking/Inkling-2-Mini-pi-oQ4e-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use audiohacking/Inkling-2-Mini-pi-oQ4e-mtp 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("audiohacking/Inkling-2-Mini-pi-oQ4e-mtp") config = load_config("audiohacking/Inkling-2-Mini-pi-oQ4e-mtp") # 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 audiohacking/Inkling-2-Mini-pi-oQ4e-mtp with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "audiohacking/Inkling-2-Mini-pi-oQ4e-mtp"
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": "audiohacking/Inkling-2-Mini-pi-oQ4e-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use audiohacking/Inkling-2-Mini-pi-oQ4e-mtp 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 "audiohacking/Inkling-2-Mini-pi-oQ4e-mtp"
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 audiohacking/Inkling-2-Mini-pi-oQ4e-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use audiohacking/Inkling-2-Mini-pi-oQ4e-mtp with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "audiohacking/Inkling-2-Mini-pi-oQ4e-mtp"
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 "audiohacking/Inkling-2-Mini-pi-oQ4e-mtp" \ --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"
Inkling-2-Mini-pi-oQ4e-mtp
An oMLX checkpoint of Inkling 2 Mini tuned for the pi coding agent: the harness-hub/Inkling-2-Mini-pi-adapted LoRA merged into thinkingmachines/Inkling-2-Mini (audiohacking/Inkling-2-Mini-pi), then quantized with oQ.
The adapter's card reports the same accuracy as the base model with a generous time budget, with 22-33% fewer tool calls and about 40% fewer output tokens per solved task, and +13 points on Terminal-Bench 2.1 under a 1-hour limit per task.
It has the same recipe, layout and size as mlx-community/Inkling-2-Mini-oQ4e-mtp, so everything that runs that build runs this one: oQ level 4, enhanced, with the DSpark draft kept for Lightning MTP. The routed experts of layers 0 to 19 stay NVFP4, those of layers 20 to 23 are affine 4-bit, and the attention projections, embeddings and vocabulary head are affine 8-bit. 16.9 GB.
Use
Place it in the oMLX models folder and select it like any model, then point pi (or any OpenAI-compatible client) at
http://<mac>:8000/v1 with the model name Inkling-2-Mini-pi-oQ4e-mtp. Keep Lightning MTP on.
It works with the oMLX Strix/AMD Helper prefill accelerator. On an M3 Ultra with one Strix Halo over Thunderbolt (oMLX 0.8.4, 24 of 48 layer visits on the Halo, 512 generated tokens):
| Prompt | Prefill tok/s | Time to first token | Decode tok/s |
|---|---|---|---|
| 8,192 | 2,488 | 3.3 s | 121 |
| 32,768 | 2,701 | 12.1 s | 115 |
| 65,536 | 2,532 | 25.9 s | 96 |
How it was made
- The LoRA (rank 32, alpha 64, attention q/k/v/o of all 24 layers) was merged into the BF16 attention weights as
W += 2.0 * B @ Ain float32; nothing else changed. - The merged checkpoint was quantized with oMLX's oQ streaming quantizer: level 4,
enhanced=True,preserve_mtp=True.
The DSpark draft in mtp.safetensors is the base model's.
License
Apache-2.0, as both the base model and the adapter.
- Downloads last month
- 28
4-bit
# 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("audiohacking/Inkling-2-Mini-pi-oQ4e-mtp") config = load_config("audiohacking/Inkling-2-Mini-pi-oQ4e-mtp") # 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)