Repository navigation
Releases
Gufo-win v0.8.0
Qwen4-35B-A3B now runs on the same qwen4exp executor as Qwen3.8-Flash-Next: 35B total, 3B active, 40 trunk layers (30 GDN linear, 10 QSA full attention), 256 experts with 8 active, and a 262,144-token verified context, from a 35.2 GB UD-Q4_K_M download. On a Strix Halo it loads in 13.6 s, prefills at 2,743 tok/s and decodes at 61.6 tok/s (71.9 with MTP) at depth 0. Flash-Next also gets an optional recurrent-depth adapter — 19/20 on the 131K capability pilot at two passes against 18/20 stock — plus --spec-mode target, a 2-bit draft-head proxy, and a warm follow-up turn at 131-157 ms where v0.7.0 took 291-320 ms.
Qwen4-35B-A3B, first retained numbers (same machine, one process at a time, greedy; Unsloth UD-Q4_K_M 85a5118 two shards + Q8_0 MTP, gufo bench -p 2048 -n 128 -r 2):
| Depth (tokens) | AR pp | AR tg | MTP tg |
|---|---|---|---|
| 0 | 2,743 ± 4 | 61.6 ± 0.7 | 71.9 ± 0.6 |
| 8,192 | 1,982 ± 1 | 58.6 ± 0.0 | — |
| 32,768 | 1,809 ± 1 | 54.8 ± 0.2 | — |
The same binary before the Qwen4 fast paths measured 1,453 / 53.2 at depth 0, 1,650 / 57.4 at 8K and 1,496 / 52.9 at 32K (pp / tg). Upstream's UD-Q4_K_XL numbers on this GPU are 3,306 / 58.4, 3,166 / 56.4 and 3,010 / 56.2: decode is 5-10% ahead at depth 0, prefill still behind at depth. MTP at depth is not listed because the repeated bench filler is accepted almost every draft. These are first retained numbers, not a release gate; quality is not qualified.
Qwen3.8-Flash-Next in this release (same machine, greedy, UD-Q4_K_XL + shared-Q8_0 MTP). Warm follow-up, 26 new tokens on a 2,064-token prefix:
| Turn | v0.7.0 | v0.8.0 |
|---|---|---|
| second | 291-320 ms | 131-157 ms |
| third | 350-385 ms | 213-235 ms |
Speculation mode, -p 256 -n 128, three repetitions; all three emit the same output_sha256:
| Mode | Drafted / accepted | tg128 |
|---|---|---|
--speculative off |
0 / 0 | 39.21 ± 0.04 |
--speculative mtp |
113 / 82 | 63.74 ± 0.43 |
--spec-mode target |
0 / 0 | 38.65 ± 0.19 |
target keeps the MTP head resident without drafting and trails AR by ~1.5% because the MTP rows still receive the KV-only catch-up. Selected v0.8.0 A/Bs: chained GDN rows +2.8% AR and +2% at 32K, bit-identical; sampled MTP block verification 34.97 -> 37.98 and 36.80 -> 38.20 tok/s with 66/98 -> 75/103 accepted; MTP cost-table rescale 53.5 -> 54.5 at depth 0 and 43.4 -> 44.5 at 16K; lm_head Q4_1 decode copy 48.8 -> 53.6 MTP; attention decode splits 8 -> 16 37.2 -> 37.9 AR at depth 0; routed gated GEMV +10.3% at 16K; grouped GEMM raster + 16,384-token prefill chunks pp32768 1,666 -> 1,711/1,696 and HTTP 26.5K 1,551 -> 1,597/1,605. The last retained 8K-256K sweep is the v0.7.0 one (1,705.7 pp / 34.33 AR / 52.16 MTP at 8K through 1,510.6 / 27.54 / 90.37 at 256K); it has not been re-run on this binary.
What changed
Features
- Qwen4-35B-A3B: same
qwen4expexecutor with aqwen4_35b_a3bprofile; UD-Q4_K_M two shards, optional Q8_0 MTP andmmproj-BF16(auto-loaded beside the model). Open the first shard. Load, greedy generation and an OpenAI chat request were verified on Windows/gfx1151 on 2026-12-04. The load path re-encodes the Q5_K token embedding and eight Q6_K routed-down expert tensors to Q8_0 (+~0.7 GiB, small rounding). Fast paths: WMMA causal attention at 4 queries x 8 heads, fused attention/SSM+conv/HC down/HC mix prefill GEMMs, a one-launch HC decode mixer, Q5_K routed down at 64-token tiles, and a Q5_K down view at 4 rows/wave. Seedocs/models/qwen4-35b-a3b/. - Qwen4 tokenizer:
tokenizer.ggml.pre = qwen4maps to the Qwen35 pre-tokenizer plusignore_merges— an exact whole-word token wins before BPE. - Flash-Next loop adapter:
--loop-adapter <ckpt_final.safetensors>and--loop-passes N(0 is the verified 2-pass default; the merged adapter is trained at T=2). Works inprompt,serve llmandbench; per-pass QSA K/V, indexer and GDN state; snapshots carry the per-pass state; MTP works with the adapter. The 20-case 131K pilot (thinking on, xhigh, greedy, MTP Q8_0) scored stock 18/20 (90.0%, 52.9 tok/s), loop2 19/20 (95.0%, 39.2 tok/s) and loop3 18/20 (90.0%, 30.7 tok/s). T=2 gained AIME-02 and SuperGPQA 17, lost GPQA 1 to a repetition loop that hit the 16K cap after 413 s, and adds ~3.4 GiB at 131K. Seedocs/LOOP-ADAPTER.mdanddocs/models/qwen3.8-flash-next/loop-eval/. --spec-mode target(serve/prompt/bench; config keyspecMode): keeps the MTP head loaded and its state resident but drafts nothing; requires--speculative mtp/--mtp-model. Zero drafts, identical output.--mtp-head-proxy on|off(serve; default on): screens the draft head through a 2-bit/Q2_K proxy and rescoring the top 64 rows exactly. ~3x smaller head read (270 MB/position -> ~109 MB), +4.9% decode on five fixed greedy prompts with identical acceptance, head pass 264 us cold -> 87-118 us, 0/400 proxy-exact disagreements. The canonicalRequantQ8_0ToQ2_Kleast-squares refit added +6% median / +14% weakest turn, and the ScreenCap/CapLogits seal keeps unscreened proxy rows out of the argmax and candidate list at no measurable cost.--mtp-relaxed P(serve; default 0 = exact): opt-in LOSSY sampled verification that keeps a draft the exact test rejects when the target probability is at least P; greedy, penalty andlogit_biasrequests stay exact. P=0.1 measured within noise, so there is no claimed gain.- Server images: up to 64 images, 80 MiB decoded bytes and a 60 s deadline per request (was 16 / 20 MiB / 15 s); per image still 20 MiB encoded and 32 MP decoded, and only user messages may carry
image_url. A long screenshot session can make later text-only requests fail until the images leave context;--max-request-bytes(8 MiB default) is the practical cap. - Tools:
tools/serving/serve-soak.py(sustained streaming soak, random traffic, mid-stream cancels, near-limit and over-long prompts, optional images, memory sampling, exits 1 on an unexpected outcome),tools/serving/ttft-probe/probe-turn.ps1andswitch-probe.ps1,tools/gufo/serving_bench.pywithfinish_reasonplus upstream benchmark ports (#1446 #1464 #1485 #1494), andfetch-qwen4-35b.ps1for resumable shard downloads. - serve logs the Flash-Next weight-load phase.
Performance
- Qwen4 fast paths: pp2048 1,453 -> 2,743 at depth 0, 1,650 -> 1,982 at 8K, 1,496 -> 1,809 at 32K; tg128 53.2 -> 61.6, 57.4 -> 58.6, 52.9 -> 54.8.
- Warm-turn TTFT: a 26-token follow-up on a 2,064-token prefix falls from 291-320 to 131-157 ms, and the third turn from 350-385 to 213-235 ms. The stable boundary no longer splits a short delta into two full prefill passes, freed pinned snapshot blocks are parked and reused (34-40 ms each), and split-phase capture, a release-gated drain, two-block prewarm, a 1 ms timer and
TCP_NODELAYcut post-chunk1 stalls from ~50 to ~14 ms. - Batched snapshot restore copies on one stream: 231 MB payload fresh 10.35 -> 4.90/4.81/5.74 ms, a used session 17.13 -> 3.62/7.37/6.54 ms, another prefix 22.62 -> 7.75/4.93/8.19 ms.
- Chained GDN update rows: +2.8% AR, +1.9-2.1% at 32K, MTP neutral, output bit-identical.
- Sampled MTP block verification (
VerifyMtpBlock): exact target distribution (200k-decode test checks the 3-token joint within 0.004), 34.97 -> 37.98 and 36.80 -> 38.20 tok/s, accepted 66/98 -> 75/103; greedy unchanged. Runs only for sampled requests with--mtp-relaxed 0. - MTP cost table rescaled to 0.80 then 0.72: 53.5 -> 54.5 tok/s at depth 0 and 43.4 -> 44.5 at 16K. The raw fresh table (~0.74) was rejected: it over-drafts and drops acceptance from 66% to 63%.
- Q4_1 decode copies for
lm_headare now the default (MTP 48.8 -> 53.6, AR 36.1 -> 37.5 tok/s);attn_outandhcalso default to Q4_1. - Attention decode splits 8 -> 16: AR 37.2 -> 37.9 at depth 0 and 34.0 -> 34.9 at 16K; MTP flat; 32 splits measured worse.
- Routed gated decode GEMV at 4 rows per block: +0.4% at depth 0, +10.3% at 16K; 8 rows gives the gain back.
- Grouped GEMM raster + 16,384-token prefill chunks (upstream #933): pp32768 1,666 -> 1,711/1,696, pp8192 1,758/1,734 -> 1,749/1,754, HTTP 26.5K 1,551 -> 1,597/1,605 and 7.3K 1,598 -> 1,626/1,624; peak GTT 68.5 -> 72.6 GiB. A lone long prefill now yields every 16K rows, so another request waits at most ~10 s.
- Batched decode is bit-identical to a lone session up to 8 rows: width-dependent routes defer to the one-row form, batched MTP heads use each request's head shape, verification runs in waves, and draft chains keep prompt lookup, the stop-token cut and the survival floor.
session_testC2/C4/C6/C8 match logits, RNG, acceptance and snapshot bytes exactly. - Q2_K decode copies are opt-in (
GUFO_DECODE_COPY=q2; default classesssm_in,ssm_out,attn_qkv): +12.1%/+8.8% AR, but they hurt MTP (~45.4 vs 46.8 tok/s), so the default stays balanced for MTP serving.
Fixes
- ASR answers 400
invalid_audio_inputfor undecodable audio instead of failing obscurely. - Streamed OpenAI tool calls: code fences and code spans split across streamed pieces are tracked; a closing fence disproved by trailing text reopens the span, and provisional spans are held until the final piece so a call marker inside markup is not emitted early.
- Scheduler: deferred decode tokens advance before a multi-token step and stay near resume boundaries; a queued request is admitted while a capture is parked; a decode batch completes when bookkeeping throws (upstream #1465).
- Snapshots: the split-snapshot position is recorded before state is released, GDN replay is drained before capture, the drain is skipped for sessions without chained rows, and a mid-turn race that restored a stale recurrent state is closed.
- Loop adapter: per-pass recurrent/KV state, batching/
t_max/coda gates, MTP enabled with the adapter, and snapshot per-pass state. - Hosted test suite repaired; new c...
Gufo-win v0.7.0
A warm turn at 124K tokens now restores the full 3.2 GB boundary from disk in 0.77 GiB of RSS and 3.25 s, where v0.6.0 restores a 101K-token grid, re-prefills the gap, and costs 3.54 GiB and 14.10 s. This needs the staging limit to hold the boundary (3.5 GiB at 124K, 8 GiB at 262K); with the automatic 768 MiB limit both releases keep the grid and land at 13.7 s. What the code changes is that a boundary that fits staging is kept on disk and no grid checkpoint is captured, so the grid can no longer shadow the cheaper restore. The snapshot budget also stops being a fixed pool — it may take the room below 75% of total RAM, with everything the process already holds counted against it — tens of GiB on a 128 GB Strix Halo box, but on a 32 GB box with the 27B weights loaded the remaining room can be smaller than the old 6 GiB pool. Most server flags can change without a restart, and a replayed tool call keeps the numbers the model wrote.
Measured vs v0.6.0 (same machine, one process at a time, greedy; v0.6.0 built from tag fef0d347, this release from 18ef48ea; Unsloth UD-Q4_K_XL 38bb39ee + shared-Q8_0 MTP, gufo bench, two timed repetitions per cell):
| Context (tok/s) | v0.6.0 pp | v0.7.0 pp | v0.6.0 AR | v0.7.0 AR | v0.6.0 MTP | v0.7.0 MTP |
|---|---|---|---|---|---|---|
| 8,192 | 1709.6 | 1705.7 | 34.27 | 34.33 | 52.62 | 52.16 |
| 32,768 | 1651.9 | 1654.2 | 32.40 | 32.48 | 100.08 | 99.85 |
| 131,072 | 1581.4 | 1580.2 | 29.56 | 29.55 | 94.81 | 94.91 |
| 262,144 | 1513.8 | 1510.6 | 27.55 | 27.54 | 90.30 | 90.37 |
Every cell is within ±0.9% (pp ±0.2%), and the greedy MTP output is byte-identical between the two binaries at all four depths (same SHA-256, same 81/122 accepted drafts at 8K and 112/112 deeper). The 8K AR turn stops at 28 of 128 tokens on both.
| Warm turn, 120,859-token prompt, 3 GiB tier | Host RSS | Turn latency |
|---|---|---|
| v0.6.0, 3.5 GiB staging, second conversation | 3.54 GiB | 14.10 s |
| v0.7.0, 3.5 GiB staging, second conversation | 0.77 GiB | 3.25 s |
| v0.6.0, 3.5 GiB staging, cold start | 0.70 GiB | 3.24 s |
| v0.7.0, 3.5 GiB staging, cold start | 0.70 GiB | 3.33 s |
| v0.6.0 and v0.7.0, 768 MiB staging (automatic), second conversation | 3.54 GiB | 13.7 s |
All rows hard-set the 3 GiB tier, and both binaries write the same 3.44 GB payload to the disk store. In-process, v0.6.0's snapshot lookup hits its 101,227-token grid first and never consults the disk copy, so it prefills 19,632 tokens; v0.7.0 captures no grid and restores the boundary (2.45 s of the 3.25 s is the read). After a restart the grid is gone from RAM and both binaries restore from disk at the same speed. With automatic staging — 768 MiB on this host, capped at 1 GiB — the boundary is refused and both releases keep the 2.9 GB grid. The budget change is not in that table: a 262K-token boundary is estimated at about 7 GB (120K tokens measures 3.2 GB), which never fit the old 6 GiB pool, while the new ceiling leaves room for it on a 128 GB host — not re-measured, so treat it as headroom, not a number.
Draft head: proposals read a Q4_K copy of the head prefix instead of the shared Q8_0 block (upstream #1209). The A/B above does not reproduce the port's claimed +1.5% tg128 / +1.3% depth: MTP decode is 52.16 vs 52.62 at 8K and 90.37 vs 90.30 at 256K, with byte-identical drafts, so count it as neutral here. An earlier attempt measured no gain (tg128 49.9 vs 49.6, tg128@d16384 -3%) and was reverted; the 2026-11-14 fall-through fix came after the landing.
What changed
Features
- serve: runtime configuration —
GET /admin/configlists the flags a running server can change,POST /admin/configapplies a JSON object and answers per flag (applied/rejectedwith a reason; a rejected flag keeps its value and the rest still apply). Live:served-model-name,max-tokens, the sampling and reasoning defaults, the scheduler limits (the buffered-output ceiling now updates in place),max-connections,max-request-bytes,api-key(write-only; reads say whether one is set),cache-ram-gband the disk-cache budgets. Model artifacts,--context,--sessions, speculative decoding,--prefill-batch,--host,--portand the--cache-diskdirectory stay load-time and are rejected, so the client restarts. - Snapshot budget is a whole-process ceiling: automatic default is
available - 25% of total RAM(the engine's footprint stays inside 75%), sampled once so the pool cannot evict itself as it fills;--cache-ram-gb/GUFO_CACHE_RAM_GBstill hard-set it (bounded by available memory), and0restores the automatic value. The 6 GiB default and 7 GiB cap are gone, and the cache re-reads the budget at each snapshot admission, so a loweredcache-ram-gbtrims retained checkpoints as traffic continues instead of waiting for a restart. The automatic disk-staging limit is a quarter of the retained budget instead of an eighth of available RAM. - Disk-staged boundary skips the grid checkpoint: if the boundary fits staging with 1 MiB to spare, no intermediate checkpoint is captured — restoring the full boundary from disk beats restoring a 90% grid and prefilling the gap, and because a snapshot hit short-circuits the disk lookup, dropping the grid is also what makes the full boundary reachable while the process is live.
gufo eval --max-completion-tokens N: the completion budget was pinned at 16000, so accuracy could only be read at one budget; the report already carriesexecution.transport_msandusage.completion_tokens, so accuracy at matched wall-clock comes out of the existing JSON.- Qwen3.8-27B verify GEMM: IQ4_XS shapes swept on the TurboFCFusion merge GGUF — +13-48% over the generic dispatch for attn_gate, ffn_down, ssm_alpha/out, packed ffn_gate+up, attn_k and attn_q at 2-8 rows, +6-53% for Q5_K attn_v and ssm_qkv, each bit-exact against the generic path. That GGUF still is not servable here (chat template SHA not pinned).
- Docs: command-line flag reference for every subcommand in
README.md, a release procedure with the single-zip asset convention, and a NCM review recording which of its ideas transfer (the--max-completion-tokenssweep) and which do not.
Performance
- AVX-512 sampling, IQ4_NL/bf16 dequant and n-gram hashing (upstream #1127), 1.17-25x on the isolated CPU paths and neutral end to end — CPU margin, not tok/s. Windows detects AVX-512 with CPUID + XCR0 because clang-cl does not link
__cpu_model. - Snapshot admission charges the pinned budget per live allocation, so host RAM no longer grows with every snapshot size; a refused admission keeps the restored frontier instead of dropping back to the older prefix.
- Decode shared-expert overlap is calibrated, not assumed: both layouts are timed inside
Create, the faster one wins (serial here by ~40% per layer pass), andGUFO_TRACE=1records both so a host or runtime flip is visible later. Steady-state decode is unchanged by construction. - Tried and rolled back on 2026-11-09/10 rather than kept: a fixed 32 MiB hipBLAS workspace (llama.cpp
#31838; no cell outside noise, decode -1%, 32 MiB per handle), longest-first WMMA prompt dispatch (+0.1-0.3%, inside r=3 spread), and shrinking the pool on memory pressure (the pinned budget already prices GPU pressure). Records indocs/LINUX-PERF-PORT.md.
Fixes
- Tool-call numbers replay as the model wrote them (upstream #1146):
1.0no longer becomes1and1e5no longer becomes100000in the rendered prompt, so a replayed call still matches its checkpoint. - Prompt state is charged once (upstream #1164): the claim and the per-token prompt budget both billed the same K/V rows, which could refuse prompts that fit.
- Compacted MTP inject rows stay out of the norm buffer (upstream #1230):
tail.injectno longer aliasesmtp_h, which the FFN combine writes while the inject partials are still read. - The Qwen K/V cache no longer clamps the context to 8,192 tokens, and the default context is 32,768 instead of 4,096, so a caller that omits
--contextno longer silently runs the 27B path at a fraction of its window. --max-pending 0means "reject when every session is busy" (upstream #1206/#1207): admission now counts the pool's free sessions instead of a scheduler-side table that could disagree with the leases, and a full queue answers 429 instead of being deferred.- Windows debug-suffixed vcpkg imports documented (
libcurl-d.dllshim), and the stalewide_verification_testtarget that never compiled is gone;session_testcovers wide verification against the real model.
The automatic budget changes RAM use in both directions: on a 128 GB host it is now tens of GiB, on a 16-32 GB host the room below 75% can be smaller than v0.6.0's 6 GiB pool because the weights already count against it — pin --cache-ram-gb there. Tool-call rescoring changes prompts that carry floats or exponents. MTP proposals read a Q4_K head prefix; greedy replies are byte-identical.
Known limitation, documented rather than fixed: the batched and single-row decode pipelines are not bit-identical on this host (they agree to ~1e-8 through layers 0-1, cross a quantization rounding boundary at layer 2-3, and amplify like any 48-layer quantized network). Same-state and same-pipeline checks stay exact; the two retained GPU suites' cross-pipeline equality assertions fail deterministically and are recorded as unreachable without making the batch path call the serial kernels per row.
Unpack, run start.cmd, point it at the model downloads in README.txt. Requires a Strix Halo machine and a current AMD driver.
Gufo-win v0.6.0
Prefill is 1-4% faster at every context depth (register-resident routed prefill experts, +3.8% on pp16384 in a quiet-GPU A/B) and MTP decode gains another 2-3%. Cached follow-up turns now answer in 9-12 ms at 32K-100K context (down from 126-365 ms; ~9x faster than Bubo at 100K). Long prefills no longer block other sessions: prompt passes are split by layers, so decoding sessions keep running while a prompt fills. This release is also where the fork takes its own name: Gufo-win.
Measured vs v0.5.0 (same machine, direct gufo bench, greedy, one process at a time, UD-Q4_K_XL + shared-Q8_0 MTP; baseline is the v0.4.0/v0.5.0 model path - v0.5.0 changed serving only - re-measured November 8, 2026 on the Dynamic v3.1 repack):
| Context | Prefill | AR decode | MTP decode | MTP accepted |
|---|---|---|---|---|
| 8,192 | 1,678 -> 1,695 (+1.0%) | 32.15 -> 32.57 | 50.08 -> 51.58 (+3.0%) | 64% -> 66% |
| 32,768 | 1,636 -> 1,642 (+0.4%) | 32.15 -> 32.22 | 97.15 -> 99.39 (+2.3%) | 100% |
| 131,072 | 1,570 -> 1,579 (+0.6%) | 29.44 -> 29.54 | 92.44 -> 94.59 (+2.3%) | 100% |
| 262,144 | 1,503 -> 1,508 (+0.3%) | 27.35 -> 27.35 | 87.94 -> 89.40 (+1.7%) | 100% |
a The Dynamic v3.1 repack has identical quantization bytes; its numbers are within single-run noise of the October 28 run, so the deltas above are code, not weights.
Against Bubo 0.1.2 (released Nov 4; measured 2026-11-08/09, same machine, greedy, one process at a time, two repetitions. Bubo rows use the byte-identical 38bb39ee snapshot: its stock loader rejects the Dynamic v3.1 local repack):
| Context | Bubo pp | Gufo pp | Bubo AR | Gufo AR | Bubo MTP | Gufo MTP |
|---|---|---|---|---|---|---|
| 8,192 | 1,657.8 | 1,695.5 | 28.64 | 32.57 | 44.37 | 51.58 |
| 32,768 | 1,588.1 | 1,642.1 | 28.61 | 32.22 | 95.68 | 99.39 |
| 131,072 | 1,519.7 | 1,579.4 | 27.82 | 29.54 | 91.53 | 94.59 |
| 262,144 | 1,451.2 | 1,508.0 | 26.94 | 27.35 | 86.72 | 89.40 |
All values tok/s; Gufo-win leads every cell (prefill +2.3-4.2%, AR +1.5-13.7%, MTP +3.1-16.3%). Bubo 0.1.2's auto draft vocabulary lifted its 8K MTP from 34.97 to 44.37 tok/s; every other cell moved within ~1% of 0.1.1.
Cached time-to-first token (follow-up request in the same session, /v1/chat/completions, sessions 1, context 131,072, greedy, 16-token replies, one cold pass then three cached repeats, 2026-11-08 Gufo-win build; v0.5.0 column is the pre-restore-reuse path measured on the same harness):
| Prompt | Gufo v0.5.0 | Gufo v0.6.0 | Bubo 0.1.1 |
|---|---|---|---|
| ~32K (168,800 chars) | 126 ms | 9-12 ms | 8.6-9.0 ms |
| ~100K (515,000 chars) | ~365 ms | 11.6-11.8 ms | 102-113 ms |
The win comes from restoring a checkpoint by copying only the ~240 MB of mutable recurrent state when the request returns to the session that wrote it (resident K/V rows stay in place), keeping snapshot payloads in a bounded pinned-host pool so the restore copy reads resident memory, and memoizing tokenization. Cold TTFT on the same runs: 20,449 ms at ~32K, 65,026 ms at ~100K; output was byte-identical cold vs cached on both engines.
What changed
Features
- Identity: the engine is now Gufo-win (jaacMusic fork); README tables and prose relabelled accordingly.
- Prompt passes split by layers: a long prefill yields between layers so other sessions keep decoding; both streams are drained around layer-hook yields with failure causes reported.
--prefill-chunkis deprecated (prompts beside decoders are split by layers now). - serve:
/tokenizeendpoint (upstream #1082), and a fix for tool-call values that start with</parameter>(upstream #1102). - Growable MMQ arena and prompt-state admission budget (upstream #740, #1083).
- Weights re-pinned: UD-Q4_K_XL to Unsloth Dynamic v3.1 (
d9620119), which also reads Q8_0 engram tables. - Windows: the Flash-Next launcher defaults to the disk continuation cache.
Performance
- Register-resident routed prefill experts (upstream #890): pp16384 +3.8% in a quiet-GPU A/B, with bit-identical prefill as the quality gate.
- Fused decode HC combine + Q8_0 mixer in one launch (upstream #894); dense sweep of pre-budget rows in budget-crossing attention batches (upstream #876, A/B benched).
- Wide-row verification and routed GEMM rework; shared-expert and Z-row overlap on a side stream (wide rows only); profitable greedy batch drafts clear a stale MTP AR backoff.
- serve: cached follow-up turns in 9-12 ms: checkpoint restore reuses resident K/V rows for the writing session (copies only ~240 MB of mutable recurrent state), snapshot payloads live in a bounded pinned-host pool, and tokenization is memoized — cached TTFT 126 → 9-12 ms at 32K, ~365 → ~12 ms at 100K.
- serve: a queued fan-out request waits until the resident publishes its prefix instead of re-prefilling it.
- Tried and rolled back on 2026-11-08 rather than kept: batched target-FFN HC-pair fusion, MTP backoff recovery and PLE tracing (measured losses or quality risk). Records in
docs/LINUX-PERF-PORT.md.
Fixes
- DSpark greedy output is bit-equal to plain decoding (upstream #1105).
- Metadata-only GGUF shards without alignment padding load again.
- Pinned XRT runtime re-certified; stale ready-Q8 rows dropped from the batched routes; multi-pass prefill steps aligned and the draft hidden row counted.
The DSpark equality fix and the v3.1 repack can change generated output where the old behaviour was wrong; text may differ from v0.5.0.
Unpack, run start.cmd, point it at the model downloads in README.txt. Requires a Strix Halo machine and a current AMD driver.
Gufo-win v0.5.0
Fixes the v0.4.0 tool-calling regression: fenced tool-call literals are kept as text and stop tokens no longer leak into unclosed code/math spans.
Features
- serve: report
completion_tokens_details.reasoning_tokensin chat usage (upstream 6ab4569b) - qwen38: port fused GDN prefill kernel from upstream a6c53a6 (llama.cpp #895)
- qwen3.8-flash-next: opt-in lm_head Q4_1 decode copy class
Bug Fixes
- serve: apply OpenAI
logit_biasand keep fenced tool-call literals as text - serve: keep stop tokens out of unclosed code and math spans
- qwen38-flash-next: keep prefill rows independent of the pass route (upstream llama.cpp #875)
- fail allocation when
hipMallocManagedreports success with a null pointer - close review-found races, leaks and sampling gaps
- tools: guard the launchers against a second engine process (unified memory holds one model)
Performance
- serve: memoize prompt tokenization across turns; configurable prefill chunk size (NPU lanes stay on)
- cache: reuse resident cache rows on same-session snapshot restore; learn shared-prefix checkpoints in RAM; request a shared boundary from a queued peer
- qwen38-flash-next: end MTP chains at the first unconfident draft (upstream llama.cpp #882)
- qwen38-flash-next: import llama.cpp packed-dequant and bf16 WMMA fixes; per-layer verify-body and phase-level prefill trace stamps (
GUFO_TRACE_LAYERS) - qwen: allocate vision encoder weights as managed memory; actionable request-state capacity claim
Measured vs v0.4.0
Cached follow-up turn, time-to-first-token (/v1/chat/completions, one session, greedy; tokenization memoization + resident-row reuse):
| Prompt | v0.4.0 | v0.5.0 | Δ |
|---|---|---|---|
| ~32K | 57-66 ms | 21-23 ms | -63% |
| ~100K | 152-170 ms | 27-30 ms | -81% |
Autoregressive decode vs the llama.cpp reference on the same machine (Gufo 30.93→32.28 tok/s at 32K depth):
| Context | v0.4.0 lead | v0.5.0 lead |
|---|---|---|
| 0 | +21.8% | +29.0% |
| 32,768 | +11.3% | +16.2% |
Context-sweep throughput is unchanged from the v0.4.0 table; see docs/models/qwen3.8-flash-next/BENCHMARKS.md for the Bubo 0.1.1 comparison, the 94 tok/s repetitive-decode MTP ceiling, and the measurement caveats.
Gufo-win v0.4.0
Prefill is ~3% faster at every context depth and decode is unchanged. serve now auto-enables MTP drafting when a draft sidecar is present: on real chat prose that is +26–31% over autoregressive. Everything else in this release is output correctness.
Measured vs v0.3.0 (same machine and weights, direct gufo bench, greedy, one process at a time, UD-Q4_K_XL + MTP Q8_0; v0.3.0 run Oct 26, dev run Oct 28):
| Context | Prefill | AR decode | MTP decode | MTP accepted |
|---|---|---|---|---|
| 8,192 | 1,637 → 1,678 (+2.5%) | 33.52 → 32.15 | 57.16 → 50.08 ᵃ | 69% → 64% |
| 32,768 | 1,588 → 1,636 (+3.0%) | 32.08 → 32.15 | 96.79 → 97.15 | 100% |
| 131,072 | 1,527 → 1,570 (+2.8%) | 29.29 → 29.44 | 92.47 → 92.44 | 100% |
| 262,144 | 1,464 → 1,503 (+2.6%) | 27.35 → 27.35 | 87.71 → 87.94 | 100% |
ᵃ The 8K MTP cell is accounting, not a regression: the bench now flags end-of-turn, so post-turn free text no longer counts as generated. MTP rows from 32K are a repeated-text upper bound. Realistic chat-prose decode (~400-word prompt, -n 256): AR 35.22 / 32.08 (sampled) → MTP 44.5–45.2 / 41.98 (+26–31%), 49–67% acceptance.
What changed
Features
- serve:
--cache-ram-gbsets the snapshot-cache budget; the largest checkpoint that fits is retained. - serve: MTP auto-enables with a draft sidecar — no flag needed — plus an online accept-probability table (Strata MtpAcceptTable port). The length controller picks draft width from acceptance, so
--draft-tokensis only a cap. The shared-Q8_0 sidecar is the right default (full-Q8_0 measures within 1%). - NPU (opt-in): module synced to Bubo 51d14955 — L-REL-2 chunk retry, fault guards, guard/monitor/trace knobs honoured; XRT batch-phase logs per prefill chunk.
Performance
- Prefill runs in 8,192-token chunks: the +2.5–3% pp in the table above.
- Bit-identical kernel work: SelectScore register-bloat cut, RoPE sincos/tables hoisted to shared memory, narrow mixer-down W8A8 tile at ≤1,024 tokens.
- Tried and removed rather than kept: chunked DeltaNet prefill (upstream claims +12%; locally −1–2% and it changed greedy output) and a SelectScore warp rewrite (slower). Records in
docs/LINUX-PERF-PORT.md.
Fixes
- Q8_0 inject and alpha/beta weights now run on their F32 kernels (#788) — they were processed by the wrong quantized kernel.
- Standalone RopeKernel rounds identically to the fused preparation path.
- Block selection and draft-ID remap are bounded by their buffers (#849).
- Loader retries a failed unbuffered weight read through the buffered file (#858).
- serve: warm-turn checkpoints are taken at the stable prefix boundary.
- build:
GUFO_NPUis propagated to consumers of the flash-next headers (fixes mismatched downstream builds).
The first two fixes change generated output where the old behaviour was wrong; text may differ from v0.3.0.
Unpack, run start.cmd, point it at the model downloads in README.txt. Requires a Strix Halo machine and a current AMD driver.
Gufo-win v0.3.0
Decode is faster at every depth: Q4_1 decode weight copies, MTP prompt lookup on by default, and cheaper sampled/residual sampling. Prefill is neutral.
Measured vs v0.2.0 (same machine, same weights, direct gufo bench, greedy, two repetitions, one process at a time, UD-Q4_K_XL + MTP Q8_0):
| Context | AR decode | MTP decode | MTP accepted | Prefill |
|---|---|---|---|---|
| 8,192 | 28.51 → 33.52 (+18%) | 45.66 → 57.16 (+25%) | 69% | 1,626 → 1,637 |
| 32,768 | 27.49 → 32.08 (+17%) | 78.81 → 96.79 (+23%) | 100% | 1,578 → 1,588 |
| 131,072 | 25.23 → 29.29 (+16%) | 75.03 → 92.47 (+23%) | 100% | 1,513 → 1,527 |
| 262,144 | 24.21 → 27.35 (+13%) | 72.10 → 87.71 (+22%) | 100% | 1,449 → 1,464 |
MTP is the repetitive-prompt upper bound (greedy, drafts accepted verbatim); realistic mixed-prompt MTP decode is slower. Decode tok/s at depth is the number that matters for normal use.
What changed
- Q4_1 decode copies (
GUFO_DECODE_COPY, defaultbalanced): large dense Q8_0 projections keep a least-squares-refit Q4_1 copy that serves the 1–8 row decode GEMV, so decode reads 20 instead of 34 bytes per 32 weights. Prefill and wide batches keep the Q8_0 WMMA path and the Q8_0 weights stay resident. Greedy text identical at d0, load and prefill unchanged. Decode numerics change;GUFO_DECODE_COPY=offrestores the exact Q8_0 path. - MTP prompt lookup on by default: a 12+-token conversation match proposes the tokens that followed it;
--prompt-lookupis now an off switch. tg128 at depth 32,768 went 80.24 → 99.29 tok/s on the repeated-prompt bench, file-editing replies +10% sampled. - Sampling: penalties merge over sorted ids instead of a hash map plus binary search, and residual sampling walks the residual directly instead of rebuilding a sorted distribution (speculative verify rows measured ~1.1 ms/row before).
- Server: greedy requests with penalties or constraints, and greedy requests decoding alone in a multi-session server, now draft through the small MTP head instead of the full projection.
- Windows launcher: scripted parameter overrides and
repo:quantserved-model names. - Strata V2K grouped decode kernels were ported and A/B'd: +1.8%, inside run-to-run noise, so they were reverted rather than kept as a default-off branch (record in
docs/LINUX-PERF-PORT.md).
Unpack, run start.cmd, point it at the model downloads in README.txt. Requires a Strix Halo machine and a current AMD driver.
Gufo-win v0.2.0
Upstream sweep v0.2.0: per-stream mmq scratch arenas, K-order BF16 indexer projections, occupancy-priced sampled MTP drafts, image detail low/high. Greedy output is byte-identical to v0.1.0.
Measured vs v0.1.0 (same machine, same weights, interleaved A/B, MTP):
| metric | v0.1.0 | v0.2.0 | delta |
|---|---|---|---|
| MTP tg128, depth 0 | 34.76 tok/s | 38.95 | +12% |
| MTP tg128, depth 32768 | 75.62 tok/s | 79.27 | +4.8% |
| MTP pp2048, depth 0 | 1588.89 tok/s | 1598.69 | +0.6% |
| AR pp2048 / tg128 | 1619-1632 / 30.1-30.5 | 1636-1645 / 30.4-30.5 | neutral |
| Sampled serving, 2 users, temp 1.0 | 34.53 tok/s | 36.48 | +5.6% |
Draft acceptance identical (63%) in the sampled A/B, so the gains are the ported fixes.
Unpack, run start.cmd, point it at the model downloads in README.txt. Requires a Strix Halo machine and a current AMD driver.
Gufo-win v0.1.0
First Windows release: Qwen3.8-Flash-Next (UD-Q4_K_XL + shared MTP Q8_0) with adaptive MTP, images and greedy/draft serving on AMD Strix Halo gfx1151.
Unpack, run start.cmd, and point it at the model downloads listed in README.txt. Requires a Strix Halo machine (Ryzen AI MAX+ 395 / Radeon 8060S) and a current AMD driver — no other install steps.