Skip to content

docs: the GPU route is moving to Loom; the HIP-kernel route is the fallback - #3165

Merged
bong-water-water-bong merged 1 commit into
mainfrom
docs/gpu-loom-direction
Nov 21, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
docs/gpu-loom-direction

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Owner decision 2026-11-21: the engine's GPU route moves to Loom, and the NPU engine work goes on as before. This PR changes the written narrative to match. Docs and NOTICE only; no code, CI, config pins or tests.

What the docs now say:

Where:

  • docs/hrx.md: new section "Direction: Loom on the GPU"; the rest of the page is described as the fallback route.
  • README, architecture, serve, lemonade, laya-first, PORTING, models, hybrid, hw-gate, os/LICENSES, tools/kernelforge: direction and positioning lines.
  • docs/releases.md: a dated note at the top of the current draft section only; past records unchanged.
  • README thanks + NOTICE: hrx-loom-library, loom-skills and weaver (MIT) and the loom-fun model cards; the hrx-system entry names Loom.

Checks: scripts/pre-pr-checks.sh --base origin/main: 14 green, 3 skipped (submodules not initialised; no gpu-kernels tree on the docs host). doc_section_loss_check: all 691 sections present. One h1 per changed page.

Refs #3156 #3157 #3158

🤖 Generated with Claude Code

…llback

