Teaching Inkling 2 Mini to think less in Pi A developer tested harness-hub's Inkling-2-Mini-pi-adapted LoRA adapter, a 53 MB RL-trained patch for the open-weight Inkling 2 Mini model, on a MacBook Pro running the Pi coding agent via MTPLX. Across 36 agent runs, the adapter solved the same tasks as the base model while writing far less reasoning before acting, halving median time on the largest task and fixing most tool-call errors seen previously, at the cost of 3 GB more memory and a manual weight merge. The adapter's card claims roughly a fifth fewer tool calls and over a third fewer output tokens, lifting Terminal-Bench 2.1 scores from about 44% to 57% under a one-hour limit. Originally published on danilop.net https://www.danilop.net/writing/pi-tuned-inkling-on-my-laptop/ . A week ago I switched my local coding to Inkling 2 Mini https://www.danilop.net/writing/open-weights-on-my-laptop/ , the open-weight model from Thinking Machines. It runs on my MacBook Pro through MTPLX https://mtplx.com , a Mac app that serves local models, and drives the Pi coding agent https://pi.dev/ , an open source agent that works in the terminal. On 30 November an adapter appeared on Hugging Face that targets exactly that pairing. Inkling-2-Mini-pi-adapted https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted , published under the harness-hub account, is a small set of weights trained with reinforcement learning to make Inkling a better model behind Pi. Its model card makes a specific claim. On Terminal-Bench 2.1, a benchmark of real command-line tasks, the adapter solves about as many tasks as the base model when time is generous. On the tasks both solve, it needs about a fifth fewer tool calls and more than a third fewer output tokens. SWE-bench Pro shows a third fewer tool calls. Under a one-hour limit per task, finishing sooner turns into more solved tasks, from about 44% to 57% on average. The authors measured all of this on data-centre GPUs. I wanted to know how much of it survives on a laptop, in the runtime I already use. In 36 agent runs and two smaller tests, Inkling solved the same tasks with or without the adapter. With it, the model wrote far less reasoning before acting, and on the largest task its median time fell by half. It also fixed most of the tool-call errors I found last week. The costs are 3 GB more memory and a merge that I had to do myself. The adapter is a 53 MB patch for a model of about 20 GB, much like a diff applied to the weights. Technically it is a LoRA, short for low-rank adaptation, a method published by Microsoft researchers in 2021 https://arxiv.org/abs/2106.09685 . Training leaves the original weights frozen. For each matrix it adapts, it learns two thin matrices instead, one tall and one wide, and adds their product to the original. That product has the full size of the matrix, but it can move it in only a few independent directions, 32 for this adapter, while each attention matrix is more than a thousand values on each side. The bet behind LoRA is that teaching a model a new job needs only a few such directions. A scaling factor, two for this adapter, sets how strongly the update is applied. This adapter touches only the attention projections of the language model, four per layer across 24 layers. The experts, which hold most of Inkling’s parameters, are untouched, and so are the vision encoder and the draft head. Because the base stays frozen, one copy of the model can serve several adapters. vLLM can apply them at run time and choose one per request. The card says that serving this adapter that way costs about a fifth of the speed. Merging the update into the weights, as I did below, avoids that cost, at the price of one merged pack per adapter. According to the card, the adapter was trained with the asynchronous GRPO trainer in Hugging Face’s TRL library for 100 steps on four NVIDIA B300 GPUs. The tasks were about 500 coding problems, mostly in Python and Go, plus about 900 cybersecurity tasks on Cedar and OpenFGA authorisation, each solved inside Pi at high reasoning effort. The reward is mostly the task’s own verifier, pass or fail. Solved attempts also earn a small bonus for using fewer tool calls and pay a small penalty for generating more tokens. The model was paid to finish the job with less work, so I expected to see fewer tool calls and shorter output. The base model, the adapter and the MTPLX packs are all published under the Apache 2.0 licence. Pi is MIT-licensed. The adapter’s card links its training recipe, its evaluation trajectories and the TRL scripts, which is more than most fine-tunes publish. The harness-hub account is an organisation run by Hugging Face staff. The same account has published adapters for other coding agents too. Qwen3.8 27B has adapters for Pi, OpenCode and Hermes Agent, plus one that merges all three. For Inkling 2 Mini, there are adapters only for Pi so far. The authors also published an earlier preview adapter trained with reasoning switched off. Several of the derived builds on Hugging Face, including the only ready-made MTPLX pack I found, start from that preview. I used the final adapter, because Pi runs Inkling at high effort by default. As far as I can tell from its options, MTPLX does not apply a LoRA to the main model at run time. It serves complete model folders, which it calls packs, so the adapter has to be merged into the weights first. The pack my MTPLX app normally runs does not allow a clean merge. Youssofal’s Optimized Speed build of Inkling compresses the attention matrices to 8 bits. Adding a LoRA to 8-bit weights means unpacking them, adding the update and compressing again, which mixes the adapter’s change with a fresh rounding error. The Optimized Quality build from the same author is, in its own words, the official release with its weights unchanged. Its attention matrices are in BF16, the 16-bit format the official weights ship in. That makes it the closest match to the weights the adapter was trained on. In BF16 the merge is a plain addition. Each matrix W becomes W + 2·B·A, computed in 32-bit floating point and rounded once back to BF16. Figure 1. The merge. The adapter’s update is added to the 96 attention matrices of a copy of the pack, and everything else stays byte for byte the same. A developer who publishes as metaxito had already written a script for this merge https://github.com/metaxito/inkling-pi-mtplx under the Apache 2.0 licence, for the preview adapter. It reads the rank and alpha from the adapter’s own configuration. The final adapter targets the same 96 matrices with the same names and the same rank, so the script ran unchanged. It clones the pack with the file system’s copy-on-write, opens the clone’s weights file in place and rewrites only the bytes of the 96 attention matrices. On my Mac it took 18 seconds. The procedure has three steps. First download the pack, then the two adapter files from the root of the adapter’s repository, which use the names the script expects. Then run the script with a Python that has MLX and the safetensors library. MTPLX’s own runtime has both. I used the pack at revision 1ee9bded , the adapter at 4e775038 and the script at 9848c431 . mtplx pull Youssofal/Inkling-2-Mini-MTPLX-Optimized-Quality hf download harness-hub/Inkling-2-Mini-pi-adapted \ adapter config.json adapter model.safetensors --local-dir pi-adapter python3 merge pi lora mtplx.py \ --base-pack ~/.mtplx/models/Youssofal--Inkling-2-Mini-MTPLX-Optimized-Quality \ --lora-dir pi-adapter \ --out-pack ~/.mtplx/models/local--Inkling-2-Mini-pi-adapted-MTPLX-Optimized-Quality \ --adapter-repo harness-hub/Inkling-2-Mini-pi-adapted MTPLX accepted the merged folder as a verified pack, because the clone carries the base pack’s runtime metadata. I did not re-stamp it. MTPLX serves one model per server, so switching between packs means restarting the server with another folder. I served each model with the same command line, one at a time, on a separate port so that my everyday setup stayed untouched. mtplx serve --model