Repository navigation
edge0-145b Q3_K · RTX 3090 Ti 24 GB · 128 GiB RAM · Windows — one 40-minute agentic session, run from OpenCode #311
mehzhure
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I did a thing, then made a thing do a thing. Allow me to elaborate briefly.
I set up the Edge0 Chat software in Windows, set the server to port 8300, connected it in OpenCode as the assistant, then made it check a complex repo to ensure there would be no port conflicts, then document it all in a better way. Then, I decided, since I was impressed with the performance, I would use the logs to capture a few details in case anyone else might be interested...and made Edge0 via OpenCode write up it's own explanation to share. 😁 Edge0's report is below.
What this is: one long real-world session on a release build — 40 min 52 s of turn activity, 52 assistant turns, 57 engine requests, tool-calling agentic workload at 128K context, driven from OpenCode. Numbers come from the engine's own counters plus OpenCode's message store, and the two agree to the token.
Environment
edge0-145b-q3k), Q3_K, weights 40.81 GiB — 145B params / 6.6 B active, 48 layers, 512 experts, 10 routed + 1 shared, latent dim 1792/v1/status→engine), Edge0 Chat 0.3.0,edge0-chat-0.3.0-windows-x64.zip279,838,161 bytesedge0-infer info, which I did not runArm: default expert arena. No
--mmap-experts, no--resident-experts, no--resident-budget-gib. Served at--max-context 131072.Command
Port 8300, not 8080. Chat supplied
--strata-dir/--strata-python/--host/--context/--strata-arg.Flags
model.jsondeclares:The recorded child command line (
%LOCALAPPDATA%\Strata\procs\36928.json,written_at2026-11-19 00:12:07) carries everything down to--kv int8and stops there.--kv-resident 32768,--vram-reserve-mib 700,--pool-workers 24,--pcie-frac 0.1,--pcie-mode dmaare inmodel.jsonand not in the record. That is "not in the record", not "not set" — the proc record may be a subset, and I don't know which source is authoritative.Runtime, from
/v1/status:Session numbers
Engine counters, the 57-request window (00:12:03 → 00:58:31), verbatim:
The task was one job: audit a port-8300 collision, find which file owns the port, document it, act on the plan. The output was real work product on disk — a port registry, a stop-everything script, a start-everything script, a test tree.
Prefill, from what the workload actually did
prefill_tokens_per_second, 57 req/v1/statuslast_timings, coldcache_n: 0, 61,277.7 ms → 97,486 ÷ 61.2777 s. The only figure the engine measured itselffirstToken − createdalso contains cache restoreMemory
Captured ~01:32 via
WorkingSet64/PrivateMemorySize64/VirtualMemorySize64(raw bytes). GiB = MiB ÷ 1024.strata.exepid 36928edge0-infer.exepid 25200Edge0 Chat.exepid 46440All of the arena is in
strata.exe; the wrapper is negligible. Commit 68.77 GiB against working set 44.74 GiB is 24.03 GiB committed above resident — committed private memory the OS cannot take back without writing it out.With the engine loaded and serving, ~43–47 GiB stayed free: WMI free physical 45.49 GiB at 01:32;
/v1/statusmachine.ramread 84.4 GiB used at 01:19:52 and 80.8 GiB at 01:41:07. The arena arm ran here without memory pressure — which is a property of 128 GiB of RAM, not of a better configuration.GPU
Held at 23,452 MiB of 24,564 MiB = 95.4 %,
vram.elastic: false.clocks.memoryis not a valid query field on driver 617.42.Running it from OpenCode
This is the part I'd most like to have read before starting, so it's the longest section.
The configuration block
~/.config/opencode/opencode.jsonc— and nothing else. No adapter, no proxy, no re-tokenization.limit.context: 131072aligned with--max-context 131072, and/v1/chat/completionswith OpenAI-compatible tool calling was all the dialect needed.What the integration exposed
finish: tool-calls, 4stop, none in error. Zero rejections across 57 requests.agent-switchedevent mid-session did not break cache reuse.structured_output.method: prompt_and_validate,constrained_decoding: false— tool schemas validated by prompt, not grammar. Tonight's calls succeeded, which tells me nothing about how often validation retried.reasoning: truedeclared,tokens.reasoningis 0 on all 52 rows. Either no separate reasoning channel here, or the flag isn't what I assume. Not resolved.Edge0 Chat's settings file, verbatim, because one field reads oddly:
device: "cpu"in the GUI while the engine held 23,452 MiB of the GPU. I don't know what that field means here; it is not a claim about where the work ran.Engine counters vs OpenCode's store
Engine instance 25200 against the OpenCode session-level totals:
Exact to the token. Session-level, the two agree completely.
Per-message rows under-report their own session
The 52 assistant rows sum to less than the session row they belong to. One compaction row accounts for most of it; a residual remains.
The residual isn't noise, and two independent measurements agree on it. Engine
decode_secondsfor the window is 1,613.9162 s; the sum of the 52 per-message generation spans is 1,470.11 s. That is 143.81 s of engine decode time with no assistant span to hold it. The output not in the assistant rows is 75,151 − 68,977 = 6,174 tokens. 6,174 ÷ 143.81 = 42.93 tok/s, inside the observed per-turn range of 40.46–57.16.So: 57 requests = 52 assistant turns + 1 smoke one-shot + 1 compaction call + 3 unaccounted.
Those are ordinary turns, not empty requests. The store also holds 4
idle, 2syntheticand 1agent-switchedrows besides the 52 assistant / 4 user / 1 compaction rows; I did not verify whether any of those correspond to engine requests, and I won't name them as the explanation. Not resolved. It moves no rate in this report — every headline figure is computed from the engine's own counters, and the session-level reconciliation above is exact. But an audit that says "OpenCode's token counts match the engine" is true at session level and false at per-request level.A trap for anyone re-deriving this. Per-request cache read is exposed in the usage payload. My first extraction script read
tokens.cacheRead; the field istokens.cache.read. The table came back all zeros and I concluded the field wasn't exposed. It is: 51 of 52 rows carry it, and the single 0 is the session's first request, which is correct — an empty cache has nothing to reuse.The compaction call carries no timing
At 111,147 tokens — 84.8 % of the declared window — OpenCode fired its own automatic summarization: a
compactionrow at 00:47:23.364,reason: "auto",metadata.keepIDpointing at the assistant message created at 00:26:44.The
compactionrow carries tokens and acreatedtimestamp but nofirstToken,streamedorcompleted. Its 3,154 generated tokens cannot fit the 14.4 s between the previous turn's completion and the next turn's first token — the same class of gap as the 3 unaccounted requests. An interval spanning a compaction boundary is not a usable latency measurement.And compaction is expensive in cache terms. The compaction call reused 99.1 % of its own prompt and wrote 3,154 tokens of summary. The turn after it matched only 24,500 tokens of cache: 86,467 tokens of prefix cache discarded in one event, 2.46 % of everything the window reused. The cache rebuilt — the last turn, 00:58:03, reused 80,708 of an 80,819-token prompt, 99.86 % on that turn.
So a 128K declaration raised the compaction threshold. It did not remove compaction, and it did not prevent a single event that threw away 86K of prefix.
time.createdis not TTFTfirst_token_seconds_mean, 57 reqtime.firstToken − time.created, 52 turns: medianThe engine mean implies a total first-token budget of 57 × 2.666347 = 151.98 s for the window. The 52 client-side intervals sum to 270.97 s — 78 % more than the engine says the whole window cost. Two turns carry 140.55 s of that:
Together, 92.5 % of the engine's entire 57-request TTFT budget, needing 0.13 s and 3.17 s of prefill. If those were real arrival-to-first-token times, the other 55 requests averaged 0.21 s each — less than this session's own 20.4 s opening cold turn. Remove them and the other 50 sum to 130.42 s, mean 2.61 s, 2 % off the engine's 2.666 s, leaving 21.56 s of budget for the compaction call, the smoke one-shot and the 3 unaccounted requests. That fits; the full-set figure does not.
Queueing does not explain the two turns: no turn started before the previous one completed, and
/v1/statusreportedserving: 1, requested: 1throughout. Cause not identified. This report uses the engine's 2.666 s.The integration consequence stands on its own: a UI that shows time-to-first-token from
time.createddisplayed 71.8 s for a turn whose prefill could have cost at most 3.2 s.Provider switching is expensive
The writing session ran on a different provider until 01:17:22, then switched to
edge0/edge0_145b. The engine prefilled 97,486 tokens of foreign-generated context on an empty cache in 61,277.7 ms — that is where the 1590.9 tok/s figure comes from, and it is the only prefill number the engine measured itself. Moving a long conversation onto a fresh engine cache costs the whole context.Draft acceptance
One retained
/v1/statussample:draft_n 3625 · draft_n_accepted 2481= 68.4 % (2,481 ÷ 3,625). The turns were tool-call-heavy and decoded ~47 tok/s at that acceptance. Whether acceptance and decode rate have a known relationship is worth knowing, because this pair did not obviously sit inside one. Caveat: the sample isactivity.requests: 58, i.e. outside the 57-request window.The same snapshot also carries
predicted_per_second 51.3— which ispredicted_n ÷ predicted_ms= 4,498 ÷ 87,615.7 ms, the engine's estimate of decode time. Not a measurement, and not used as a decode rate anywhere above.A decode measure that was wrong, and why
Wall-clock message spans give 42.44 tok/s mean over the 24 largest turns. Wrong for an obvious reason: an assistant message's span includes tool execution, which is not decoding. Five of 52 turns have more than 5 s of that — 8.61, 8.92, 9.24, 9.55 and 11.84 s. Only the
firstToken → streamedspan measures decode.Not measured, not resolved
model.jsondeclares"log": "./serve.log"; noserve.logexists anywhere underF:\Edge0,%APPDATA%\dev.edge0.example.desktop,%LOCALAPPDATA%\Strata, or the user profile. No--resident-budget-gibwas set, so there is no clamped-budget line. Not recoverable without restarting the engine.C:\pagefile.sysPeakUsage46,728 MB against 7.32 d uptime. No claim that Edge0 caused it.Get-Counterfailed withCounterApiErrorand the WMI commit fields came back empty at report time. Do not quote it.strata.execommit alone (68.77 GiB) is re-read and current.memory.usedoscillating 23,198 ↔ 23,452 MiB (254 MiB) andvram.elastic: falseagainst a declared 700 MiB reserve. No measurement settles it.A question about the pack, not a comparison.
model-bench.jsonships in the pack and defines a different arm from the one I ran:--resident-expertsand--conversation-cache-mib 0. If a bench row is measured against that arm, it has no conversation cache — which would put a cache-reused agentic session structurally outside its decode columns. I have no evidence about what any published row was measured against. It's the first thing I'd ask.Disclosure. Release 0.1.55 binaries, plain arena at 128K — so this is one configuration, and it isn't comparable to another machine's row. And this report was written on the engine it reports on: the session that wrote it switched onto
edge0/edge0_145bat 01:17:22, while every headline figure comes from the window that ended at 00:58:31, before the switch.Corrections I made while writing, all found by re-reading the store. (a) An earlier draft said per-request cache read was not exposed — it is; the bug was
tokens.cacheReadvstokens.cache.read. (b) An earlier draft said 4 requests carried no tokens at all — they carry the residual. (c) An earlier draft said the session ran 41 minutes without a compaction event — it did not.Next
python tools\strata_bench.py --url http://127.0.0.1:8300 --runs 3 --out <dir>against the current arena arm.edge0-infer infoforengine.version/engine.source_commit, and a stated CUDA version — both missing above.Appendix — all 52 assistant turns plus the compaction call
Generated from OpenCode's SQLite store rather than transcribed. Column definitions:
Starttime.created, localTTFT stime.created → time.firstToken. This is not the engine's TTFT — seetime.createdis not TTFT aboveGen span stime.firstToken → time.streamedtok/s (gen)Tool-wait sContent*marks a row whereTTFTor tool-wait exceeds 5 s — 11 rows. Of the 7 rows whoseTTFTexceeds 5 s, five have enough fresh tokens to explain the interval; two — 68.8 s on 213 fresh, and 71.8 s on 5,045 — do not, and their cause is not identified.Checked against the store: all 52 rows re-derive, every numeric column,
Fresh in + Cache read = Prompt totalon every row, column sums 114,381 · 68,977 · 3,374,407 · 3,488,788. Caveat for anyone re-deriving by hand:tok/s (gen)is computed from the millisecond spans whileGen span sis rounded to 0.1 s, so out ÷ the displayed span will not re-derive the rate in the second decimal on 30 of 52 rows.The compaction row (
—) carries tokens and acreatedtimestamp but nofirstToken,streamedorcompleted— hence the—in its timing columns. Row 34 is the turn it fired after; row 35 is the first turn after it.All reactions