Owner decision 2026-11-21: the engine's GPU route moves to Loom (AMD's Loom
model programs on HRX, served by loom-serve behind 1bit serve), one model
at a time once it passes the A/B and accuracy gate (#3158). No model has
moved yet; coverage is #3156, the hybrid KV handover #3157. The llama.cpp
fork with ggml-hrx and the private HIP kernels stays as the fallback with
no new kernel work (#679, #3103 parked). The NPU engine does not change.

- docs/hrx.md: new "Direction: Loom on the GPU" section; the llama.cpp
  route and the private HIP kernels are described as the fallback
- README, architecture, serve, lemonade, laya-first, PORTING, models,
  hybrid, hw-gate, releases (dated note on the draft section only),
  os/LICENSES, tools/kernelforge: direction and positioning lines
- README thanks + NOTICE: hrx-loom-library, loom-skills, weaver (MIT),
  loom-fun model cards; hrx-system entry names Loom

Docs and NOTICE only; no code, CI, config or tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 9f8f653: CHANGES

14 files, +172/−31. Five of the six things the direction must say are said, consistently, in every file — and one file says the opposite in the past tense. That one sentence is the whole of the change I am asking for; the licences are right and I checked each against its own LICENSE file.

The six, where each is stated

the direction must say where it says it
"moving to", not "moved" README.md:31 "the GPU route is moving to Loom", README.md:94, :118; docs/hrx.md:22-26; docs/architecture.md:92; docs/models.md, docs/laya-first.md, docs/lemonade.md, docs/serve.md, docs/releases.md:394 all use the continuous form
per model docs/hrx.md:60 "one model at a time", "How a model moves"; README.md:33; docs/laya-first.md:24; docs/serve.md
gated docs/hrx.md:62 "Per model, behind a gate (#3158)" — interleaved A/B plus the accuracy check; README.md:34-35; docs/models.md
no model moved yet docs/hrx.md:74 "State on 2026-11-21: no model has moved yet"; README.md:35; docs/laya-first.md:26; docs/releases.md:44
fallback route kept docs/hrx.md:76-80 "stays as the fallback for every model without a Loom program that passed the gate… keeps its pins, its hardware gate and its fixes, but gets no new kernel work"; README.md:36-38; docs/architecture.md:97-98; docs/hw-gate.md
NPU unchanged docs/hrx.md:50-51 "the NPU engine work goes on as before"; README.md:38, :94 "the NPU engine does not change"; docs/laya-first.md:25; docs/architecture.md:98

The one that fails, and it is the criterion the owner named

docs/architecture.md:92-94, in the same paragraph:

HRX on the GPU, moving to Loom model programs, plus the NPU engine, embedded into Lemonade rather
than Lemonade embedded into the engine.[^geramyl] On 2026-11-21 the owner moved the GPU route to
Loom, because straight Loom beat our llama.cpp fork …

"the owner moved the GPU route to Loom" is the past tense the whole PR is otherwise written to avoid, and it is three lines below the file's own "moving to" and in the one page a reader goes to for what the engine is. docs/hrx.md:74 says no model has moved yet; this says the route did. One word: "the owner is moving the GPU route to Loom" (or "the owner's direction is to move…"). It is the only place I found a completed-tense statement — I grepped every added line for moved|switched|runs on Loom|is loom and the rest are all negative or conditional.

Two notes, neither blocking

The motivation sentence is uncited and over-general in three places — README.md:32-33, docs/hrx.md:58, docs/architecture.md:94, all "straight Loom beat our llama.cpp fork with its HIP kernels on every model (we) compared". The evidence is real but it lives in ~/briefs/LOOM-FUN-STATE.md, outside the tree: two models compared (Qwen3-0.6B, Qwen3.8-27B; 27B prefill +35 %, decode +10-15 %), the 0.6B decode "within run-to-run noise (+3-9 %, single pass)", and that same file says of the 27B "before routing it, (a) repeat as an interleaved A B A B pair, (b) run loom-serve through the gates of item 1". So "every model we compared" is true of two models, one of them noisy, measured single-pass — and a shipped page asserting a result whose only record is an untracked brief is the "the record outlives nothing" problem. Naming the two and where the numbers live (or saying "in the single-pass comparisons we ran") would cost one clause.

The anchor is real and will render — I checked the heading ## Direction: Loom on the GPU against the site's own renderer (python-markdown, toc extension): direction-loom-on-the-gpu, which is what docs/serve.md, docs/laya-first.md, README.md:38 and site#37 all link to.

Licences, checked one by one against the sources

Every claim in NOTICE and in os/LICENSES.md's new row 7 matches the licence file in the checkout on this box:

named its LICENSE says NOTICE says
ROCm/hrx-loom-library MIT License / Copyright (c) 2026 AMD ROCm™ Software MIT, "Copyright (c) 2026 AMD ROCm(TM) Software" ✔
loom-fun/loom-skills MIT License / Copyright (c) 2026 Loom Fun contributors same ✔
loom-fun/weaver MIT License / Copyright (c) 2026 loom-fun contributors same ✔
ROCm/hrx-system (HRX entry) Apache License Version 2.0 Apache-2.0, plus the note that loomc ships inside it ✔

The model cards are handled correctly — "each model's weights keep their own licenses. They are downloaded by the user, not redistributed." — which is the right answer for a repo that cannot restate per-model terms. loom-dev appears nowhere in the diff, which is the one the direction is explicit about (no licence: read only, never copy from). And the section header says "in progress; not built into or shipped with any release yet", consistent with "no model has moved yet".

Gate on this head (9f8f653b5): pre-pr-checks --base origin/main → rc 0, 0 FAIL. Site #37 depends on this PR only for the anchor above; it is reviewed separately.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 3165

A direction change written down, with its own reversibility conditions stated — and the second bullet is what makes this a plan rather than an announcement:

"It is per model: a model moves only after an interleaved A/B and an accuracy check (greedy agreement, KL divergence …)"

That sentence is the whole difference between "we are moving to Loom" and "here is the gate a model must pass to move". The first is a press release; the second is a rule a reviewer can apply to a PR next week. Documenting the gate before the migration is the ordering that keeps a direction change from becoming an unmeasured fait accompli.

And the third bullet is the one that will be read as a promise if it is wrong:

"The llama.cpp fork with ggml-hrx and the private HIP kernels stays as the fallback for models without a Loom program."

Tonight's own work is the evidence that "fallback" needs a definition: six PRs landed on that path in twelve hours (#460's chunker, #461/#462's matchers, #466's value-comparison row, #468, plus the pins). A fallback that still receives half the engineering effort is not a fallback, and the page should say which of the two modes a bug report belongs to — otherwise the next contributor fixes the HIP path while the route is being retired.

Three asks:

  1. say how long the fallback is supported, or how it ends — "stays as the fallback" with no horizon means two code paths forever. One sentence ("until every shipped model has a Loom program that passes the gate, or until ") makes the retirement a decision rather than a hope;
  2. name what happens to the HIP-route issues already open — #3120, #3122, #3123, #3126 are all add-on-route defects filed tonight. If the route is being retired, that changes their priority; if it is not, the doc should say so, because a reader today cannot tell from this PR;
  3. and the accuracy gate needs a number — "greedy agreement, KL divergence" is a form; the doc should say the thresholds or point at where they live. A gate described by its metrics and not its bounds is a gate that will be declared passed by whoever runs it last.

On the shape: +172, docs + NOTICE only, no code/CI/pins/tests — and NOTICE updated for the MIT sources (hrx-loom-library, loom-skills, weaver) is the part that is not optional: attribution for the model programs the route now depends on. That it is in the same PR as the narrative is correct.

One note for the merge record: this is an owner decision written into the tree, which is rarer than it should be — and the three Loom issues it refs (#3156 coverage, #3157 the handover, #3158 the route gate) are the work items that make it real. The doc is the map; those three are the road.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 9f8f653b: CHANGES — one unsourced comparative claim; everything else checks out

What is right, and I checked it rather than assumed it. Docs and NOTICE only — the file list is NOTICE, README.md, docs/* and no code, CI, pin or test moves. Seven checks pass at this head. The NOTICE additions are written the honest way: they sit under a heading that says "Loom on the GPU (in progress; not built into or shipped with any release yet)", which is exactly true — grep -rn "loom-serve\|loom_serve" app/ tools/ finds nothing, so the docs describe a route the tree does not yet contain and say so. The three third-party entries (hrx-loom-library MIT, loom-skills, weaver) are attributed with licences and the cards are marked "downloaded by the user, not redistributed", which is the right call for model weights. Issue links resolve (#3156, #3157, #3158), and §2's fallback description matches the pins the tree actually carries.

The one thing to change: the direction paragraph asserts a measured comparison and carries no measurement:

docs/hrx.md (diff line 62)
  "…beat our llama.cpp fork with its HIP kernels on every model we compared."

Nothing in the tree supports "on every model compared" — no table, no per-model numbers, no link to one — and the board's own standard is the one docs/releases.md keeps two lines away (NPU 82.03 tok/s, 1959/1959 kernel ops): numbers when measured on this box, and the measurements arrive from the gate this PR defers to. The gate is #3158, and per L4/#3157's acceptance the A/B is interleaved, ≥ 4 rounds per arm, with accuracy — none of which exists yet, by your own body's "No model has moved yet".

So the claim is currently an assertion from private measurements. Two one-line fixes, either is fine:

I would not merge the sentence as written, because it is the one line in the PR a reader will quote later as "the docs said Loom beat the fork on every model", and when the gate produces two losers that sentence becomes a contradiction in the tree rather than a plan.

Not asking for: any change to the NOTICE, the fallback description, the per-model-move framing, or the file scope. Those are right, and the "in progress, not shipped" framing is the model the rest of this should follow.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 9f8f653: READY

The direction recorded here matches the owner's brief (~/briefs/LOOM-GPU-SWITCH.md) on every point I checked, and the attribution is right — which for this file matters more than the prose.

The statement is accurate and does not over-claim: GPU serving moves to Loom per model after the gate in #3158; coverage is #3156, the KV handover #3157; "No model has moved yet, so a build today still serves every GPU model on the llama.cpp fork with ggml-hrx and the private HIP kernels; that route stays as the fallback with no new kernel work"; #679 and #3103 are parked; the NPU engine and the 1bit OS image do not change. That is the brief, in the place a reader will find it.

No kernel internals in the public diff. My scan of the added lines for kernel names, .hip, dispatch-*, k_<id>, wmma, xclbin, aie2_ returns four hits and all four are already-public surface: gfx1151 (the iGPU name the docs and the site already carry) and amdxdna (the in-tree kernel module, in the LICENCES table).

The NOTICE addition is the part with legal weight and it is right — this is where the brief's rule ("loom-dev has NO licence: read only, never copy from it") could have gone wrong:

hrx-loom-library (ROCm/hrx-loom-library)  Copyright (c) 2026 AMD ROCm Software   License: MIT
loom-skills      (loom-fun/loom-skills)   Copyright (c) 2026 Loom Fun …         License: MIT

and grep -i loom-dev over the whole diff → nothing. So the two MIT sources we build on are credited and the unlicensed tree is not used or implied anywhere.

One note, no action: "straight Loom beat our llama.cpp fork with its HIP kernels on every model we compared" is properly qualified and sits next to "no model has moved yet", but it is the only performance claim in the diff with no pointer to the record. Adding the A/B issue (#3158) inline — or "every model we compared so far" — would make it checkable by the reader rather than assertable by us, which is the standard the rest of the page keeps.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3158 - Partially compliant

Compliant requirements:

  • The GPU route moves from the fallback stack to Loom
  • Per model, one row with interleaved A/B performance and accuracy
  • Same GGUF for both arms
  • Accuracy checks with greedy agreement, mean KLD, and same-top-token % against CPU reference
  • Decision rule is applied verbatim

Non-compliant requirements:

  • The toolchain blocker (loom-fetch refusing schema version 2) is not resolved
  • The first row (27B) will be the first thing run when L5 lands, but L5 is not yet in place
  • The Loom arm is not yet measured for the 27B row

Requires further human verification:

  • The actual performance and accuracy measurements for the models that have been tested
  • Verification that the toolchain blocker is resolved
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Outdated GPU direction

The README.md still refers to the llama.cpp fork with ggml-hrx and HIP kernels as the current GPU route, but the direction has changed to Loom. The text should be updated to reflect that the GPU route is moving to Loom and the llama.cpp fork is the fallback.

**GPU direction (2026-11-21): the GPU route is moving to Loom.** That is AMD's Loom model programs
on the HRX runtime, served by `loom-serve` behind `1bit serve`. On our Strix Halo box, straight Loom
beat our llama.cpp fork with its HIP kernels on every model we compared. A model moves only once it
passes the Loom gate: an interleaved A/B and an accuracy check against the current route
([#3158](https://github.com/1bit-MONSTER/engine/issues/3158)). No model has moved yet; the
integration is in progress; which models have a Loom program is tracked in [#3156](https://github.com/1bit-MONSTER/engine/issues/3156). Until a
model moves, and for models with no Loom program, the llama.cpp fork with ggml-hrx and our HIP
kernels serves it as the fallback. The NPU engine does not change ([docs/hrx.md](docs/hrx.md#direction-loom-on-the-gpu)).
Incomplete Loom integration

The documentation in hrx.md mentions that the GPU route is moving to Loom, but the integration is still in progress and no model has moved yet. The documentation should be updated to reflect the current state of the integration.

## Direction: Loom on the GPU

Owner decision, 2026-11-21: the GPU route moves to **Loom**, and the NPU engine work goes on as
before. Loom here means AMD's Loom model programs running on the HRX runtime
([ROCm/hrx-system](https://github.com/ROCm/hrx-system), whose Loom compiler `loomc` the engine
already builds, and [ROCm/hrx-loom-library](https://github.com/ROCm/hrx-loom-library)), with the
model cards published by [loom-fun](https://github.com/loom-fun) (Jeremy Fowers and Daniel
Holanda). `loom-serve` serves them, behind `1bit serve`, so Lemonade and clients see no change.

Why: on strixhalo (Ryzen AI MAX+ 395, `gfx1151`) straight Loom beat the llama.cpp fork with our
HIP kernels on every model we compared.

How a model moves:

- **Per model, behind a gate** ([#3158](https://github.com/1bit-MONSTER/engine/issues/3158)). A
  model switches to Loom only after an interleaved A/B against the current route and an accuracy
  check: greedy agreement, and KL divergence where the Loom side can give logits.
- **Coverage** ([#3156](https://github.com/1bit-MONSTER/engine/issues/3156)). Models with a
  loom-fun card are measured first. Models without one get Loom programs written for them with
  [loom-skills](https://github.com/loom-fun/loom-skills) and
  [weaver](https://github.com/loom-fun/weaver).
- **Hybrid** ([#3157](https://github.com/1bit-MONSTER/engine/issues/3157)). The NPU-prefill route
  ([hybrid.md](hybrid.md)) hands its KV cache to the HRX llama-server today; handing it to Loom
  decode is tracked there.

State on 2026-11-21: **no model has moved yet**; `loom-serve` behind `1bit serve` is in progress.
Every model on this page still runs on the llama.cpp route below.

The llama.cpp route (the fork with ggml-hrx, plus the private HIP kernels) **stays as the
fallback** for every model without a Loom program that passed the gate. It keeps its pins, its
hardware gate and its fixes, but gets no new kernel work: [#679](https://github.com/1bit-MONSTER/engine/issues/679)
and [#3103](https://github.com/1bit-MONSTER/engine/issues/3103) are parked. The rest of this page
describes that route.
Outdated fallback route description

The serve.md documentation still describes the HRX route as the current GPU route, but it should reflect that the fallback route is the llama.cpp fork with HIP kernels and that Loom is the new route.

| `.gguf` | `auto`, `hrx` | the HRX build's llama-server on `HRX0` with our HIP kernels (docs/hrx.md; the fallback route once a model moves to Loom), `--mtp` included; every node on HRX in all 43 configurations of the 2026-10-20 census (#476, #480, #481). `auto` exceptions: below |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant