Trying Inkling 2 Mini and Bonsai 2 27B on my laptop
A morning of speed tests and three coding tasks, with the code never leaving my machine.
Audio could not be loaded. or use the download link below.
More listening options
Download audio (MP3)Narration transcript
Trying Inkling 2 Mini and Bonsai 2 27B on my laptop
A morning of speed tests and three coding tasks, with the code never leaving my machine.
Most of the AI I use runs in someone else’s data centre, which suits nearly all of my work. My interest in open-weight models comes from somewhere else. When a model can run close to its data and to the places where people and devices interact with it, new uses become possible. A model on a laptop or a phone can read files that should never leave the building and answer without a round trip to the cloud. It can also keep working without a network connection. I keep one running on my laptop to see how much of that capability fits on hardware I own, with weights anyone can download.
The answer changes every few months. Apple is asking a similar question at a much larger scale. In a recent paper, Minions, six Apple researchers describe a “virtual GPU cloud” built from the idle Apple silicon Macs in their organisation. Jobs are split into small pieces. Each Mac pulls work when it has nothing better to do and runs open models locally through Ollama. The paper reports that some jobs used to wait more than ten hours for a shared GPU and can now often start within minutes. It is an experience report with no benchmarks and no released code. I still find the idea promising, because it treats the computers already on our desks as inference capacity.
My own test was more modest. This month Thinking Machines released Inkling 2 Mini, an open-weight model that fits on a laptop and reports strong coding scores. I wanted to compare it with Ternary Bonsai 2 27B, the model I have been running locally since October. Setting both up on my own machine took a few minutes one morning. Then I watched them work.
The machine and the runtime
Everything here ran on my MacBook Pro with an M5 Pro chip and 48 GB of memory, with my usual apps open. The coding tests used the Pi coding agent, which talks to a local server instead of a cloud API.
The diagram shows the setup on the MacBook Pro. The Pi coding agent reads, edits and runs tests in the project folder. It sends chat requests and tool calls to the MTPLX server on a local port, which loads the model weights, 9 or 17 gigabytes, when it starts.
Before comparing models, I had to choose the software that serves them. That choice alone can double the speed of the same model. A few days earlier I had compared two Mac apps that serve models locally, oMLX 0.8.0 and MTPLX 2.12.3, with Bonsai 2 27B on both. MTPLX supports multi-token prediction (MTP). A small draft head guesses the next few tokens and the full model checks all of the guesses in one pass. When the guesses are right, one pass produces several tokens. The output follows the model’s own distribution, so speed is the only thing that changes.
The diagram shows multi-token prediction. The conversation goes to the draft head, which guesses the next few tokens. The full model checks every guess in one pass and returns the accepted tokens plus one correction.
With thinking off and 512-token answers, MTPLX wrote about twice as fast as oMLX at every prompt size I tried. With MTP switched off, MTPLX was still about a third faster, so part of the gain comes from the runtime itself. MTP added the rest. MTPLX also read prompts faster, about 470 tokens per second against 300, so a 14,000-token prompt started answering after 30 seconds instead of 47.
The chart compares how fast Bonsai 2 27B writes at three prompt sizes. With a short prompt, oMLX writes 21 tokens a second, MTPLX without multi-token prediction 27, and MTPLX with it 43. With a prompt of about 14,000 tokens, the figures are 17, 25 and 37.
oMLX has its merits, including lower memory use over a long run of unrelated prompts. For one person using a coding agent on one laptop, MTPLX was the clear choice. I used it for everything that follows.
Two models
The two models reach a laptop by different routes. Bonsai shrinks an existing model. Ternary Bonsai 2 27B from Prism ML is Qwen3.8 27B with almost every weight reduced to −1, 0 or +1. Prism gives its footprint as 5.9 GB and reports that it keeps 98.2% of the original model’s overall score on a suite covering reasoning, maths, coding, instruction following and tool use. The coding tests in that suite include HumanEval+ and LiveCodeBench, but none of them asks a model to work as an agent. I found no SWE-bench Verified result for Bonsai that I could trace to its source.
Inkling 2 Mini saves space another way. Thinking Machines released it on 20 November under the Apache 2.0 licence. It is a looped transformer. The middle 12 of its 24 layers run three times for every token, with the same weights on each pass. Each token goes through 48 layers, while the download stores only 24. Inkling is also a mixture of experts, so only a small part of the model works on any one token. The vendor reports 79.2% on SWE-bench Verified. Artificial Analysis gives it 20 on its Intelligence Index, against a median of 10 for open models of a similar size. Most of these figures come from the vendors, so I wanted my own.
Looping gives a model more room to think inside its hidden state without more weights to store. Researchers call this recurrent depth, or latent reasoning when the extra passes do work that would otherwise be written out as reasoning text. The idea goes back to the Universal Transformer in 2018. Smaller looped models such as Huginn and ByteDance’s Ouro came before Inkling. What is new is a looped mixture-of-experts model from a well-funded lab, with open weights and strong coding results. The loops add depth beneath the reasoning that Inkling still writes out. Larger models may follow. The Information has reported, from one anonymous source, that OpenAI’s next model, Astra, uses recurrent depth (summarised here by Bret Kerr). OpenAI has not confirmed it.
The table compares the two models. Bonsai 2 27B, made by Prism ML from Qwen3.8 27B, is a dense model that uses all 27 billion parameters for every token. Its MTPLX build stores ternary weights in 2 bits, downloads as 8.9 gigabytes and has a context window of about 262,000 tokens. I found no SWE-bench Verified result for it that I could trace. Inkling 2 Mini, from Thinking Machines, is a mixture of experts with looped layers and 26.4 billion parameters, about 3.4 billion of them active, or 5.4 billion counting the loops. Its MTPLX build uses 4-bit experts and 8-bit attention, downloads as 17.2 gigabytes and has a context window of about 1 million tokens. The vendor reports 79.2 per cent on SWE-bench Verified.
Both models arrive already compressed, so MTPLX mostly repackages them. Its Bonsai build, 8.9 GB, keeps the image encoder and adds a draft head for multi-token prediction. For Inkling it offers three builds that keep the official 4-bit experts and differ in how they store the rest. I used the middle one, Optimized Speed, a 17.2 GB download with 8-bit attention. MTPLX measured its loss on 6,140 tokens of code and prose as equal to the official weights within noise.
Both ran on MTPLX 2.13.2 with multi-token prediction on. It drafted one token ahead for Bonsai and three for Inkling. Loading both at once pushed my Mac into swap, so I ran them one at a time. Each used its vendor’s recommended sampling settings.
Raw speed
I started with the simplest measurement. Each model received a short question and a long service log of 330 lines. I asked for 700 tokens of answer and timed three runs of each. The log is about 11,000 tokens for Inkling and 14,500 for Bonsai, because their tokenisers split text differently.
The chart shows the time to a complete 700-token answer. On the short question, Bonsai takes 19.5 seconds and Inkling 15.5. On the long log, Bonsai takes 52.6 seconds and Inkling 19.5.
The table gives the raw speeds. Bonsai writes 36 tokens a second after the short question and 37 after the long log. Inkling writes 46 and 65. On the long log, Bonsai reads 430 tokens a second and Inkling 1,320, so the first token arrives after 34 seconds for Bonsai and 8.6 seconds for Inkling.
Inkling reads prompts about three times faster than Bonsai. That helps most the first time a model sees a long document. In a coding agent, later turns reuse most of the conversation from a cache, so how much a model writes, and how fast, counts for more.
Inkling also writes faster after the long log than after the short question. Its answer about the log is more predictable, so the draft head’s guesses were accepted about two thirds of the time, against under a third for the short question. With three tokens drafted at a time, each accepted guess is worth more to Inkling. For Bonsai, which drafts one, each pass over its much longer context costs enough to cancel the gain.
Speed helps only if the answers are right, so I also gave both models 13 small tasks, twice each. They covered arithmetic, a calendar question, a logic puzzle, a probability question, three Python functions checked by tests, a bug fix, a list with strict formatting rules, structured extraction, two tool calls and a question about the long log. Each model used its own default reasoning effort, medium for Bonsai and high for Inkling. Bonsai passed all 26. Inkling passed 24 and finished the set in 7 minutes 23 seconds against Bonsai’s 10 minutes 22 seconds.
On the probability question, Inkling got the answer right but wrapped it in LaTeX, boxed five over twelve, when I had asked for a bare fraction. Maths benchmarks mark their final answers that way, and Inkling had clearly sat a few of them. Its model card warns of occasional failures to follow instructions precisely. The other miss was a tool call. Inkling handled Pi’s own read, bash and edit every time. When the same kind of tool was named read_file, it wrote the call out as broken text in seven of ten requests.
A coding agent with a local model
All of those were single answers. An agent has to plan, call tools, read the results and try again. I gave Pi three small tasks, each in a fresh folder, with reasoning effort set to medium for both models.
Create: write a command-line tool that prints statistics for one column of a CSV file, following an exact output format, and write tests for it. I checked the result with five tests of my own that the model never saw.
Fix: a small module with three planted bugs and failing tests. The model had to fix the code without touching the tests. I checked it with extra hidden tests.
Review: a short Python class with five planted problems, from SQL injection to an error handler that lets anyone log in. The model had to list the problems by severity and suggest a fix for each.
The chart shows how long Pi took on each task. Creating the tool took Bonsai 620 seconds and Inkling 98. Fixing the bugs took 49 and 17 seconds, and the review 73 and 29.
The table shows the same results for both models. Each passed all five hidden tests on the create task, fixed all three bugs but missed one hidden check, and found all five planted problems plus three sound extras. Bonsai took 12 minutes 22 seconds in total, and Inkling 2 minutes 24 seconds.
The two models made the same miss on the fix. The docstring says the discount must be between 0 and 100. Neither added a check for it. Their reviews ranked the same two problems first, the login bypass and the SQL injection. Both also raised sensible points I had not planted.
Bonsai spent most of its time on the create task, more than ten minutes against under two for Inkling. It took ten turns and wrote almost 20,000 tokens at about 34 a second. Inkling finished in nine turns with about 5,000 tokens at about 61 a second. Waiting for the first token was a small part of either total, because most of each request was already in the cache.
What I take from it
On these tasks the two models were equally good. Inkling 2 Mini was much faster. Apart from MTP, I think most of that speed comes from the mixture of experts. For each token, Bonsai uses all 27 billion of its parameters and Inkling about 3.4 billion, or 5.4 billion counting the loops. Drafting three tokens at a time, against Bonsai’s one, adds to the gain. I did not measure the two effects separately. Inkling is also the first model I have run on my laptop that combines a mixture of experts with multi-token prediction.
Inkling’s published coding scores are high, but my tasks were too simple to show a difference in quality. Each task ran once, so I read the speed gap as solid and the tie as a first impression. In the Pi tests I ran Inkling one step below its default reasoning effort, which favours it on speed and may have cost it a little quality.
Memory is the real constraint. Inkling needs twice the space of Bonsai. With my normal apps open, the server occasionally refused a long prompt to keep the Mac out of swap. On a 48 GB laptop that also runs everything else I do, that is the right behaviour, if not always a welcome one.
For now I am switching my local coding setup to Inkling 2 Mini and keeping Bonsai for times when memory is tight. A year ago I would not have expected a model on my laptop to fix bugs and find a SQL injection in a minute or two.
Most of the AI I use runs in someone else’s data centre, which suits nearly all of my work. My interest in open-weight models comes from somewhere else. When a model can run close to its data and to the places where people and devices interact with it, new uses become possible. A model on a laptop or a phone can read files that should never leave the building and answer without a round trip to the cloud. It can also keep working without a network connection. I keep one running on my laptop to see how much of that capability fits on hardware I own, with weights anyone can download.
The answer changes every few months. Apple is asking a similar question at a much larger scale. In a recent paper, Minions, six Apple researchers describe a “virtual GPU cloud” built from the idle Apple silicon Macs in their organisation. Jobs are split into small pieces. Each Mac pulls work when it has nothing better to do and runs open models locally through Ollama. The paper reports that some jobs used to wait more than ten hours for a shared GPU and can now often start within minutes. It is an experience report with no benchmarks and no released code. I still find the idea promising, because it treats the computers already on our desks as inference capacity.
My own test was more modest. This month Thinking Machines released Inkling 2 Mini, an open-weight model that fits on a laptop and reports strong coding scores. I wanted to compare it with Ternary Bonsai 2 27B, the model I have been running locally since October. Setting both up on my own machine took a few minutes one morning. Then I watched them work.
The machine and the runtime
Everything here ran on my MacBook Pro with an M5 Pro chip and 48 GB of memory, with my usual apps open. The coding tests used the Pi coding agent, which talks to a local server instead of a cloud API.
Before comparing models, I had to choose the software that serves them. That choice alone can double the speed of the same model. A few days earlier I had compared two Mac apps that serve models locally, oMLX 0.8.0 and MTPLX 2.12.3, with Bonsai 2 27B on both. MTPLX supports multi-token prediction (MTP). A small draft head guesses the next few tokens and the full model checks all of the guesses in one pass. When the guesses are right, one pass produces several tokens. The output follows the model’s own distribution, so speed is the only thing that changes.
With thinking off and 512-token answers, MTPLX wrote about twice as fast as oMLX at every prompt size I tried. With MTP switched off, MTPLX was still about a third faster, so part of the gain comes from the runtime itself. MTP added the rest. MTPLX also read prompts faster, about 470 tokens per second against 300, so a 14,000-token prompt started answering after 30 seconds instead of 47.
oMLX has its merits, including lower memory use over a long run of unrelated prompts. For one person using a coding agent on one laptop, MTPLX was the clear choice. I used it for everything that follows.
Two models
The two models reach a laptop by different routes. Bonsai shrinks an existing model. Ternary Bonsai 2 27B from Prism ML is Qwen3.8 27B with almost every weight reduced to −1, 0 or +1. Prism gives its footprint as 5.9 GB and reports that it keeps 98.2% of the original model’s overall score on a suite covering reasoning, maths, coding, instruction following and tool use. The coding tests in that suite include HumanEval+ and LiveCodeBench, but none of them asks a model to work as an agent. I found no SWE-bench Verified result for Bonsai that I could trace to its source.
Inkling 2 Mini saves space another way. Thinking Machines released it on 20 November under the Apache 2.0 licence. It is a looped transformer. The middle 12 of its 24 layers run three times for every token, with the same weights on each pass. Each token goes through 48 layers, while the download stores only 24. Inkling is also a mixture of experts, so only a small part of the model works on any one token. The vendor reports 79.2% on SWE-bench Verified. Artificial Analysis gives it 20 on its Intelligence Index, against a median of 10 for open models of a similar size. Most of these figures come from the vendors, so I wanted my own.
Looping gives a model more room to think inside its hidden state without more weights to store. Researchers call this recurrent depth, or latent reasoning when the extra passes do work that would otherwise be written out as reasoning text. The idea goes back to the Universal Transformer in 2018. Smaller looped models such as Huginn and ByteDance’s Ouro came before Inkling. What is new is a looped mixture-of-experts model from a well-funded lab, with open weights and strong coding results. The loops add depth beneath the reasoning that Inkling still writes out. Larger models may follow. The Information has reported, from one anonymous source, that OpenAI’s next model, Astra, uses recurrent depth (summarised here by Bret Kerr). OpenAI has not confirmed it.
| Bonsai 2 27B | Inkling 2 Mini | |
|---|---|---|
| Made by | Prism ML, from Qwen3.8 27B | Thinking Machines |
| Design | Dense | Mixture of experts, looped layers |
| Parameters | 27 billion, all used for every token | 26.4 billion, about 3.4 billion active (5.4 billion counting the loops) |
| Weights (MTPLX build) | Ternary, stored in 2 bits | 4-bit experts, 8-bit attention |
| Download (MTPLX build) | 8.9 GB | 17.2 GB |
| Context window | About 262,000 tokens | About 1 million tokens |
| SWE-bench Verified | No traceable result | 79.2% (vendor) |
Both models arrive already compressed, so MTPLX mostly repackages them. Its Bonsai build, 8.9 GB, keeps the image encoder and adds a draft head for multi-token prediction. For Inkling it offers three builds that keep the official 4-bit experts and differ in how they store the rest. I used the middle one, Optimized Speed, a 17.2 GB download with 8-bit attention. MTPLX measured its loss on 6,140 tokens of code and prose as equal to the official weights within noise.
Both ran on MTPLX 2.13.2 with multi-token prediction on. It drafted one token ahead for Bonsai and three for Inkling. Loading both at once pushed my Mac into swap, so I ran them one at a time. Each used its vendor’s recommended sampling settings.
Raw speed
I started with the simplest measurement. Each model received a short question and a long service log of 330 lines. I asked for 700 tokens of answer and timed three runs of each. The log is about 11,000 tokens for Inkling and 14,500 for Bonsai, because their tokenisers split text differently.
| Bonsai 2 27B | Inkling 2 Mini | |
|---|---|---|
| Writing speed, short question | 36 tokens/s | 46 tokens/s |
| Writing speed, long log | 37 tokens/s | 65 tokens/s |
| Reading speed, long log | 430 tokens/s | 1,320 tokens/s |
| Wait for the first token, long log | 34 s | 8.6 s |
Inkling reads prompts about three times faster than Bonsai. That helps most the first time a model sees a long document. In a coding agent, later turns reuse most of the conversation from a cache, so how much a model writes, and how fast, counts for more.
Inkling also writes faster after the long log than after the short question. Its answer about the log is more predictable, so the draft head’s guesses were accepted about two thirds of the time, against under a third for the short question. With three tokens drafted at a time, each accepted guess is worth more to Inkling. For Bonsai, which drafts one, each pass over its much longer context costs enough to cancel the gain.
Speed helps only if the answers are right, so I also gave both models 13 small tasks, twice each. They covered arithmetic, a calendar question, a logic puzzle, a probability question, three Python functions checked by tests, a bug fix, a list with strict formatting rules, structured extraction, two tool calls and a question about the long log. Each model used its own default reasoning effort, medium for Bonsai and high for Inkling. Bonsai passed all 26. Inkling passed 24 and finished the set in 7 minutes 23 seconds against Bonsai’s 10 minutes 22 seconds.
On the probability question, Inkling got the answer right but wrapped it in LaTeX,
\boxed{5/12}, when I had asked for a bare fraction. Maths benchmarks mark their final answers
that way, and Inkling had clearly sat a few of them. Its model card
warns of occasional failures to follow instructions precisely. The other miss was a
tool call. Inkling handled Pi’s own read, bash and edit every time. When the
same kind of tool was named read_file, it wrote the call out as broken text in
seven of ten requests.
A coding agent with a local model
All of those were single answers. An agent has to plan, call tools, read the results and try again. I gave Pi three small tasks, each in a fresh folder, with reasoning effort set to medium for both models.
- Create: write a command-line tool that prints statistics for one column of a CSV file, following an exact output format, and write tests for it. I checked the result with five tests of my own that the model never saw.
- Fix: a small module with three planted bugs and failing tests. The model had to fix the code without touching the tests. I checked it with extra hidden tests.
- Review: a short Python class with five planted problems, from SQL injection to an error handler that lets anyone log in. The model had to list the problems by severity and suggest a fix for each.
| Task | Bonsai 2 27B | Inkling 2 Mini |
|---|---|---|
| Create | All 5 hidden tests pass | All 5 hidden tests pass |
| Fix | 3 of 3 bugs fixed, 1 hidden check missed | 3 of 3 bugs fixed, 1 hidden check missed |
| Review | 5 of 5 problems, plus 3 sound extras | 5 of 5 problems, plus 3 sound extras |
| Total time | 12 min 22 s | 2 min 24 s |
The two models made the same miss on the fix. The docstring says the discount must be between 0 and 100. Neither added a check for it. Their reviews ranked the same two problems first, the login bypass and the SQL injection. Both also raised sensible points I had not planted.
Bonsai spent most of its time on the create task, more than ten minutes against under two for Inkling. It took ten turns and wrote almost 20,000 tokens at about 34 a second. Inkling finished in nine turns with about 5,000 tokens at about 61 a second. Waiting for the first token was a small part of either total, because most of each request was already in the cache.
What I take from it
On these tasks the two models were equally good. Inkling 2 Mini was much faster. Apart from MTP, I think most of that speed comes from the mixture of experts. For each token, Bonsai uses all 27 billion of its parameters and Inkling about 3.4 billion, or 5.4 billion counting the loops. Drafting three tokens at a time, against Bonsai’s one, adds to the gain. I did not measure the two effects separately. Inkling is also the first model I have run on my laptop that combines a mixture of experts with multi-token prediction.
Inkling’s published coding scores are high, but my tasks were too simple to show a difference in quality. Each task ran once, so I read the speed gap as solid and the tie as a first impression. In the Pi tests I ran Inkling one step below its default reasoning effort, which favours it on speed and may have cost it a little quality.
Memory is the real constraint. Inkling needs twice the space of Bonsai. With my normal apps open, the server occasionally refused a long prompt to keep the Mac out of swap. On a 48 GB laptop that also runs everything else I do, that is the right behaviour, if not always a welcome one.
For now I am switching my local coding setup to Inkling 2 Mini and keeping Bonsai for times when memory is tight. A year ago I would not have expected a model on my laptop to fix bugs and find a SQL injection in a minute or two.
