Can a coding agent build a working feature on a laptop, with a model that is larger than the laptop's memory? It can, in 9 of 10 runs on one task. This post gives the setup, the results, and the code it wrote next to Claude Sonnet 5.5's.
Setup
| Model | Qwen3.8 Flash Next Coder, GSQ-RCO build by ISTA-DASLab: a 176.9B-parameter mixture-of-experts model pruned to 256 of 512 experts, about 1.89 bits per parameter |
|---|---|
| File | GGUF, IQ1_M, 58.4 GB in two parts |
| Server | llama.cpp llama-server -ngl 99 -c 32768 --jinja, Metal on the Mac, CUDA on the GPU |
| Agent | Pi 1.5.2, default tools, pointed at the local OpenAI-compatible endpoint |
| Task | Implement approvals.py, a sequential approval workflow, until 8 pytest tests pass. Standard library only, tests read-only. |
Each run starts from an empty folder holding the tests and the prompt. A run passes when all 8 tests are green and the test files are byte-identical to the originals.
Results
| Machine | Runs passed | Median time to green, passed runs | Decode speed |
|---|---|---|---|
| MacBook Pro M3 Max, 48 GB unified memory | 9 of 10 | 98 s | 34 tokens/s |
| NVIDIA A40, 46 GB | 5 of 5 | 41 s | 60 tokens/s |
The Mac has 48 GB for a 58 GB file, so llama.cpp memory-maps the weights and macOS pages part of them from disk. Decode still holds at 34 tokens per second. On the A40 the same file runs at 60.
The laptop runs came in two sets of five, and the passed runs took from 66 to 392 seconds. The first set passed 4 of 5: in the failed run, the agent never wrote the file. That machine had no python command and no pytest on the agent's path, and we did not establish that this was the cause. With both added and other applications closed, the second set passed 5 of 5. On the GPU, five more runs with a speculative decoding option of llama.cpp also passed.
The code, side by side
Here is the approve path from one laptop run, next to Sonnet 5.5's for the same prompt and tests, through the same agent.
def approve(self, request_id: Hashable, approver: str) -> None:
"""Record an approval by the approver who is up next."""
if self._status[request_id] != PENDING:
raise ValueError(
f"request {request_id!r} is already {self._status[request_id]}"
)
expected = self._expected_approver(request_id)
if approver != expected:
raise PermissionError(
f"{approver!r} cannot approve; expected {expected!r}"
)
self._progress[request_id] += 1
self._history[request_id].append(("approved", approver))
self._status[request_id] = (
PENDING if self._expected_approver(request_id) else APPROVED
)def _check_actor(self, req, approver):
if req["status"] != "pending":
raise ValueError(f"request is already {req['status']}")
if approver != req["steps"][req["index"]]:
raise PermissionError(f"{approver!r} is not the next approver")
def approve(self, request_id, approver):
req = self._get(request_id)
self._check_actor(req, approver)
req["history"].append(("approved", approver))
req["index"] += 1
if req["index"] >= len(req["steps"]):
req["status"] = "approved"Both are correct. The differences are in design:
- State. Sonnet keeps one dictionary per request and freezes the list of approvers at submission. Qwen keeps four parallel dictionaries and recomputes the required steps on every call.
- Reuse. Sonnet factors the status and approver checks into
_check_actor. Qwen repeats them inapproveandreject. - Surface. Qwen adds type hints, docstrings, named constants and a configurable threshold and extra approver that the tests never ask for. Sonnet writes the minimum.
- Edges. Sonnet stores the rejection reason and raises a clear error for an unknown request. Qwen accepts the reason and drops it, and lets a bare
KeyErrorthrough.
Quality, scored blind
Three models from three vendors graded the 10 files from the compressed model's GPU runs and 5 from Sonnet, shuffled and unlabeled, on five criteria from 1 to 5. All 15 files pass the tests. No person graded, and one juror comes from Sonnet's vendor. One of the 45 verdicts was cut off and is left out, so each figure is the mean of the 44 that remain.
| Criterion | Compressed Qwen | Sonnet 5.5 |
|---|---|---|
| Correctness beyond the tests | 3.83 | 4.20 |
| Error handling | 3.93 | 4.33 |
| Design | 3.76 | 3.93 |
| Maintainability | 3.72 | 3.87 |
| Readability | 4.66 | 4.60 |
| Mean | 3.98 | 4.19 |
| Lines of code, without blank and comment lines | 77 to 104 | 49 to 52 |
The jury agrees with the reading above: the compressed model writes readable code, about 1.7 times as much of it, and loses points on edge cases and design. The gap in the mean, 0.21 points, is smaller than the spread between the jurors, whose own means run from 3.5 to 4.8. Read the direction on each criterion, not the size of the gap.
Takeaways
- A 176.9B-parameter coding model at under 2 bits per weight completes a small test-driven task on a 48 GB laptop, in 9 of 10 runs.
- A model larger than memory is usable through memory-mapped weights: 34 tokens per second on the laptop, against 60 on the GPU.
- On this task, a three-model jury scores its code 0.21 points out of 5 below a frontier cloud model's, a gap smaller than the spread between the jurors. The lower scores are on design and edge cases. Both models pass the tests.
This is one task, not a benchmark. To measure open models on your own code and hardware, work with us.