Repository navigation
loom_arch_probe: glm is a chat call format, not an architecture (engine#3221, #3238 review) - #3266
bong-water-water-bong wants to merge 6 commits into
Conversation
…re before porting it (engine#3221) A `weaver port` of GLM-4.7-Flash ran 1056 s, retried three times and ended with "the agent finished without a WEAVER_RESULT line". The cause was settled in seconds once the metadata was read: `general.architecture = deepseek2`, an MLA model, and the starter's `gen_llm.py` has no MLA path. The attempt could not have succeeded and nothing said so before it started. `tools/loom_arch_probe.py` reads the GGUF header (no download, no device, no weaver), compares `general.architecture` against the starter's supported list, and on a miss prints what a starter entry would need plus the `<arch>.*` keys the file already carries - so the answer is 'unsupported, and here are the parameters', not 'unsupported'. Exit 0 supported / 1 unsupported / 2 cannot tell, the last two distinct because an unreadable file is not a verdict about the model. Measured on this box: GLM-4.7-Flash -> rc 1, deepseek2, 26 `deepseek2.*` keys named; LFM3-1.7B -> rc 0 in the supported set. Self-test: 5 arms including 'not a GGUF' and 'no architecture key' as cannot-tell.
…not from a snapshot (engine#3221 review) The constant is a hand-maintained claim about another tree's capabilities, and a snapshot that drifts re-creates this tool's original failure in the opposite direction: a supported architecture reported unsupported. --starter DIR reads the names out of the starter's own sources and prints which list was used, so the answer says where it came from. Without --starter the built-in list is used and the output names it as such; an unreadable starter is rc 2 (cannot tell), not a pass. Measured: --starter <loom-skills starter> gives gemma3, gemma4, glm, llama, phi3, qwen2, qwen3, qwen35 - the same eight, now derived. Self-test still 5 arms, 0 failed.
…urfaces additions (engine#3221 review)
The first version filtered every name it read through SUPPORTED, so the 'derived' set was SUPPORTED ∩ starter: it could
notice a family the starter stopped mentioning and could never notice one it started mentioning - the half of the
staleness risk this tool's own docstring names ('a supported architecture reported unsupported'). The source label made
it worse by claiming more than the computation did.
Now the derivation returns raw mentions and the caller states what it did: 'snapshot confirmed against <dir>: N of the 8
names the snapshot claims are mentioned there', plus 'the starter also mentions M name(s) the snapshot does not claim'
- the addition signal, without pretending the prober knows those are architectures (the starter's architecture
knowledge lives in code paths and hf_names/*.json, not one table).
Measured with the reviewer's fixture: a starter containing mamba and glm yields supported ['glm'] and mamba in the
unrecognised list.
…t lacks is cannot-tell, not a no (engine#3221 review) --starter exists to catch a stale snapshot, and for exactly that case the tool printed two contradictory lines: 'X is NOT in the port starter … cannot succeed' followed by 'X may be an architecture, the snapshot is stale'. The reader takes the first. Now the verdict is replaced, not prefixed: when the GGUF's own architecture is among the names the starter mentions and the snapshot does not claim, the answer is rc 2 - cannot tell, the snapshot may be stale - with the 'what a starter entry would need' line kept, and the now-redundant trailing mention list suppressed on that path. Verified with the reviewer's fixture: a starter mentioning mamba+glm, a GGUF whose arch is mamba -> rc 2 and one coherent message. 'f16' and other non-architectures in the mention list stay harmless because only the GGUF's own architecture is ever compared. Self-test 5/5.
…gine#3221, #3238 review) The review of #3238 found this and it went unanswered for two hours, so this is the fix as a follow-up onto that branch rather than a third report. In the starter, `glm` appears only as a call format -- build.py: CALL_FORMATS = {"none": 0, "hermes": 1, "qwen_xml": 2, "glm": 3, "pythonic": 4, "json": 5} and chat_probe.py: chat["call_format"] = "glm". The architecture names live in inspect_gguf.py and are seven. With `glm` in SUPPORTED the probe answered rc 0 for a GGUF whose general.architecture is "glm" -- a green light for the 1056-second doomed weaver port the tool exists to prevent -- and --starter could not catch it, because the name was in the tuple rather than in the starter's "extra mentions". One arm added that fails on the previous revision and passes here: a starter call format name is not an architecture. Self-test 6/6.
…ng (copyright gate) Not my code, but the gate is red on this branch without it: `copyright.py --check` answers "copyright + SPDX present but the licence block is not (paste the 16-line form)" for the file #3238 adds. Fixing it here so this branch can pass rather than reporting a third time; #3238 should take it back upstream of this follow-up.
|
Draft again, on the cap: opening it made the repo 4 non-draft (3265, 3264, 3238, this), and the rule is three. A draft still builds, so the fix keeps its CI while it waits for a slot — and since this is a follow-up onto #3238's branch, the natural slot is either #3238 taking these two commits back or one of the other three merging. Nothing else changes: the two commits are the |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT at 1. The starter's architecture tuple is sixteen names, and it is one greppable line. So 2. What that costs, measured on a real file here (18,556,689,568 B, Both sentences are false about the starter, and 3. Minimal fix, your call which half. Either take the nine names from the tuple (one line, and say in the docstring that a second copy drifts), or — cheaper and strictly honest — stop asserting it about the starter: Confirmed at this head: |
|
The The starter is on this box, and it publishes the authoritative set: Set arithmetic against this PR's So:
|
|
You are right, and the same read turns up more than The starter's architecture gate is if arch not in ("llama", "mistral", "granite", "qwen2", "qwen3", "qwen35", "qwen3next", "gemma3", "gemma4", "phi3",
"qwen3moe", "qwen35moe", "gpt-oss", "spark2_5", "mellum", "laguna"):and
So the fix is one edit rather than two: copy I have said the same on #3238 — including that my own READY of it was wrong, and why: I verified the eight names by grepping the starter for those quoted strings, which proves they appear, not that they are architectures. Your draft is the check I should have run. |
|
VERDICT at 8abe733: READY — The licence block is boilerplate but not noise — a tool in this tree without the block is a licence question at release time, which is exactly the week a stick gets cut. |
|
#3238 is blocked by one mechanical red, and here is the exact fix — everything else on the PR is green ( The file has the two-line header ( and — is the whole distance to Two things not to bundle into that commit, so the red stays a one-line story: the arch tuple (mine, in #3266 — nine archs the starter knows are still refused, |
|
CI status at this head, for the merge loop: green except |
|
Both reviewers now say the same thing about the tuple, and the release clock decides the rest: this rides c35. For the record of what is settled: Nine of those are refused by the current default ( Why it is not tonight's work, stated plainly: this PR bases on So: keep this as the carrier for the tuple, land it in c35 (undraft once #3238 is in and a slot frees), and if the release lane wants the tuple in c34 it should be a five-line commit on |
|
VERDICT at 8abe733: CHANGES — the change is still needed and is now unlandable as branched, and both halves are measurable. Still needed: SUPPORTED = ("llama", "qwen2", "qwen3", "qwen35", "gemma3", "gemma4", "phi3", "glm")so Unlandable as branched: The fix is a rebase to the delta only: take main's file and re-apply just the That is a ~10-line patch on top of main instead of a 236-line file replacement, and it will merge tonight if it goes in before 23:00. I will re-verdict by sha ( |
|
Superseded by a clean re-apply on current main (#3266's base was #3238's branch, so once #3238 merged as a squash its diff against main re-added the whole tool file instead of the two lines). New branch |
Follow-up onto
cl-hrxmem/3221-arch-probe(the branch of #3238), not onto main, so it can land with that PR rather than competing with it. My review of #3238 posted two items; one was fixed by its author, and this one went unanswered for two hours, so per the fleet rule for an unanswered objection on a stale branch, this is the fix rather than a third report.1.
glmis a chat call format, not an architecture — the probe gave it a green lightSUPPORTEDlisted seven architectures plusglm. In the starter,glmappears only as a call format:The architecture names live in
inspect_gguf.pyand are seven: llama, qwen2, qwen3, qwen35, gemma3, gemma4, phi3. So a GGUF withgeneral.architecture == "glm"was answered rc 0 = supported, i.e. a green light for exactly the doomedweaver portthis tool exists to prevent — and--startercould not catch it, because the name was in the tuple rather than in the starter's "extra mentions".One arm added, which fails on
72ba08adand passes here:2. The file was also missing the licence block, so the copyright gate is red on this branch
python3 tools/copyright.py --checkon72ba08ad:Fixed here (
8abe7335f) so this branch can pass at all. I would rather #3238 took that commit back to its own head than ship it in a follow-up — it is that PR's file, not mine.Not touched
The
--starterscan that reports "1182 name(s) the snapshot does not claim" from free-form identifiers — still true, still only a readability problem, and its author'scannot-tellchange already suppresses it when the answer is rc 2. Theglmremoval does make one of those 1182 (glm) moot, which is a small bonus.Verification: self-test 6/6,
copyright.py --checkrc 0 on this head, no device, no build.