Skip to content

loom: a deepseek2 checkpoint had no recorded port path - the private kit is the home and the public starter gap is documented (engine#3221) - #3496

Merged
bong-water-water-bong merged 1 commit into
mainfrom
fix/3221-mla-record
Nov 24, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
fix/3221-mla-record

Conversation

@bong-water-water-bong

@bong-water-water-bong bong-water-water-bong commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

loom: a deepseek2 checkpoint had no recorded port path - the private kit is the home and the public starter gap is documented (engine#3221)

engine#3221 asks for one of two outcomes: the public port toolchain (loom-skills' loom-port-llm
starter, reached through weaver port) learns deepseek2/MLA, or the private Loom kernel kit is
recorded as the permanent home and the starter gap documented. The second is the measured truth:
the starter's generator stops at its head-dim assert before any attention kernel is written
(starter/gen_llm.py:84 at loom-skills e4dd46e1: D in (64, 128, 256); GLM-4.7-Flash's
key_length is 576), and it has no MLA decomposition (0 matches for kv_lora / q_lora /
compressed_kv / kv_a_proj / deepseek across gen_llm.py, inspect_gguf.py and
inspect_safetensors.py). The tree said neither: the card map's GLM-4.7-Flash gap still claimed
"absorbed-MLA attention + MoE kernels in progress", and docs/hrx.md said a model without a card
gets programs written with loom-skills and weaver.

  • KNOWN-ISSUES.md: a new engine#3221 record in the 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 pattern: the decision (the private,
    out-of-tree Loom kernel kit is the permanent home for new-architecture Loom ports), the starter
    gap with file:line evidence, the measured kernel/route evidence from the issue thread (not
    re-run), the corrected scope (the affected class is deepseek2: GLM-4.7-Flash and
    DeepSeek-Coder-V2-Lite; the DeepSeek-R1-Distill-* GGUFs are qwen2 and unaffected), what a
    future public-starter port would need, and the docs corrected with it.
  • docs/hrx.md: the "How a model moves" coverage bullet now says the weaver/loom-skills route
    holds when the public starter can express the architecture, and points at the record and the
    probe for the case where it cannot.
  • docs/loom-route.md: the card map's none bullet points at the record for that case.
  • tools/loom_arch_probe.py: a DECIDED table (deepseek2) so the verdict says where the port
    path lives instead of leaving "not in the starter" to read as "wait for the starter"; a new
    --self-test arm pins that line.
  • tools/loom_cards.py + config/loom-cards.json: GLM-4.7-Flash's gap note (the same string in
    both; the JSON is the generator's build output) now says the public starter has no MLA path, the
    port path is the private kit, and a published card + gate row is what a route entry needs.

Evidence:

  • Control (origin/main 9d9e2db6): git show origin/main:KNOWN-ISSUES.md | grep -c 'engine#3221'
    -> 0; git show origin/main:tools/loom_arch_probe.py | grep -c DECIDED -> 0;
    git show origin/main:config/loom-cards.json | grep -c 'in progress (engine#3221)' -> 1;
    origin/main's probe --self-test -> "6 arms, 6 ok, 0 failed" (the new arm does not exist there).
    Mutation control: the branch probe with the DECIDED print removed -> "FAIL a decided architecture
    says where its port path lives", "7 arms, 6 ok, 1 failed", rc 1.
  • After: the same greps -> 1 (KNOWN-ISSUES mentions engine#3221), 2 (DECIDED in the probe), 0 (the
    stale "in progress" string); --self-test -> "7 arms, 7 ok, 0 failed"; the probe on the pinned
    GGUF (unsloth/GLM-4.7-Flash-GGUF@0d32489e, Q4_K_M, sha256 29837ed2...) -> rc 1 with "it would
    need: MLA: q_lora_rank, kv_lora_rank, ..." and "the port path recorded for this architecture is
    the private Loom kernel kit, not this starter (KNOWN-ISSUES.md, engine#3221)".
  • python3 tools/loom_cards.py --check -> "loom-cards check: 0 errors"; --self-test -> "21
    checks, 0 failed"; a script asserts config/loom-cards.json's GLM gap equals tools/loom_cards.py's
    NOTES string -> True; python3 tools/copyright.py --check -> ok.
  • scripts/pre-pr-checks.sh --tree-only --base origin/main -> "pre-pr-checks: all 15 check(s)
    green, 3 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only)". The 3 skipped are
    environment rows (submodules not initialised in this worktree; no gpu-kernels tree).
  • The measured line in the record (a package built from the kit registers ready on loom-serve
    0.3.0, after the chat-block terminal-marker fix the port needed, and answers known-answer prompts) is the
    2026-11-24 strixhalo smoke recorded on engine#3221
    (comment 7135545690); this PR
    does not re-run it.

