…fills its prompt, and the co-execution re-scope missed its KLD gate
Engine#3157 designed handing the NPU prefill's KV cache to Loom decode instead of the HRX
llama-server (L4 of the Loom GPU switch). Four docs still described it as the coming design
(docs/hybrid.md:32-35, docs/hrx.md:70-72, docs/PORTING.md:26, docs/architecture.md:49-53). It is
retired on two measurements, both recorded in #3157:
- A generative Loom model takes its prompt only as chat text and re-prefills it. At the pinned
loom-serve, ROCm/hrx-system e2c41a720363 (hrx-loom 0.3.0, config/loom.config), the text service
accepts /v1/sequences only in ENCODE mode and answers a generative request to it 404 "use the
model's declared endpoint or /v1/checkpoints/NAME" -
loom/src/loom/serve/service/text/service.c:244-261 (the 0.2.0 file 0cd370f2baaa: :247-265). The
enqueue path otherwise takes only /v1/chat/completions, /v1/chat/completions/input_tokens and
/v1/checkpoints/NAME (a pin on a session Loom itself ran), so no HTTP surface takes KV or
activations: an NPU prefill in front of Loom adds its own time and Loom still prefills the
prompt. Measured 2026-11-22 on strixhalo: replaying 780 tokens as text costs 62-65 ms on
Qwen3-0.6B, and Loom's prefill is 8.1-15.2k tok/s there and 362-576 tok/s on Qwen3.8-27B.
- The 2026-11-23 re-scope to NPU + GPU co-execution (a public 1,335 tok/s-at-8K bar) failed its GPU
half's accuracy gate: #3349 (int4 x int4 on the GPU matrix units) closed NOT_PLANNED the same
day, weight-only mean KLD 0.0678 +/- 0.0020 (int4-k128 RTN) and 0.0499 +/- 0.0013 (AMD Quark AWQ
int4-k128) against the 0.01 gate and the shipped UD-Q4_K_XL's 0.0052 +/- 0.0002 - before the
activations a real iu4 x iu4 kernel also needs. The baseline the bar was set against measured
396-451 tok/s (fallback) and 524-537 tok/s (Loom) at 8,205 prompt tokens.
- docs/hybrid.md: a "Loom: the handover is retired" section; --device hybrid stays the only
handover and still decodes on the HRX llama-server as the page describes
- docs/hrx.md (Direction: Loom on the GPU), docs/architecture.md (Routes) and docs/PORTING.md
(step 2L): the handover is retired, #3349 is named, and each links the record
- KNOWN-ISSUES.md: a new engine#3157 entry with the canonical retirement statement the docs point
at, the two measurements, and what a hybrid would need before it can be designed again
- docs/releases.md and the README keep their dated entries: those are the record of what was said
then, not current claims
Docs only; no code, CI, config or tests. Refs #3157, #3349.
Evidence
Control: the stale promise is present on origin/main 1bb4632 and gone here. The script asserts
(a) no current doc still promises the handover, (b) each says retired + gives the measured reason +
links #3349, (c) KNOWN-ISSUES carries the retirement entry with the #3349 numbers. It runs from a
tree root; the "before" tree is origin/main's five files extracted with git archive.
$ cd ~/.cache/scratch-3157/before && sh retirement_control.sh
FAIL stale handover promise still in the docs:
docs/hybrid.md:33:the provider's KV cache to Loom decode instead of the HRX llama-server is tracked in
docs/hybrid.md:34:[#3157](#3157); until that lands, hybrid decodes on the
docs/hrx.md:72: decode is tracked there.
docs/PORTING.md:26:...coverage [#3156]..., hybrid KV handover [#3157] |
docs/architecture.md:51: handing it to Loom decode instead is [#3157](...).
FAIL docs/hybrid.md does not say retired
FAIL docs/hybrid.md does not link #3349
ok docs/hybrid.md gives the measured reason
FAIL docs/hrx.md does not say retired
FAIL docs/hrx.md does not link #3349
FAIL docs/hrx.md gives no measured reason
FAIL docs/PORTING.md does not say retired
FAIL docs/PORTING.md does not link #3349
FAIL docs/PORTING.md gives no measured reason
FAIL docs/architecture.md does not say retired
FAIL docs/architecture.md does not link #3349
FAIL docs/architecture.md gives no measured reason
FAIL KNOWN-ISSUES has no engine#3157 retirement entry
FAIL KNOWN-ISSUES does not record the #3349 measurement
exit=1
$ cd ~/wt/issue-3157 && sh retirement_control.sh
ok no doc still tracks the handover as coming
ok docs/hybrid.md says retired
ok docs/hybrid.md links #3349
ok docs/hybrid.md gives the measured reason
ok docs/hrx.md says retired
ok docs/hrx.md links #3349
ok docs/hrx.md gives the measured reason
ok docs/PORTING.md says retired
ok docs/PORTING.md links #3349
ok docs/PORTING.md gives the measured reason
ok docs/architecture.md says retired
ok docs/architecture.md links #3349
ok docs/architecture.md gives the measured reason
ok KNOWN-ISSUES has the engine#3157 retirement entry
ok KNOWN-ISSUES records #3349 NOT_PLANNED with the measured KLD
PASS engine#3157 retirement is stated in every current doc
exit=0
Source check of the load-bearing code claim (both pins):
$ gh api 'repos/ROCm/hrx-system/contents/loom/src/loom/serve/service/text/service.c?ref=e2c41a720363' -H 'Accept: application/vnd.github.raw' | sed -n '244,261p'
const bool input_count = iree_string_view_equal(
request->path, IREE_SV("/v1/chat/completions/input_tokens"));
const bool encodes =
service->scheduling.model_mode == LOOM_SERVE_TEXT_MODE_ENCODE;
const bool sequence_endpoint =
iree_string_view_equal(request->path, IREE_SV("/v1/sequences"));
if (!iree_string_view_equal(request->method, IREE_SV("POST")) ||
(encodes ? !sequence_endpoint
: (!input_count &&
!iree_string_view_equal(request->path,
IREE_SV("/v1/chat/completions"))))) {
return loom_serve_text_http_reject(
&service->telemetry, connection, receipt, 404, "Not Found",
iree_make_status(
IREE_STATUS_NOT_FOUND,
"use the model's declared endpoint or /v1/checkpoints/NAME; "
"generative models also support /v1/chat/completions/input_tokens"),
service->host_allocator);
}
the same check is at :247-265 of the file at 0cd370f2baaa (hrx-loom 0.2.0).
What was wrong
Four docs still described the NPU-prefill -> Loom-decode KV handover as the coming design:
docs/hybrid.md:32-35: "Handing the provider's KV cache to Loom decode instead of the HRXllama-server is tracked in loom: the hybrid route's NPU prefill -> Loom decode KV handover (L4 design: two caller-owned state roots, f16 attention cache + f32 GDN state) #3157; until that lands, hybrid decodes on the llama-server".
docs/hrx.md:70-72("Direction: Loom on the GPU"): "handing it to Loom decode is tracked there".docs/PORTING.md:26(step 2L): "coverage Loom coverage: our shipped models vs the Loom card corpus, and the programs that are missing #3156, hybrid KV handover loom: the hybrid route's NPU prefill -> Loom decode KV handover (L4 design: two caller-owned state roots, f16 attention cache + f32 GDN state) #3157" as part of thein-progress Loom move.
docs/architecture.md:49-53("Routes"): "handing it to Loom decode instead is loom: the hybrid route's NPU prefill -> Loom decode KV handover (L4 design: two caller-owned state roots, f16 attention cache + f32 GDN state) #3157".That premise is measured dead in the issue: a generative Loom model accepts its prompt only as
chat text and re-prefills it, so a prefilled KV cannot be delivered (comments 2026-11-22), and the
re-scope to NPU + GPU co-execution was declined when its GPU half, #3349, failed the KLD gate
(closed NOT_PLANNED 2026-11-23). The docs were the only place still selling it as scheduled.
The retirement statement (canonical, in KNOWN-ISSUES.md)
with the two measured reasons: (1) at the pinned loom-serve the text service accepts a generative
prompt only as chat text —
/v1/sequencesis ENCODE-only and a generative request gets a 404 —so an NPU prefill in front of Loom adds its own time and Loom still prefills; (2) the co-execution
re-scope's GPU half (#3349) closed NOT_PLANNED on a measured accuracy miss.
Verified here, not taken from the thread
ROCm/hrx-systeme2c41a720363(hrx-loom0.3.0,config/loom.config) and0cd370f2baaa(0.2.0):loom/src/loom/serve/service/text/service.c:244-261accepts/v1/sequencesonly whenmodel_mode == LOOM_SERVE_TEXT_MODE_ENCODE; a generative request is rejected 404 "use themodel's declared endpoint or /v1/checkpoints/NAME; generative models also support
/v1/chat/completions/input_tokens". The enqueue path otherwise takes only chat completions, the
input-token count and named checkpoints (a pin on state Loom itself computed), i.e. no HTTP
surface takes KV/activations. At 0.2.0 the same block is
:247-265. Full snippet in the controlsection below.
#3157/#3349and quoted, not re-run here;they are not invented for this PR. What this PR changes is the conclusion the docs state.
Changes
docs/hybrid.md: new "Loom: the handover is retired" section;--device hybridstays the onlyhandover and still decodes on the HRX llama-server as the page describes.
docs/hrx.md(Direction: Loom on the GPU): the Hybrid bullet says retired, why, and linkshrx/loom: int4 x int4 prefill on the GPU matrix units for dense projections (Qwen3.8-27B prefill ~500 -> 1,300+ tok/s) #3349 and the record.
docs/architecture.md(Routes): same correction for the same sentence.docs/PORTING.md(step 2L): the handover is retired, with the reason and hrx/loom: int4 x int4 prefill on the GPU matrix units for dense projections (Qwen3.8-27B prefill ~500 -> 1,300+ tok/s) #3349.KNOWN-ISSUES.md: newengine#3157entry — the canonical retirement statement the docs pointat — with both measurements, what a hybrid would need before it can be designed again, and the
list of docs corrected.
docs/releases.mdand the README keep their dated entries: they are the record of what wassaid then, not current claims.
Docs only; no code, CI, config or tests.
Control
The script asserts (a) no current doc still promises the handover, (b) each of the four says
retired + gives the measured reason + links #3349, (c) KNOWN-ISSUES carries the retirement entry
with the #3349 numbers. Run from a tree root; the "before" tree is origin/main
1bb46320's fivefiles extracted with
git archive.Load-bearing code check, 0.3.0 pin:
Gate
scripts/pre-pr-checks.sh --tree-only --base origin/main:The two skips are the environment rows, each with its own reason:
tools/ci/hip_f16_audit.pyandtools/ci/kernel_id_selftest.py("found no gpu-kernels tree").Not verified, and why
396-451 vs 524-537 tok/s at 8,205 tokens; the KLD numbers) are the ones recorded in the
#3157and
#3349comments. I did not re-run them on strixhalo — the device windows belong to the GPUlanes, and the retirement rests on the recorded runs plus the code check above.
quoted rather than re-derived.
rfc): this PR does not close it and does not implement anything. Itremoves the docs' claim that the handover is coming; whether/when to close loom: the hybrid route's NPU prefill -> Loom decode KV handover (L4 design: two caller-owned state roots, f16 attention cache + f32 GDN state) #3157 is the owner's
call.
Review risk
hybrid.md,hrx.mdandPORTING.md;docs/architecture.md:49-53carried the same stale sentence, so it is corrected here rather thanleft as a live claim. Drop that hunk if scope must stay exactly on the three.
now say; confirm that matches what the owner wants to do with loom: the hybrid route's NPU prefill -> Loom decode KV handover (L4 design: two caller-owned state roots, f16 attention cache + f32 GDN state) #3157 rather than closing it.
Refs #3157, #3349