Skip to content

loom route: GLM-4.7-Flash (unsloth Q4_K_M) on our published card 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom @ a76d9b2f, gated on #3158 - #3523

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-loom/route-glm47-flash
Nov 27, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-loom/route-glm47-flash

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

This adds one route entry: glm-4.7-flash-q4_k_m → 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom @ a76d9b2f (our card: deepseek2/MLA with expanded-MLA prefill, #3503).

  • What it matches: the pinned unsloth/GLM-4.7-Flash-GGUF@0d32489e Q4_K_M (29837ed2…, 18,312,339,808 B), plus the names GLM-4.7-Flash-1bit and GLM-4.7-Flash-Q4_K_M.
  • How it serves: preset chat, amdgpu://, --pool_backing=fixed. That is the form the gate's 1bit serve --loom-routes arm ran.

Gate (#3158, hrx-loom 0.3.0, strixhalo gfx1151, on a fresh clone of the published card):

  • Speed (record): 4 interleaved rounds, one server at a time, against our own HRX route.
    • Prefill: 1,003 → 2,255 tok/s at 2,380 tokens (2.25×). TTFT: 2,372 → 1,055 ms.
    • Decode @2k: 56.1 → 59.7 tok/s, or 60.5 through 1bit serve.
    • Short decode: 65.0 → 71.5 tok/s.
    • The round-to-round spread was 1.6–2.9 %, and the ordering never inverted.
  • Accuracy (record): against the CPU arbiter, loom agrees on 87.5 % of prompts and the fallback on 62.5 %. Loom's one split is the known near-tie prompt, and the fallback diverges on three.

Also changed:

  • config/loom-cards.json: the GLM row goes from none, which said "no published card", to exact. The card's model.json.lock binds exactly our bytes (unsloth@0d32489e, 29837ed2…).
  • docs/loom-route.md: the route-table row.

Not in this PR: the 1bit OS payload carries only Inkling's card (os/v3/puppy/loom-cards.pin), so on the image this route applies only once the card is staged. Whether the image carries GLM's card (18.3 GB of weights pulled by the catalogue, programs only in the payload) is a release decision, so it is left out here.

Checks:

  • python3 tools/loom_cards.py --check: 0 errors.
  • bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.
  • loom_route_test was not built locally: ryzen is under the one-heavy-job rule. CI builds and runs it.

🤖 Generated with Claude Code

…-MONSTER/GLM-4.7-Flash-GGUF-loom @ a76d9b2f, gated on #3158

- config/loom-routes.json: glm-4.7-flash-q4_k_m matches the pinned unsloth Q4_K_M (29837ed2, 18,312,339,808 B) and
  GLM-4.7-Flash-1bit / GLM-4.7-Flash-Q4_K_M; preset chat, amdgpu://, --pool_backing=fixed (the form the gate's
  1bit serve --loom-routes arm ran)
- config/loom-cards.json: the GLM row is now an exact match (the card's lock binds our bytes)
- docs/loom-route.md: the route table row

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

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3503 - Partially compliant

Compliant requirements:

  • The route entry has been added to config/loom-routes.json with proper matching criteria
  • The card entry has been added to config/loom-cards.json with exact match criteria
  • Documentation in docs/loom-route.md has been updated to reflect the new route

Non-compliant requirements:

  • The performance claim of ≥ 500 tok/s prefill at 2.4k tokens has not been independently verified in the PR code diff
  • The TTFT claim of ≤ 5 s has not been independently verified in the PR code diff
  • The decode throughput claim of ≥ 49 tok/s has not been independently verified in the PR code diff

Requires further human verification:

  • The performance metrics (prefill tok/s, TTFT, decode tok/s) must be confirmed on the hardware
  • The accuracy metrics (greedy agreement, KLD) must be confirmed on the hardware

3158 - Partially compliant

Compliant requirements:

  • The route entry includes the gate information with performance and accuracy metrics
  • The gate information references the specific issue comment with performance and accuracy data

Non-compliant requirements:

  • The actual performance and accuracy measurements have not been verified in the PR code diff

Requires further human verification:

  • The performance and accuracy measurements must be confirmed on the hardware
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Card Match Criteria

The card entry for GLM-4.7-Flash-1bit now uses "match": "exact" and includes a detailed card specification. While this is good for ensuring exact matches, it's important to verify that the card's actual weights and configuration exactly match the published card's requirements as specified in the gate comment.

 "match": "exact",
 "arch": "deepseek2 (MLA + MoE)",
 "card": {
  "repo": "1bit-MONSTER/GLM-4.7-Flash-GGUF-loom",
  "revision": "a76d9b2f22ee1d996d46e6909065b153d06db164",
  "licence": "mit",
  "checkpoint": {
   "repo": "unsloth/GLM-4.7-Flash-GGUF",
   "revision": "0d32489ecb9db6d2a4fc93bd27ef01519f95474d",
   "file": "GLM-4.7-Flash-Q4_K_M.gguf",
   "sha256": "29837ed2c0fc5f51981adf8ac8083fcf80743c598381f13e9f06cbad0498b174"
  }
 }
},
Route Matching Criteria

The route entry for glm-4.7-flash-q4_k_m includes matching criteria based on GGUF SHA256, size, and model names. It's crucial to ensure that these criteria are sufficient to uniquely identify the correct card and prevent mismatches with other models that might have similar characteristics.

"match": {
 "gguf_sha256": "29837ed2c0fc5f51981adf8ac8083fcf80743c598381f13e9f06cbad0498b174",
 "gguf_size": 18312339808,
 "model": [
  "GLM-4.7-Flash-1bit",
  "GLM-4.7-Flash-Q4_K_M"
 ]
},

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) November 27, 2026 05:09
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Review (lane cl-inkling-npu). I read the diff and checked its identities against Hugging Face's API (metadata only, nothing downloaded). I didn't run anything. LGTM.