No route entry, no card and no pin: config/loom-routes.json, config/loom.config, models/pins.json
and os/v3/puppy/loom-cards.pin are untouched; the card map's data note changes only.

Refs #3221

Assisted-by: DeepSeek Harness

…kit is the home and the public starter gap is documented (engine#3221)

engine#3221 asks for one of two outcomes: the public port toolchain (loom-skills' loom-port-llm
starter, reached through `weaver port`) learns deepseek2/MLA, or the private Loom kernel kit is
recorded as the permanent home and the starter gap documented. The second is the measured truth:
the starter's generator stops at its head-dim assert before any attention kernel is written
(`starter/gen_llm.py:84` at loom-skills `e4dd46e1`: `D in (64, 128, 256)`; GLM-4.7-Flash's
`key_length` is 576), and it has no MLA decomposition (0 matches for kv_lora / q_lora /
compressed_kv / kv_a_proj / deepseek across `gen_llm.py`, `inspect_gguf.py` and
`inspect_safetensors.py`). The tree said neither: the card map's GLM-4.7-Flash `gap` still claimed
"absorbed-MLA attention + MoE kernels in progress", and `docs/hrx.md` said a model without a card
gets programs written with loom-skills and weaver.

- `KNOWN-ISSUES.md`: a new engine#3221 record in the #3157 pattern: the decision (the private,
  out-of-tree Loom kernel kit is the permanent home for new-architecture Loom ports), the starter
  gap with file:line evidence, the measured kernel/route evidence from the issue thread (not
  re-run), the corrected scope (the affected class is deepseek2: GLM-4.7-Flash and
  DeepSeek-Coder-V2-Lite; the `DeepSeek-R1-Distill-*` GGUFs are qwen2 and unaffected), what a
  future public-starter port would need, and the docs corrected with it.
- `docs/hrx.md`: the "How a model moves" coverage bullet now says the weaver/loom-skills route
  holds when the public starter can express the architecture, and points at the record and the
  probe for the case where it cannot.
- `docs/loom-route.md`: the card map's `none` bullet points at the record for that case.
- `tools/loom_arch_probe.py`: a `DECIDED` table (deepseek2) so the verdict says where the port
  path lives instead of leaving "not in the starter" to read as "wait for the starter"; a new
  `--self-test` arm pins that line.
- `tools/loom_cards.py` + `config/loom-cards.json`: GLM-4.7-Flash's gap note (the same string in
  both; the JSON is the generator's build output) now says the public starter has no MLA path, the
  port path is the private kit, and a published card + gate row is what a route entry needs.

Evidence:
- Control (origin/main `9d9e2db6`): `git show origin/main:KNOWN-ISSUES.md | grep -c 'engine#3221'`
  -> 0; `git show origin/main:tools/loom_arch_probe.py | grep -c DECIDED` -> 0;
  `git show origin/main:config/loom-cards.json | grep -c 'in progress (engine#3221)'` -> 1;
  origin/main's probe `--self-test` -> "6 arms, 6 ok, 0 failed" (the new arm does not exist there).
  Mutation control: the branch probe with the DECIDED print removed -> "FAIL a decided architecture
  says where its port path lives", "7 arms, 6 ok, 1 failed", rc 1.
- After: the same greps -> 1 (KNOWN-ISSUES mentions engine#3221), 2 (DECIDED in the probe), 0 (the
  stale "in progress" string); `--self-test` -> "7 arms, 7 ok, 0 failed"; the probe on the pinned
  GGUF (unsloth/GLM-4.7-Flash-GGUF@0d32489e, Q4_K_M, sha256 `29837ed2...`) -> rc 1 with "it would
  need: MLA: q_lora_rank, kv_lora_rank, ..." and "the port path recorded for this architecture is
  the private Loom kernel kit, not this starter (KNOWN-ISSUES.md, engine#3221)".
- `python3 tools/loom_cards.py --check` -> "loom-cards check: 0 errors"; `--self-test` -> "21
  checks, 0 failed"; a script asserts config/loom-cards.json's GLM gap equals tools/loom_cards.py's
  NOTES string -> True; `python3 tools/copyright.py --check` -> ok.
- `scripts/pre-pr-checks.sh --tree-only --base origin/main` -> "pre-pr-checks: all 15 check(s)
  green, 3 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only)". The 3 skipped are
  environment rows (submodules not initialised in this worktree; no gpu-kernels tree).
