← Blog · · 6 min read

Hugging Face's pi adapter for Qwen3.8-27B at 4-bit on a MacBook: 8 tool calls against 8, and the hard tasks ran out of time

Watch the full test on YouTube

On this page (8 sections)
  1. The card's numbers are for a model a 64 GB Mac cannot load
  2. One attempt looked like the card: 7 tool calls against 13
  3. Five attempts each: the saving did not hold
  4. Hard tasks ran out of time in both arms
  5. One task flipped between 4-bit and 8-bit
  6. How we tested
  7. What this means for you
  8. What we'd try next

Our first run looked exactly like the model card: the adapted model finished a task in 7 tool calls where the plain model needed 13. Then we ran the same task five times each, and the median was 8 against 8.

TL;DR

  • Hugging Face's pi adapter for Qwen3.8-27B is reported at 39.5% → 55.8% on Terminal-Bench 2.1, measured at full precision on a server. The GGUF card says the file a laptop runs "has not been re-evaluated".
  • On a 64 GB M3 Max at 4-bit, over five attempts each on two tasks that finish, the adapter saved no tool calls on one (median 8 against 8) and one call on the other (7 against 8), failed one attempt in ten, and was slower on the clock.
  • Three of the six graded sample tasks ran out of time in both arms. The model writes about 15 tokens a second here, and the benchmark's own limits are 15 or 30 minutes.
  • We could not see the card's gain, and we could not rule it out. On this laptop the machine's speed decided more than the adapter did.
Median tool calls, adapter on against off, on the three tasks both arms finish
Median tool calls, adapter on against off, on the three tasks both arms finish

The card's numbers are for a model a 64 GB Mac cannot load

The adapter is a LoRA, about 319 MB, trained with reinforcement learning inside the pi coding agent. Its card reports the gain for BF16 weights on vLLM: one attempt per task, temperature 0.8, thinking off, one hour per task. It also reports that the adapted model needs a median of 8 turns against 18 on the tasks both versions solve.

At BF16 the base model is 53.8 GB, which does not fit beside the benchmark's containers in 64 GB. What does fit is the 8-bit file (28.6 GB) and the 4-bit file (19.4 GB). The GGUF card says of the 4-bit file that it "drifts further from what the adapter learned against". Nobody has published how far, so we measured it.

To compare fairly we ran one llama.cpp server with the adapter loaded and switched its strength between 1 and 0 with one request before each trial. Both arms share the process, the weights file and the cache. Every task ran with the adapter on and off, and the order alternated.

One attempt looked like the card: 7 tool calls against 13

The first task in our seeded sample, pypi-server, asks the agent to write a small Python package, serve it from its own package index and install it from there. With the adapter on it took 7 tool calls and 84 seconds of agent time. With the adapter off it took 13 tool calls and 112 seconds: it built the package, moved the files, built again and started the server twice. Both passed.

That is the pattern the card describes. It is also one attempt per arm.

Five attempts each: the saving did not hold

We picked two tasks that finish in about three and a half minutes end to end, pypi-server and fix-git, and ran five attempts per arm at 4-bit.

Task Arm Passed Tool calls per attempt Median Median agent time
pypi-server adapter on 5 of 5 7, 8, 5, 18, 8 8 84 s
pypi-server adapter off 5 of 5 13, 6, 8, 8, 7 8 73 s
fix-git adapter on 4 of 5 7, 6, 8, 7, and a failed 9 7 80 s
fix-git adapter off 5 of 5 8, 9, 8, 8, 8 8 61 s

The 7-against-13 pair was one short run next to one long run. The adapter also produced the longest attempt of the ten, 18 calls. Its one failure came on fix-git: it found the lost commit and merged it, then resolved the conflict by rewriting the file, and the result did not match the expected file.

The adapter was slower on the clock on both tasks. It writes a little more per attempt (a median of 939 and 943 generated tokens against 879 and 826), and at this speed every extra sentence costs time.

One saving did repeat. On multi-source-data-merger the adapter needed 4 tool calls against 7, at 4-bit and again at 8-bit. That is one attempt per cell.

Hard tasks ran out of time in both arms

The server log gives the speed directly: about 184 tokens a second reading a prompt and about 15 writing an answer, with the GPU at 98%. The adapter costs about 5% of writing speed. The 8-bit file writes 10 to 12 tokens a second.

Each Terminal-Bench task has its own limit, 900 or 1,800 seconds for the ones we saw. path-tracing, extract-moves-from-video and gpt2-codegolf hit that limit in both arms. On gpt2-codegolf the adapted model wrote 9,938 tokens across 8 tool calls, and the server log puts 855 of its 900 seconds in writing. It was not stuck. It was mid-answer when the limit arrived.

The card gave every task an hour. We left the benchmark's limits in place, so a timeout here measures the laptop as much as the model.

One task flipped between 4-bit and 8-bit

cobol-modernization was the only hard task that split. At 4-bit the adapter passed in 11 tool calls and about ten minutes, and the plain model made 29 calls and failed. At 8-bit the adapter ran out of time after 9 calls, and the plain model passed with the right files in place when the limit stopped it. Four single attempts, two wins each. That is not an adapter effect or a quantization effect. It is what one attempt per arm looks like on a task this close to the limit.

We also found a mistake of our own. Our notes said the runs sampled at temperature 0.8, like the card. The running server reported 1.0, with top-k 20, top-p 0.95 and min-p 0.05: what llama serve applies to this file when no sampling flag is set. Both arms ran under the same settings, so the comparison between them holds. The absolute pass rates are not the card's conditions.

pypi-server: tool calls in each of five attempts per arm
pypi-server: tool calls in each of five attempts per arm

How we tested

What this means for you

  1. If you run this adapter on a laptop for short jobs of five to ten steps, expect the same results as the plain model, a little slower. Both are usable: about a minute of agent time.
  2. If you want the card's gain, you need the tasks where it shows, and those need more speed or more time than a laptop gives inside the benchmark's limits.
  3. Before you trust any single local agent run, repeat it. Our headline number lasted one attempt.

Applies to: Qwen3.8-27B with the pi adapter on llama.cpp at Q4_K_M and Q8_0, on Apple Silicon with 64 GB. It says nothing about the card's own numbers.

What we'd try next

The same tasks with the card's one-hour limit and several attempts each, so the timed-out tasks can finish and the adapter gets a fair chance. Data, commands and logs: the run records.

Have you measured an agent adapter on a quantized base with more than one attempt per task? We would like to compare numbers.

Code and raw data for this post

How this was made: an AI agent (Claude) ran this experiment on our own MacBook; every number comes from the run records linked below. A person at Hackbig reviewed it before publishing.