Checked:

  • The checkpoint: unsloth/GLM-4.7-Flash-GGUF@0d32489e's GLM-4.7-Flash-Q4_K_M.gguf is 18,312,339,808 B with LFS sha256 29837ed2…b174. That is exactly the route's gguf_size / gguf_sha256 and the card row's checkpoint, so the route can only match those bytes.
  • The card: 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom@a76d9b2f resolves, is public, and declares license: mit, matching the row's licence.
  • The card's contents: generated .loom programs plus LICENSE-programs.md. That's the same file set as the already-routed Qwen2.5-Coder-1.5B-Instruct-GGUF-loom card, gen/flash2.loom included, so nothing new is published beyond what the existing cards do. The generator fixes are named as living in the private loom-kernels kit, not shipped.
  • The route entry's shape matches the existing entries field for field: match, card by name, preset, device, args, gate.
  • The gate: loom 87.5 % vs fallback 62.5 % prompt agreement with the CPU arbiter. Loom's one split is on the known near-tie. KLD "cannot tell", as for every Loom arm. Speed came from 4 interleaved rounds whose ordering never inverted. That clears the same bar the merged routes cleared.

Not blocking:

  • The route lists the extra model names GLM-4.7-Flash-1bit / GLM-4.7-Flash-Q4_K_M. If the matcher accepts a name match alone, a different GGUF loaded under one of those names would be routed to this card. That's worth one line in the PR or docs confirming that the sha/size match is required in addition to the name, as I believe the existing routes already do.
  • Leaving the 18.3 GB card out of the 1bit OS payload, and calling it a release decision, is the right split.

🤖 Generated with Claude Code

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Withdrawing my non-blocking name-match nit; I checked the code instead of asking. match_loom_route (app/loom_route.h:245-263) requires every condition an entry names: one of the model names and the checkpoint (size first, then sha256). So a different GGUF served as GLM-4.7-Flash-1bit doesn't match this route. Nothing to change; LGTM stands.

🤖 Generated with Claude Code

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Review from lane cl-flm (I read the diff and the published card; I don't merge).

Consistent:

  • The route match (sha 29837ed2…, size 18,312,339,808) is the same pair as the card's model.json.lock on HF and the config/loom-cards.json checkpoint (unsloth@0d32489e).
  • card names the cards.json id. The preset and args match what the gate ran.

1. Private-IP question, for the orchestrator or owner before merge. The published card's program/llm.loom (3.6 MB) is the compiled expanded-MLA prefill: g_mla_xdeq_q8_0, g_mla_xexp and g_mla_xflash, with the k_pe and V-staging fixes. Its LICENSE-programs.md releases those programs under MIT. It also names the private kit path (1bit-MONSTER/loom-kernels, glm-deepseek2/glm-kit/CHANGES.md) and lists the three generator fixes kept there. HF posting is allowed, but the standing rule is that our Loom kernel work stays in the private loom-kernels repo and the public side keeps routing data. Shipping the compiled programs is how every card works, so that part may be intended. The CHANGES-level description of the private fixes in a public licence file is the part I'd want someone to confirm. This PR only points at the card, so this is a note on the card, not a defect in the diff.

2. Fallback accuracy. The gate row says the fallback (our HRX route) agrees with the CPU arbiter on 62.5 % of prompts and diverges on three. That reads as 8 prompts. If so, that is 3 of 8 off the arbiter on the route users get when the card is absent. Is that tracked anywhere? It would be worth an issue on its own, separate from this route.

3. Nit: in docs/loom-route.md the GLM row sits between the Qwen3.5-4B and Qwen3-8B rows. Moving it to the end, or grouping it by family, would read better.

No objection to the route data itself.

@bong-water-water-bong
bong-water-water-bong merged commit 459deca into main Nov 27, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-loom/route-glm47-flash branch November 27, 2026 05:24
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Retracting my LGTM (lane cl-inkling-npu), in light of #3526.

My review treated "the card publishes the same file set as the already-routed Qwen card" as settling the publication question, because docs/loom-route.md said cards are public by owner decision. #3526 withdraws that line: it was not an owner decision, and the standing rule is that Loom kernels and programs we write ourselves stay in the private kit and are not published as cards.

This card is not only generated output:

  • Its own LICENSE-programs.md at a76d9b2f says the programs carry three generator fixes and "the expanded (non-absorbed) MLA prefill path ported to this geometry — g_mla_xdeq_q8_0 …, g_mla_xexp …, g_mla_xflash …, including the k_pe staging and V-staging fixes".
  • That's our own kernel work, and the repo 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom is public on Hugging Face now. I checked that via the API's private: false.

So:

  1. This PR shouldn't merge on my review. It routes to a card whose publication is now an open owner question.
  2. The card's public state is for the owner or orchestrator to decide (keep, make private, or re-cut without our kernels). I haven't touched it.
  3. The same question applies to the other published -loom cards that carry our own programs. I only checked that the Qwen2.5-Coder card has the same file set; I didn't read its programs.

🤖 Generated with Claude Code

bong-water-water-bong added a commit that referenced this pull request Nov 27, 2026
…private now (#3535)

#3523 routed GLM-4.7-Flash Q4_K_M to 1bit-MONSTER/GLM-4.7-Flash-GGUF-loom.
On 2026-11-27 the owner made that repository private: it carries our own
Loom kernels from the private kit, and the 'cards are public' line was
withdrawn (#3526). A route entry whose card nobody can download would send
every GLM-4.7-Flash user to a failed fetch, so the entry, the exact card
row and the route-table line go. The gate rows on #3158 stand as
measurements; the model keeps the llama.cpp-HRX route.

Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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