- The measured line in the record (a package built from the kit registers `ready` on loom-serve
  0.3.0, after the chat-block terminal-marker fix the port needed, and answers known-answer prompts) is the
  2026-11-24 strixhalo smoke recorded on engine#3221
  (comment [7135545690](#3221 (comment))); this PR
  does not re-run it.

No route entry, no card and no pin: config/loom-routes.json, config/loom.config, models/pins.json
and os/v3/puppy/loom-cards.pin are untouched; the card map's data note changes only.

Refs #3221

Assisted-by: DeepSeek Harness
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit ce550aa)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3221 - Partially compliant

Compliant requirements:

  • The decision that the private Loom kernel kit is the permanent home for new-architecture Loom ports is recorded.
  • The starter gap is documented in KNOWN-ISSUES.md.
  • The documentation in docs/hrx.md, docs/loom-route.md, and tools/loom_arch_probe.py is updated to reflect the decision.
  • The card map in tools/loom_cards.py and config/loom-cards.json is updated to indicate the private kit is the port path.

Non-compliant requirements:

  • The public port toolchain (loom-skills' loom-port-llm starter) does not yet support deepseek2/MLA architectures.

Requires further human verification:

  • The effectiveness of the private Loom kernel kit for deepseek2/MLA models needs to be verified through actual porting and testing.
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Documentation Clarity

The loom_arch_probe.py script now includes a DECIDED dictionary to indicate that deepseek2 architectures are not supported by the public starter and must use the private Loom kernel kit. This is a good documentation improvement, but the script's behavior is unchanged in terms of functionality, only the messaging has been enhanced to clarify the decision.

# Architectures whose port path is decided rather than pending: printed so "not in the starter" is not read as
# "wait for the starter". engine#3221's record is KNOWN-ISSUES.md.
DECIDED = {
    "deepseek2": "the port path recorded for this architecture is the private Loom kernel kit, not this starter "
                 "(KNOWN-ISSUES.md, engine#3221)",
}
Documentation Update

The docs/hrx.md file has been updated to clarify that models with architectures the public starter cannot express are ported from the private Loom kernel kit instead. This improves clarity for users and developers.

[weaver](https://github.com/loom-fun/weaver) — when the public starter can express the architecture. A new
architecture it cannot (deepseek2/MLA is the measured case) is ported from the private Loom kernel kit
instead; the decision and the starter gap are recorded in [KNOWN-ISSUES.md](../KNOWN-ISSUES.md)
(engine#3221), and `tools/loom_arch_probe.py` answers the same question from a GGUF header before a port is
attempted.
Route Documentation

The docs/loom-route.md file has been updated to clarify that for architectures the public port starter cannot express, the port path is the private Loom kernel kit. This ensures that the documentation accurately reflects the current support status.

- `none`: no card; `arch`, `nearest` and `gap` say what a port needs (engine#3156) — and, for an
  architecture the public port starter cannot express (deepseek2/MLA today), that the port path is the private
  Loom kernel kit ([KNOWN-ISSUES.md](../KNOWN-ISSUES.md), engine#3221);
✅ Resolved findings

config/loom-cards.json:199

Gap Description Update

The gap field in config/loom-cards.json for GLM-4.7-Flash-1bit has been updated to clearly state that the port path is the private Loom kernel kit. This provides clear guidance to users about the current support status.

tools/loom_cards.py:71-72

Card Map Update

The card map for GLM-4.7-Flash-1bit has been updated to reflect that the port path is the private Loom kernel kit instead of "absorbed-MLA attention + MoE kernels in progress". This is a correct update to reflect the current state of support.

KNOWN-ISSUES.md:118-196

Issue Documentation

The KNOWN-ISSUES.md file has been updated with a detailed explanation of why the public starter cannot support deepseek2 architectures and that the private Loom kernel kit is the permanent home for such ports. This is a comprehensive documentation update that aligns with the decision.

@bong-water-water-bong
bong-water-water-bong merged commit 50917a7 into main Nov 24, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix/3221-mla-record branch November 24, 2026 15:27
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Note on the automated reviewer guide's one "non-compliant" item — "the public port toolchain does not yet learn deepseek2/MLA (this is a documentation-only change, not a code change)": that is the issue's accepted second outcome, not a gap in this PR. #3221's own Done when allows "a recorded decision that the private kit, not the public starter, is the permanent home for new-arch ports"; the first outcome is refused by the starter itself (starter/gen_llm.py:84 D in (64, 128, 256) before any attention kernel is written, and no MLA decomposition to replace it — both cited in the record). The probe's new --self-test arm ("a decided architecture says where its port path lives") is the regression test for the record's pointer, and its control (same tool with that print removed) fails as expected.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit ce550aa

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