Field report: local coding agents on M5 Max
Browse files- README.md +199 -0
- charts/inkling_memory.png +3 -0
- charts/parallel_vs_sequential.png +3 -0
- charts/prefill_under_load.png +3 -0
- charts/time_per_ticket.png +3 -0
- make_charts.py +116 -0
- results/inkling_kv_memory.csv +4 -0
- results/parallel_batch_inkling.csv +5 -0
- results/prefill_under_load.csv +4 -0
- results/sequential_runs.csv +25 -0
README.md
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: "Local coding agents on a 128 GB Mac: one big model or several small ones?"
|
| 6 |
+
tags:
|
| 7 |
+
- llama.cpp
|
| 8 |
+
- gguf
|
| 9 |
+
- apple-silicon
|
| 10 |
+
- coding-agents
|
| 11 |
+
- claude-code
|
| 12 |
+
- speculative-decoding
|
| 13 |
+
- field-report
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Local coding agents on a 128 GB Mac: one big model or several small ones?
|
| 19 |
+
|
| 20 |
+
I'm fairly new to running models locally, and this is my first attempt at measuring something
|
| 21 |
+
properly instead of going on gut feeling. The test is small and has gaps, which I describe
|
| 22 |
+
below. I'm sharing it because I couldn't find numbers for this exact question on Apple
|
| 23 |
+
Silicon, and because I'd like to hear where my method is wrong.
|
| 24 |
+
|
| 25 |
+
## The question
|
| 26 |
+
|
| 27 |
+
My Mac Studio has 128 GB of unified memory. Today I run one large model,
|
| 28 |
+
Qwen3.8 Flash Next, as a local coding agent. It fills most of the memory. I wondered if it
|
| 29 |
+
would be better to run a smaller model instead and give it several tickets at once, with one
|
| 30 |
+
agent per ticket.
|
| 31 |
+
|
| 32 |
+
I compared three models:
|
| 33 |
+
|
| 34 |
+
- Qwen3.8 Flash Next (MoE), the model I already use
|
| 35 |
+
- Qwen3.8-27B (dense), about 18 GB at 4 bits
|
| 36 |
+
- Inkling 2 Mini (26.4B MoE with looped layers, about 5.4B active per token), released a few
|
| 37 |
+
days before this test
|
| 38 |
+
|
| 39 |
+
## Short version
|
| 40 |
+
|
| 41 |
+
- All three models solved every ticket and passed every hidden test, so on these tasks
|
| 42 |
+
correctness did not separate them.
|
| 43 |
+
- With one agent working through the tickets in order, Flash Next was about twice as fast as
|
| 44 |
+
the other two.
|
| 45 |
+
- Running four agents at once on Inkling 2 Mini was slower overall than one agent doing the
|
| 46 |
+
tickets in order. Prompt processing (prefill) is the bottleneck: the agents share it, and
|
| 47 |
+
agents spend most of their time on it.
|
| 48 |
+
- Between the two smaller models, Qwen3.8-27B wrote slightly cleaner code than Inkling 2 Mini.
|
| 49 |
+
|
| 50 |
+
For my machine, the answer was to keep one Flash Next agent. More detail follows.
|
| 51 |
+
|
| 52 |
+
## How I ran it
|
| 53 |
+
|
| 54 |
+
### Machine and software
|
| 55 |
+
|
| 56 |
+
| | |
|
| 57 |
+
|---|---|
|
| 58 |
+
| Machine | Mac Studio, Apple M5 Max, 128 GB unified memory (GPU wired limit 120 GiB) |
|
| 59 |
+
| Inference | llama.cpp `llama-server` with Metal |
|
| 60 |
+
| Agent | Claude Code 2.1.332 in headless mode, pointed at the local server through a small shim that speaks the Anthropic API |
|
| 61 |
+
| Context | 262,144 tokens, q8_0 K/V cache, flash attention, `--kv-unified` |
|
| 62 |
+
|
| 63 |
+
### Models and settings
|
| 64 |
+
|
| 65 |
+
| Model | File | Speculative decoding | Sampling |
|
| 66 |
+
|---|---|---|---|
|
| 67 |
+
| Qwen3.8 Flash Next | UD-IQ4_XS | MTP draft (Q8_0), up to 3 tokens | temp 1.0, top-p 0.95, top-k 20 |
|
| 68 |
+
| Qwen3.8-27B | `unsloth/Qwen3.8-27B-GGUF`, UD-Q4_K_XL | MTP draft (Q4_0), up to 3 tokens | temp 1.0, top-p 0.95, top-k 20, min-p 0 |
|
| 69 |
+
| Inkling 2 Mini | `unsloth/Inkling-2-Mini-GGUF`, UD-Q4_K_XL (mainline layout) | DSpark draft (Q8_0), up to 2 tokens | temp 1.0, top-p 1.0, top-k 0, min-p 0 |
|
| 70 |
+
|
| 71 |
+
I used the sampling settings recommended in each model card (Qwen's thinking mode for both
|
| 72 |
+
Qwen models). Flash Next ran on an older llama.cpp build (b12144) behind a router, because
|
| 73 |
+
that is how my setup already works. The other two ran on b12721, which was the first build I
|
| 74 |
+
found with support for Inkling's looped layers and its DSpark drafter.
|
| 75 |
+
|
| 76 |
+
### The tickets
|
| 77 |
+
|
| 78 |
+
I used a small private Python app (FastAPI and SQLite, about 2,600 lines, with an existing
|
| 79 |
+
pytest suite). I wrote four tickets of different kinds:
|
| 80 |
+
|
| 81 |
+
| | Kind | What the agent had to do |
|
| 82 |
+
|---|---|---|
|
| 83 |
+
| T1 | Feature | Spread a shipping cost across item prices in proportion to price, with exact rounding rules and input validation |
|
| 84 |
+
| T2 | Refactor | Merge two copies of the same FIFO inventory loop into one helper and add an `as_of` parameter, without changing behaviour or error messages |
|
| 85 |
+
| T3 | Bug fix | Fix a Norwegian number-format bug (`1.299,50` was stored as 1.29) and accept a table of valid and invalid inputs |
|
| 86 |
+
| T4 | Endpoint | Add a read-only CSV export with exact headers, `;` as separator, decimal commas and proper quoting |
|
| 87 |
+
|
| 88 |
+
For each ticket I also wrote hidden tests that the agent never saw. I checked them against my
|
| 89 |
+
own reference solutions: they fail on the original code and pass with the reference.
|
| 90 |
+
|
| 91 |
+
### The rules for each run
|
| 92 |
+
|
| 93 |
+
- A fresh copy of the code and an empty data folder.
|
| 94 |
+
- The agent could read and edit files and run exactly one shell command, `python -m pytest -q`.
|
| 95 |
+
No web access and no sub-agents.
|
| 96 |
+
- A limit of 60 turns and 30 minutes.
|
| 97 |
+
- The agent had to end its answer with `STATUS: PASS` or `STATUS: FAIL`. I compared that line
|
| 98 |
+
with the real test result to see if the agent was honest about its own work.
|
| 99 |
+
- Two runs per model and ticket, one after the other.
|
| 100 |
+
|
| 101 |
+
After each run I ran the hidden tests and the full suite and saved the diff.
|
| 102 |
+
|
| 103 |
+
## Results with one agent
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
|
| 107 |
+
| Model | Hidden tests | Full suite green | Honest status line | Mean / median minutes per ticket | Mean turns | Blind code score (1 to 5) |
|
| 108 |
+
|---|---|---|---|---|---|---|
|
| 109 |
+
| Qwen3.8 Flash Next | 64/64 | 8/8 | 8/8 | 2.0 / 1.9 | 12.6 | 4.3 |
|
| 110 |
+
| Qwen3.8-27B | 64/64 | 8/8 | 8/8 | 4.4 / 3.4 | 12.0 | 4.6 |
|
| 111 |
+
| Inkling 2 Mini | 64/64 | 8/8 | 8/8 | 4.0 / 4.2 | 13.6 | 4.1 |
|
| 112 |
+
|
| 113 |
+
Since every run passed, I also looked at the code itself. I shuffled the 24 diffs, hid the
|
| 114 |
+
model names and gave each a score from 1 to 5. I added the names back only after scoring. The
|
| 115 |
+
scoring was done by Claude Opus 5.5 working with me, so it reflects one reviewer's taste.
|
| 116 |
+
|
| 117 |
+
The differences were small, but there was a pattern:
|
| 118 |
+
|
| 119 |
+
- Qwen3.8-27B was the most consistent. It used integer maths for money and validated input
|
| 120 |
+
strictly.
|
| 121 |
+
- Inkling 2 Mini once rounded money with floating point, and once accepted a malformed amount
|
| 122 |
+
(`1.2,50`).
|
| 123 |
+
- Flash Next added things nobody asked for in the bug-fix ticket, such as negative amounts and
|
| 124 |
+
US number format.
|
| 125 |
+
|
| 126 |
+
## Four agents at once
|
| 127 |
+
|
| 128 |
+
This was the part I was most curious about. I gave all four tickets to Inkling 2 Mini at the
|
| 129 |
+
same time, one agent per ticket, using four server slots. Quality was unchanged: 32 of 32
|
| 130 |
+
hidden tests passed and every status line was honest. Speed was not.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+
I expected parallel agents to win, because batching several requests usually helps on a GPU.
|
| 135 |
+
The server logs showed why it didn't here:
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
|
| 139 |
+
Each agent turn sends roughly 7,000 to 10,000 tokens of context. With one agent, Inkling
|
| 140 |
+
processed that prompt at about 380 tokens per second. With four agents, each request got
|
| 141 |
+
about 105 to 124 tokens per second, and an average prefill took about 80 seconds instead of
|
| 142 |
+
24. Generation held up fine at about 35 tokens per second per slot, but a coding agent spends
|
| 143 |
+
much more time reading than writing, so the slower prefill decided the result.
|
| 144 |
+
|
| 145 |
+
I stopped after one parallel batch, so this is one data point for one model. I'd be happy to
|
| 146 |
+
be told about a setting I missed.
|
| 147 |
+
|
| 148 |
+
## Other things I learned
|
| 149 |
+
|
| 150 |
+
**Inkling 2 Mini uses a lot of memory for long context.**
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
|
| 154 |
+
That works out to about 146 KB per token with a q8_0 cache, on top of about 24 GB for the
|
| 155 |
+
weights, drafter and buffers. My guess is that the looped layers (the middle layers run three
|
| 156 |
+
times per token) keep a separate cache for each pass, but I haven't verified that.
|
| 157 |
+
|
| 158 |
+
**Speculative decoding helped both small models.** In short smoke tests, Inkling's DSpark draft
|
| 159 |
+
had 61% of its tokens accepted, and Qwen3.8-27B's MTP draft had 50% accepted, with an average of
|
| 160 |
+
2.5 tokens per step. Inkling slowed from about 47 to about 28 tokens per second over a long
|
| 161 |
+
answer of about 1,000 tokens.
|
| 162 |
+
|
| 163 |
+
**A small llama.cpp detail.** I built a desktop widget that shows which models are loaded.
|
| 164 |
+
With `--sleep-idle-seconds`, polling `GET /slots` counts as activity, so my widget kept the
|
| 165 |
+
model awake. Polling `GET /props` (which has an `is_sleeping` field) and `GET /metrics` does
|
| 166 |
+
not wake it.
|
| 167 |
+
|
| 168 |
+
## What I'd do differently
|
| 169 |
+
|
| 170 |
+
- Harder tickets. All three models passed everything, so these tasks were too easy to show
|
| 171 |
+
differences in correctness. Multi-file tickets would be a better test.
|
| 172 |
+
- More runs. At temperature 1.0 the runs vary, and two per ticket is not much.
|
| 173 |
+
- More than one reviewer for code quality.
|
| 174 |
+
- Run the parallel test for all three models, and try fewer slots (two instead of four).
|
| 175 |
+
- Run all models on the same llama.cpp build.
|
| 176 |
+
|
| 177 |
+
## What I'm using now
|
| 178 |
+
|
| 179 |
+
One Qwen3.8 Flash Next agent, working through tickets one at a time. I deleted Inkling 2 Mini
|
| 180 |
+
and Qwen3.8-27B from the machine. If I need a smaller model next to a heavy job later,
|
| 181 |
+
Qwen3.8-27B is the one I'd bring back.
|
| 182 |
+
|
| 183 |
+
## Files
|
| 184 |
+
|
| 185 |
+
- `results/sequential_runs.csv`: one row per run, with model, ticket, run, time, turns,
|
| 186 |
+
output tokens, hidden tests, honest status line, diff size and blind score
|
| 187 |
+
- `results/parallel_batch_inkling.csv`: the four-agent batch
|
| 188 |
+
- `results/prefill_under_load.csv`: prefill speed with one and four agents, from server logs
|
| 189 |
+
- `results/inkling_kv_memory.csv`: memory against context size
|
| 190 |
+
- `charts/` and `make_charts.py`: the figures and the script that draws them from the CSV files
|
| 191 |
+
|
| 192 |
+
The app's source code, the tickets in full and the diffs are not included, because the app is
|
| 193 |
+
private.
|
| 194 |
+
|
| 195 |
+
## Note on AI use
|
| 196 |
+
|
| 197 |
+
I ran this test together with Claude Code (Claude Opus 5.5). It helped set up the servers,
|
| 198 |
+
write the run scripts, score the diffs blind and draft this write-up. The decisions,
|
| 199 |
+
the machine and the conclusions are mine.
|
charts/inkling_memory.png
ADDED
|
Git LFS Details
|
charts/parallel_vs_sequential.png
ADDED
|
Git LFS Details
|
charts/prefill_under_load.png
ADDED
|
Git LFS Details
|
charts/time_per_ticket.png
ADDED
|
Git LFS Details
|
make_charts.py
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Static PNG charts for the HF write-up. Run: python make_charts.py (from hf-draft/)."""
|
| 2 |
+
import csv, statistics as st, pathlib
|
| 3 |
+
import matplotlib
|
| 4 |
+
matplotlib.use("Agg")
|
| 5 |
+
import matplotlib.pyplot as plt
|
| 6 |
+
|
| 7 |
+
HERE = pathlib.Path(__file__).resolve().parent
|
| 8 |
+
OUT = HERE / "charts"; OUT.mkdir(exist_ok=True)
|
| 9 |
+
|
| 10 |
+
# Reference palette (dataviz skill), slots 1-3 in fixed order, light mode.
|
| 11 |
+
SURFACE, INK, INK2, GRID = "#fcfcfb", "#0b0b0b", "#52514e", "#e4e3df"
|
| 12 |
+
MODELS = ["Qwen3.8-Flash-Next", "Inkling-2-Mini", "Qwen3.8-27B"]
|
| 13 |
+
COLOR = {"Qwen3.8-Flash-Next": "#2a78d6", "Inkling-2-Mini": "#eb6834", "Qwen3.8-27B": "#1baf7a"}
|
| 14 |
+
LABEL = {"Qwen3.8-Flash-Next": "Qwen3.8 Flash Next", "Inkling-2-Mini": "Inkling 2 Mini", "Qwen3.8-27B": "Qwen3.8-27B"}
|
| 15 |
+
|
| 16 |
+
plt.rcParams.update({
|
| 17 |
+
"figure.facecolor": SURFACE, "axes.facecolor": SURFACE, "savefig.facecolor": SURFACE,
|
| 18 |
+
"font.family": "DejaVu Sans", "font.size": 11, "text.color": INK,
|
| 19 |
+
"axes.labelcolor": INK2, "xtick.color": INK2, "ytick.color": INK2,
|
| 20 |
+
"axes.edgecolor": GRID, "axes.spines.top": False, "axes.spines.right": False,
|
| 21 |
+
"axes.titlelocation": "left", "axes.titlesize": 13, "axes.titleweight": "bold",
|
| 22 |
+
})
|
| 23 |
+
|
| 24 |
+
def style(ax, grid_axis="x"):
|
| 25 |
+
ax.grid(axis=grid_axis, color=GRID, linewidth=0.8)
|
| 26 |
+
ax.set_axisbelow(True)
|
| 27 |
+
ax.spines["left"].set_visible(False)
|
| 28 |
+
ax.tick_params(length=0)
|
| 29 |
+
|
| 30 |
+
def title(fig, text):
|
| 31 |
+
fig.text(0.01, 0.98, text, fontsize=13, fontweight="bold", color=INK, ha="left", va="top")
|
| 32 |
+
|
| 33 |
+
def note(fig, text):
|
| 34 |
+
fig.text(0.01, 0.01, text, fontsize=9, color=INK2, ha="left", va="bottom")
|
| 35 |
+
|
| 36 |
+
rows = list(csv.DictReader(open(HERE / "results/sequential_runs.csv")))
|
| 37 |
+
|
| 38 |
+
# 1. Minutes per ticket, every run as a dot (dot plot, 3 series, legend + direct labels).
|
| 39 |
+
tasks = ["T1_feature", "T2_refactor", "T3_bugfix", "T4_endpoint"]
|
| 40 |
+
tnames = {"T1_feature": "T1 feature", "T2_refactor": "T2 refactor", "T3_bugfix": "T3 bug fix", "T4_endpoint": "T4 endpoint"}
|
| 41 |
+
fig, ax = plt.subplots(figsize=(8, 4.2))
|
| 42 |
+
offs = {"Qwen3.8-Flash-Next": -0.2, "Inkling-2-Mini": 0.0, "Qwen3.8-27B": 0.2}
|
| 43 |
+
for m in MODELS:
|
| 44 |
+
for i, t in enumerate(tasks):
|
| 45 |
+
xs = [int(r["wall_seconds"]) / 60 for r in rows if r["model"] == m and r["task"] == t]
|
| 46 |
+
ax.scatter(xs, [i + offs[m]] * len(xs), s=70, color=COLOR[m], edgecolor=SURFACE,
|
| 47 |
+
linewidth=2, zorder=3, label=LABEL[m] if i == 0 else None)
|
| 48 |
+
ax.set_yticks(range(len(tasks)), [tnames[t] for t in tasks])
|
| 49 |
+
ax.invert_yaxis()
|
| 50 |
+
ax.set_xlim(0, 11.5)
|
| 51 |
+
ax.set_xlabel("Minutes per ticket (one dot per run)")
|
| 52 |
+
title(fig, "One agent per ticket: Flash Next was about twice as fast")
|
| 53 |
+
style(ax)
|
| 54 |
+
ax.legend(frameon=False, loc="lower right", fontsize=10)
|
| 55 |
+
note(fig, "2 runs per model and ticket. All 24 runs passed all hidden tests.")
|
| 56 |
+
fig.tight_layout(rect=(0, 0.04, 1, 0.93))
|
| 57 |
+
fig.savefig(OUT / "time_per_ticket.png", dpi=200)
|
| 58 |
+
|
| 59 |
+
# 2. Wall-clock for all four tickets: sequential vs four agents at once.
|
| 60 |
+
items = [
|
| 61 |
+
("Flash Next, 1 agent", 8.1, "Qwen3.8-Flash-Next", False),
|
| 62 |
+
("Inkling, 1 agent", 17.3, "Inkling-2-Mini", False),
|
| 63 |
+
("Qwen3.8-27B, 1 agent", 20.1, "Qwen3.8-27B", False),
|
| 64 |
+
("Inkling, 4 agents in parallel", 25.8, "Inkling-2-Mini", True),
|
| 65 |
+
]
|
| 66 |
+
fig, ax = plt.subplots(figsize=(8, 3.4))
|
| 67 |
+
for i, (lab, v, m, par) in enumerate(items):
|
| 68 |
+
ax.barh(i, v, height=0.55, color=COLOR[m], hatch="///" if par else None,
|
| 69 |
+
edgecolor=SURFACE, linewidth=2)
|
| 70 |
+
ax.text(v + 0.4, i, f"{v:.1f} min", va="center", fontsize=10, color=INK)
|
| 71 |
+
ax.set_yticks(range(len(items)), [x[0] for x in items])
|
| 72 |
+
ax.invert_yaxis()
|
| 73 |
+
ax.set_xlim(0, 30)
|
| 74 |
+
ax.set_xlabel("Minutes to finish all 4 tickets")
|
| 75 |
+
title(fig, "Four agents at once were slower than one agent in a row")
|
| 76 |
+
style(ax)
|
| 77 |
+
note(fig, "Sequential = run 1 of each model. Parallel = one batch, Inkling only.")
|
| 78 |
+
fig.tight_layout(rect=(0, 0.05, 1, 0.91))
|
| 79 |
+
fig.savefig(OUT / "parallel_vs_sequential.png", dpi=200)
|
| 80 |
+
|
| 81 |
+
# 3. Prefill throughput, 1 vs 4 agents (one series, no legend).
|
| 82 |
+
fig, ax = plt.subplots(figsize=(8, 2.6))
|
| 83 |
+
vals = [("1 agent", 380), ("4 agents at once", 110)]
|
| 84 |
+
for i, (lab, v) in enumerate(vals):
|
| 85 |
+
ax.barh(i, v, height=0.5, color=COLOR["Inkling-2-Mini"], hatch="///" if i else None,
|
| 86 |
+
edgecolor=SURFACE, linewidth=2)
|
| 87 |
+
ax.text(v + 6, i, f"~{v} tok/s", va="center", fontsize=10)
|
| 88 |
+
ax.set_yticks(range(2), [v[0] for v in vals])
|
| 89 |
+
ax.invert_yaxis()
|
| 90 |
+
ax.set_xlim(0, 450)
|
| 91 |
+
ax.set_xlabel("Prompt processing speed per request (tokens/s)")
|
| 92 |
+
title(fig, "Inkling 2 Mini: prefill dropped ~3.5x with four agents")
|
| 93 |
+
style(ax)
|
| 94 |
+
note(fig, "From llama-server logs. 31 requests (1 agent), 23 requests (4 agents, 105-124 tok/s).")
|
| 95 |
+
fig.tight_layout(rect=(0, 0.07, 1, 0.88))
|
| 96 |
+
fig.savefig(OUT / "prefill_under_load.png", dpi=200)
|
| 97 |
+
|
| 98 |
+
# 4. Inkling memory vs context (single series line).
|
| 99 |
+
ctx = [131, 262, 524]; gb = [43.1, 62.3, 100.7]
|
| 100 |
+
fig, ax = plt.subplots(figsize=(8, 3.4))
|
| 101 |
+
ax.plot(ctx, gb, color=COLOR["Inkling-2-Mini"], linewidth=2, zorder=2)
|
| 102 |
+
ax.scatter(ctx, gb, s=70, color=COLOR["Inkling-2-Mini"], edgecolor=SURFACE, linewidth=2, zorder=3)
|
| 103 |
+
for x, y in zip(ctx, gb):
|
| 104 |
+
ax.annotate(f"{y:.0f} GB", (x, y), textcoords="offset points", xytext=(0, 10), ha="center", fontsize=10)
|
| 105 |
+
ax.axhline(128, color=INK2, linewidth=1, linestyle=(0, (4, 3)))
|
| 106 |
+
ax.text(105, 130, "128 GB machine", fontsize=9, color=INK2, va="bottom")
|
| 107 |
+
ax.set_xticks(ctx, ["131k", "262k", "524k"])
|
| 108 |
+
ax.set_xlim(100, 560); ax.set_ylim(0, 140); ax.set_yticks([0, 25, 50, 75, 100])
|
| 109 |
+
ax.set_xlabel("Total context (shared by 4 slots, q8_0 K/V)")
|
| 110 |
+
ax.set_ylabel("Wired memory (GB)")
|
| 111 |
+
title(fig, "Inkling 2 Mini needs a lot of memory for long context")
|
| 112 |
+
style(ax, grid_axis="y"); ax.spines["left"].set_visible(True)
|
| 113 |
+
note(fig, "About 146 KB per token on top of ~24 GB for weights, drafter and buffers.")
|
| 114 |
+
fig.tight_layout(rect=(0, 0.05, 1, 0.91))
|
| 115 |
+
fig.savefig(OUT / "inkling_memory.png", dpi=200)
|
| 116 |
+
print("ok", sorted(p.name for p in OUT.iterdir()))
|
results/inkling_kv_memory.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ctx_size_total,parallel_slots,kv_cache_type,wired_memory_gb_measured,note
|
| 2 |
+
131072,4,q8_0,43.1,model+drafter+buffers ~24 GB; KV ~19 GB
|
| 3 |
+
262144,4,q8_0,62.3,KV ~38 GB
|
| 4 |
+
524288,4,q8_0,100.7,KV ~77 GB
|
results/parallel_batch_inkling.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model,task,concurrent_agents,wall_seconds,turns,hidden_tests_passed,hidden_tests_total,self_report_matches_reality
|
| 2 |
+
Inkling-2-Mini,T1_feature,4,1434,11,6,6,True
|
| 3 |
+
Inkling-2-Mini,T2_refactor,4,1115,14,5,5,True
|
| 4 |
+
Inkling-2-Mini,T3_bugfix,4,1397,16,18,18,True
|
| 5 |
+
Inkling-2-Mini,T4_endpoint,4,1539,22,3,3,True
|
results/prefill_under_load.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model,phase,concurrent_agents,requests_sampled,avg_prompt_tokens_processed,avg_prefill_seconds,avg_prefill_tokens_per_second
|
| 2 |
+
Inkling-2-Mini,sequential,1,31,9103,24.2,380
|
| 3 |
+
Inkling-2-Mini,parallel_first_10min,4,10,9629,79.8,124
|
| 4 |
+
Inkling-2-Mini,parallel_next_10min,4,13,2065,17.7,105
|
results/sequential_runs.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model,task,rep,wall_seconds,turns,output_tokens,hidden_tests_passed,hidden_tests_total,full_suite_green,self_report_matches_reality,diff_lines,blind_quality_score_1to5
|
| 2 |
+
Inkling-2-Mini,T1_feature,1,290,14,10194,6,6,True,True,115,4.5
|
| 3 |
+
Inkling-2-Mini,T1_feature,2,256,16,8170,6,6,True,True,97,3.5
|
| 4 |
+
Inkling-2-Mini,T2_refactor,1,184,12,5169,5,5,True,True,52,4.5
|
| 5 |
+
Inkling-2-Mini,T2_refactor,2,175,11,5111,5,5,True,True,60,4
|
| 6 |
+
Inkling-2-Mini,T3_bugfix,1,248,11,7677,18,18,True,True,77,3.5
|
| 7 |
+
Inkling-2-Mini,T3_bugfix,2,260,14,8894,18,18,True,True,68,4.5
|
| 8 |
+
Inkling-2-Mini,T4_endpoint,1,317,18,8470,3,3,True,True,153,4.5
|
| 9 |
+
Inkling-2-Mini,T4_endpoint,2,201,13,4714,3,3,True,True,81,4
|
| 10 |
+
Qwen3.8-27B,T1_feature,1,217,13,7791,6,6,True,True,84,5
|
| 11 |
+
Qwen3.8-27B,T1_feature,2,209,13,7676,6,6,True,True,131,4.5
|
| 12 |
+
Qwen3.8-27B,T2_refactor,1,153,8,4698,5,5,True,True,60,5
|
| 13 |
+
Qwen3.8-27B,T2_refactor,2,130,9,3734,5,5,True,True,69,5
|
| 14 |
+
Qwen3.8-27B,T3_bugfix,1,637,18,20772,18,18,True,True,77,4.5
|
| 15 |
+
Qwen3.8-27B,T3_bugfix,2,379,15,12483,18,18,True,True,88,5
|
| 16 |
+
Qwen3.8-27B,T4_endpoint,1,197,10,5806,3,3,True,True,88,4
|
| 17 |
+
Qwen3.8-27B,T4_endpoint,2,184,10,5196,3,3,True,True,93,4
|
| 18 |
+
Qwen3.8-Flash-Next,T1_feature,1,110,13,4638,6,6,True,True,102,4
|
| 19 |
+
Qwen3.8-Flash-Next,T1_feature,2,76,9,3509,6,6,True,True,92,5
|
| 20 |
+
Qwen3.8-Flash-Next,T2_refactor,1,67,11,2997,5,5,True,True,67,5
|
| 21 |
+
Qwen3.8-Flash-Next,T2_refactor,2,77,9,3175,5,5,True,True,61,5
|
| 22 |
+
Qwen3.8-Flash-Next,T3_bugfix,1,123,13,6199,18,18,True,True,56,3.5
|
| 23 |
+
Qwen3.8-Flash-Next,T3_bugfix,2,114,10,5595,18,18,True,True,75,3.5
|
| 24 |
+
Qwen3.8-Flash-Next,T4_endpoint,1,184,16,8980,3,3,True,True,168,4.5
|
| 25 |
+
Qwen3.8-Flash-Next,T4_endpoint,2,227,20,11660,3,3,True,True,150,4
|