Inkling-2-Mini-pi-adapted-MLX
A Coding Agent for Apple Silicon
2 min readupdated
This model is a LoRA adapter (a small add-on layer for a base model) trained to run the pi coding agent with advanced reasoning. The version is already merged with the weights and converted to the MLX format, featuring a built-in vision encoder and speculative decoder for running on Mac without separate adapter downloads. The model handles programming tasks better while using 40% fewer output tokens and one-third fewer tool calls. It is useful for developers who want to run powerful local coding agents directly on Mac computers.
Key features
- Apple Silicon integration via MLX for running locally on Mac
- Optimized for the pi coding agent with improved scores on Terminal-Bench and SWE-bench
- Reduced output token usage by approximately 40% on solved tasks
- Support for tool calls and an OpenAI-compatible server
What you can do
- Run a local OpenAI-compatible server with tool call support via the mlx_vlm utility
- Connect the model to the pi coding agent to automate development via chat completions
- Write a Python script to generate code and prompts using the mlx_vlm library
- Use the multimodal capabilities of the model for tasks combining vision and text
Example
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("netprojects/Inkling-2-Mini-pi-adapted-MLX-4-8bit")
prompt = apply_chat_template(processor, model.config, "Write a bash one-liner that counts lines in all .py files.")
print(generate(model, processor, prompt, max_tokens=4096).text)Read more
DetailsBenchmarks: Terminal-Bench 2.1 (pass@3) — 70.8% (+14.6% vs base), SWE-bench Pro — 70.6%
Hardware requirements: Mac with 64 GB of memory or more (for this build)
Architecture: weights in mixed format, including NVFP4 and MXFP8 in MLX, size 19.5 GB + 0.64 GB draft
License: Apache-2.0










Comments