Repository navigation
census-watch: a Q4NX pack for a family with no NPU route is an alert - #649
Conversation
The FastFlowLM watch treats a repo as served when `registry/architectures.json` maps its family to *any* backend (engine #588). FastFlowLM publishes NPU packs, so the ten 2026-10 `*-NPU2` arrivals whose families we map for HRX only - `qwen3_5_text` -> qwen35, `gemma4_text` -> gemma4, `dflash` - were printed as `+ FLM ... npu route: no` and never alerted: the D3 family (7 repos), Nemotron-3.5-Bolt-E4B and its DFlash drafter. Only the two families with no mapping at all (LFM3-1.7B, MiniCPM-V-4.7-35B-A3B) alerted, and those two were then invisible for another reason: the alert job skips while *any* census-watch issue is open, and #619 has been open since 10-27. The watcher now: - has `npu_gap(repo)`: the repo publishes a `*.q4nx` pack, its family IS mapped, and no backend of that mapping is `npu`. `unmapped()` is `class_unmapped() or npu_gap()`, so both kinds alert, and `flm_line()` marks the new one `!! NPU FLM` (a class that is not in the registry at all stays `!! NEW FLM`); - summarises the two reasons separately, because the fixes differ: "map the class" versus "serve the family on the NPU route" (or record why it will not be). The second line groups by family: `qwen35 (12 pack(s)); gemma3 (7); lfm2 (6); gemma4 (4); ...`; - leaves a derivative drop (no config) and a repo with no `*.q4nx` alone, as before. Measured on today's org listing (`--full`, 42 repos): exit 1 instead of 0 for the NPU families, `!! NPU FLM` on the 9 packs that were silent (D3-Lite/Nano/Mini/Turbo/Ultra/ Flash/Edge, Nemotron-3.5-Bolt-E4B, Nemotron-3.5-Bolt-E4B-DFlash), and the 2 `!! NEW FLM` pack (LFM3-1.7B, MiniCPM-V-4.7-35B-A3B) unchanged. 37 of the 42 repos are now NPU gaps across 11 families - that is the point: it is the punch list of families FastFlowLM ships NPU packs for and our NPU route does not serve, not a per-repo bug list. The workflow stops swallowing a breach behind an open issue: the alert lines are digested into a marker (`sha256` of the base64'd lines) and the job either does nothing (that exact breach is already recorded), comments the new breach onto the open issue, or opens the first one. With the old "skip if any issue is open" an arrival like LFM3-1.7B-NPU2 (10-28) was reported in CI every day and written down nowhere. Tests (`tests/census_watch_test.py`, ctest `census_watch`, no network): the fixtures' D3-Mini row is the new case - mapped, qwen35, `model.q4nx`, no NPU backend - and is pinned as `npu_gap`/`unmapped`, `!! NPU FLM`, alerting; a family the NPU route serves (Qwen3-8B, Llama-3.2-1B) is pinned as not a gap; a derivative drop and a repo with no q4nx file are pinned as not gaps; the delta check now asserts both that a moved NPU-gap pack alerts and that a moved NPU-served family stays green. Follow-ups not in this PR: `tools/check_q4nx_dir.py` calls any int8 tensor whose last dimension is not a chunk kind an error, which rejects Nemotron-3.5-Bolt-E4B-NPU2's I8 embeddings (`model.embed_tokens.weight` 2560, `model.per_layer_token_embd.weight` 10752) even though the forward engine supports quantized I8 embeddings for Gemma4-style packs; and there is no way yet to record "this family will not be served on the NPU", so the 11 families keep the daily watch red until one is added. (cherry picked from commit 4caaa8c)
4caaa8c to
f832729
Compare
The NPU route depends on two upstreams it does not vendor, and neither was watched: `ROCm/FLM_Q4NX_Converter` - the per-architecture gguf Q4_0/Q4_1 -> Q4NX converter that scripts/repack_gguf.py runs, so a new configs/*.json is a family we can suddenly pack - and `vllm-project/semantic-router`, the source of the Decision 3.0 (d3) weights that FastFlowLM v1.0.11 serves through /v1/systemone (our side of it is engine #653). They are pinned by commit in registry/support_pins.json rather than watched as a delta, because census-watch runs in CI with no state ("the watcher's state file ... is not carried between CI runs", census-watch.yml): "the head differs from the reviewed commit" is a stable fact that alerts once, while "a new commit appeared" would be true on every run and would either go unnoticed or turn the job red for ever. Clearing an alert is the reviewed edit - bump the commit and `reviewed` - so the file records what was looked at and when. The d3 half is the weights, not the code: FastFlowLM packs vllm-sr/d3-* as FastFlowLM/D3-*-NPU2 (the packs' base_model tags say so), so the watch lists the 16 d3 repos that exist and reports any d3* repo under the vllm-sr org that is not on the list - a pack for it is on the way. Non-d3 repos in that org (mmbert, Vela, Decision-1/2.0, elephant) are not this watch's business and do not alert. Wiring: `watch_support()` runs last, after the FLM watch; `exit_code()` takes its signal as a fourth OR (and keeps its 2-on-failure rule); the workflow's issue grep now picks up `SUPPORT MOVED` and the support_pins line, and the issue body says how to clear one. Tests (tests/census_watch_test.py, ctest census_watch, no network): an unchanged pin green, a moved converter commit alerting with both commits named, a new d3 repo alerting, a non-d3 repo in the org staying quiet, a failed fetch reported as a failure rather than a quiet day, the exit-code OR table, and the committed registry/support_pins.json parsing with 40-character commits, a `reviewed` date and d3 entries matching the watched prefix. All checks pass; YAML and both edited workflow steps pass `bash -n`; the create path was driven with a stubbed gh. Reviewed snapshots: converter d1d5232d0b82 (2026-08-27), semantic-router 632f0874beaa (2026-10-30), d3 repos as listed. Touches the same file as #649 (census watch) at different regions - merge that one first to keep the rebase boring. (cherry picked from commit e6b867c)
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY (posted as a comment: GitHub refuses --request-changes/--approve on a PR owned by the same account).
Tests: python3 tests/census_watch_test.py at f832729 -> all checks passed, 155 checks, exit 0. The new ones are the ones that matter and they exercise both directions: a Q4NX pack for an HRX-only family is an NPU gap, a family the NPU route serves is not a gap, a repo with no q4nx file is not an NPU gap, a moved NPU-gap pack alerts (it is the 2026-10 D3 case), a moved family the NPU route serves stays green.
Workflow: the file still parses (jobs watch, alert) and the filing step is bash -n clean. On the marker logic specifically: marker is a sha256 over the same base64 blob that goes in the issue, the grep -cF "$marker" || true plus ${seen:-0} handles grep's exit 1 and empty output, and --jq '.[0].number // ""' gives "" when nothing is open, so the three paths (no issue / same breach / new breach) are distinct. I did not exercise the issue path end to end because doing so would file or comment on the real repository; that is the part a human should watch on the first red run.
Two notes, neither blocking:
unmapped()now means "unmapped class or NPU gap", andreport_flmkeeps the old sentence in theunmapped_reposline then adds the per-family NPU line, so a repo that is both would be counted in both lines. Thegapsdict is built fromnpu_gapandunmapped_reposfromclass_unmapped, so they are disjoint — fine as written; it is worth keeping that pairing if the predicates are edited later.- The
Q4NX (NPU)grep added to the alert lines matches the summary line, so an NPU gap that only exists as a summary (no repo line in the delta) still reaches the issue body. Good.
For the record on the intent: the 2026-10-27 failure mode (an open issue swallowing later breaches) is real and the digest marker is the right shape of fix — same breach, no-op; changed breach, one comment on the open issue.
#654) The NPU route depends on two upstreams it does not vendor, and neither was watched: `ROCm/FLM_Q4NX_Converter` - the per-architecture gguf Q4_0/Q4_1 -> Q4NX converter that scripts/repack_gguf.py runs, so a new configs/*.json is a family we can suddenly pack - and `vllm-project/semantic-router`, the source of the Decision 3.0 (d3) weights that FastFlowLM v1.0.11 serves through /v1/systemone (our side of it is engine #653). They are pinned by commit in registry/support_pins.json rather than watched as a delta, because census-watch runs in CI with no state ("the watcher's state file ... is not carried between CI runs", census-watch.yml): "the head differs from the reviewed commit" is a stable fact that alerts once, while "a new commit appeared" would be true on every run and would either go unnoticed or turn the job red for ever. Clearing an alert is the reviewed edit - bump the commit and `reviewed` - so the file records what was looked at and when. The d3 half is the weights, not the code: FastFlowLM packs vllm-sr/d3-* as FastFlowLM/D3-*-NPU2 (the packs' base_model tags say so), so the watch lists the 16 d3 repos that exist and reports any d3* repo under the vllm-sr org that is not on the list - a pack for it is on the way. Non-d3 repos in that org (mmbert, Vela, Decision-1/2.0, elephant) are not this watch's business and do not alert. Wiring: `watch_support()` runs last, after the FLM watch; `exit_code()` takes its signal as a fourth OR (and keeps its 2-on-failure rule); the workflow's issue grep now picks up `SUPPORT MOVED` and the support_pins line, and the issue body says how to clear one. Tests (tests/census_watch_test.py, ctest census_watch, no network): an unchanged pin green, a moved converter commit alerting with both commits named, a new d3 repo alerting, a non-d3 repo in the org staying quiet, a failed fetch reported as a failure rather than a quiet day, the exit-code OR table, and the committed registry/support_pins.json parsing with 40-character commits, a `reviewed` date and d3 entries matching the watched prefix. All checks pass; YAML and both edited workflow steps pass `bash -n`; the create path was driven with a stubbed gh. Reviewed snapshots: converter d1d5232d0b82 (2026-08-27), semantic-router 632f0874beaa (2026-10-30), d3 repos as listed. Touches the same file as #649 (census watch) at different regions - merge that one first to keep the rebase boring. (cherry picked from commit e6b867c) Co-authored-by: bong-water-water-bong <[email protected]>
…oth leave a trace The daily census watch has been red every day since at least 2026-10-16 and nobody read it (runs 38878641214 through 41044556680, `gh run list --workflow census-watch.yml`). Two separate defects made that possible, and neither is in the watcher itself: 1. The watch step exited with the watcher's code, so an uncovered class - the *alert*, the normal outcome on a day when HF publishes a new architecture - turned the whole run red. A red run therefore meant nothing: 10-16..10-26 red runs each filed their issue (#427, #447, #522, ...), and once #619 stayed open from 10-27 the alert job skipped while the run went on being red. Red = "the watch is broken" had stopped being true. 2. The alert job ran only on `needs.watch.outputs.alert == 'true'`, an output the step never sets when it fails early. A checkout/setup/network failure, or the watcher's own exit 2 ("a watch did not run"), produced a red run with no issue, no comment, no annotation - the one failure mode this workflow exists to prevent. Now: - The watch step separates the three outcomes of the watcher's own contract (0 quiet, 1 the alert, 2 did not run). rc=0 and rc=1 exit 0; the alert is written to `$GITHUB_STEP_SUMMARY` so it is on the run page, and the issue carries the record. Any other rc sets a `failure` output (rc + log tail), writes "the census watch did not run" to the summary, prints `::error::`, and exits with that rc so the run is red. - The alert job runs on `always() && needs.watch.result != 'cancelled'` and files either kind: the coverage breach (as before, marker-deduped so a changed breach is one comment on the open issue) or a "the daily census watch did not run" issue marked by the failure text, so the same breakage does not reopen daily and a different one does. Both go through one `post()` helper - one issue at a time, append when the content changed. Rehearsed locally with a stub `scripts/census-watch.sh` and a stub `gh`, because this repo has no workflow test harness (YAML parse + `bash -n` on both steps is all CI would do too): rc=0 -> exit 0, alert=false, summary "census-watch: quiet" rc=1 -> exit 0, alert=true, summary "Census alert (the watcher ran; this is a finding, not a failure)" rc=2 -> exit 2, alert=false, failure=rc=2|<log>, summary "did not run", ::error annotation alert, no issue open -> issue created alert, open issue already has marker -> no-op failure, no issue open -> "did not run" issue created, log block rendered failure, same failure already filed -> no-op failure, different failure while open-> one comment on the open issue Stacked on #649 (and #654 on top of it): this reuses #649's marker-and-append `post()` and keeps one issue at a time. Merge order: #649, #654, then this. Not changed by #649/#654 as of today: both are unmerged, so the scheduled runs still execute `main`'s workflow (headSha c93f9e2) - the daily red runs and the silent skips above are main's behaviour, and #649 alone would only have fixed the "changed breach gets recorded" half. (cherry picked from commit 5fe211c)
…oth leave a trace (#664) The daily census watch has been red every day since at least 2026-10-16 and nobody read it (runs 38878641214 through 41044556680, `gh run list --workflow census-watch.yml`). Two separate defects made that possible, and neither is in the watcher itself: 1. The watch step exited with the watcher's code, so an uncovered class - the *alert*, the normal outcome on a day when HF publishes a new architecture - turned the whole run red. A red run therefore meant nothing: 10-16..10-26 red runs each filed their issue (#427, #447, #522, ...), and once #619 stayed open from 10-27 the alert job skipped while the run went on being red. Red = "the watch is broken" had stopped being true. 2. The alert job ran only on `needs.watch.outputs.alert == 'true'`, an output the step never sets when it fails early. A checkout/setup/network failure, or the watcher's own exit 2 ("a watch did not run"), produced a red run with no issue, no comment, no annotation - the one failure mode this workflow exists to prevent. Now: - The watch step separates the three outcomes of the watcher's own contract (0 quiet, 1 the alert, 2 did not run). rc=0 and rc=1 exit 0; the alert is written to `$GITHUB_STEP_SUMMARY` so it is on the run page, and the issue carries the record. Any other rc sets a `failure` output (rc + log tail), writes "the census watch did not run" to the summary, prints `::error::`, and exits with that rc so the run is red. - The alert job runs on `always() && needs.watch.result != 'cancelled'` and files either kind: the coverage breach (as before, marker-deduped so a changed breach is one comment on the open issue) or a "the daily census watch did not run" issue marked by the failure text, so the same breakage does not reopen daily and a different one does. Both go through one `post()` helper - one issue at a time, append when the content changed. Rehearsed locally with a stub `scripts/census-watch.sh` and a stub `gh`, because this repo has no workflow test harness (YAML parse + `bash -n` on both steps is all CI would do too): rc=0 -> exit 0, alert=false, summary "census-watch: quiet" rc=1 -> exit 0, alert=true, summary "Census alert (the watcher ran; this is a finding, not a failure)" rc=2 -> exit 2, alert=false, failure=rc=2|<log>, summary "did not run", ::error annotation alert, no issue open -> issue created alert, open issue already has marker -> no-op failure, no issue open -> "did not run" issue created, log block rendered failure, same failure already filed -> no-op failure, different failure while open-> one comment on the open issue Stacked on #649 (and #654 on top of it): this reuses #649's marker-and-append `post()` and keeps one issue at a time. Merge order: #649, #654, then this. Not changed by #649/#654 as of today: both are unmerged, so the scheduled runs still execute `main`'s workflow (headSha c93f9e2) - the daily red runs and the silent skips above are main's behaviour, and #649 alone would only have fixed the "changed breach gets recorded" half. (cherry picked from commit 5fe211c) Co-authored-by: bong-water-water-bong <[email protected]>
The FastFlowLM watch calls a repo served when
registry/architectures.jsonmaps its family to any backend (engine #588). FastFlowLM publishes NPU packs, so a family we map for HRX only reads as covered while the NPU route cannot load the pack at all.Ten of the eleven
*-NPU2repos that arrived since 2026-10-19 are that case:model_type/classD3-Lite,D3-Nano,D3-Mini,D3-Turbo,D3-Ultra,D3-Flash,D3-Edgeqwen3_5_text(Qwen3.5 GDN)qwen35→ hrx+ FLM … npu route: no, silentNemotron-3.5-Bolt-E4Bgemma4_textgemma4→ hrxNemotron-3.5-Bolt-E4B-DFlashdflash(5-layer drafter)dflash→ hrxLFM3-1.7BLfm3ForCausalLM!! NEW FLM(alert)MiniCPM-V-4.7-35B-A3BMiniCPMV4_7…!! NEW FLM(alert)So 9 of the 11 never alerted. And the 2 that did were recorded nowhere: the alert job skips while any
census-watchissue is open, and #619 has been open since 10-27 — soLFM3-1.7B-NPU2(10-28) andMiniCPM-V-4.7-35B-A3B-NPU2(10-30) turned CI red every day and wrote nothing down.What this changes
tools/census_watch.pynpu_gap(repo): publishes a*.q4nxpack and its family is mapped and no backend of that mapping isnpu.unmapped()becomesclass_unmapped() or npu_gap(), so both kinds alert.flm_line()marks the new kind!! NPU FLM(a class absent from the registry stays!! NEW FLM).*.q4nxstay quiet, as before..github/workflows/census-watch.yml— no more swallowing: the alert lines are digested into asha256marker, and the job either (a) does nothing when that exact breach is already on the open issue or in its comments, (b) comments the new breach onto the open issue, or (c) opens the first one. The grep that feeds the issue now includesNPU FLMand theQ4NX (NPU)summary line.Measured on today's org listing (
--full, 42 repos, live API)37 packs across 11 families is the intended shape: it is the punch list of families FastFlowLM ships NPU packs for and our NPU route does not serve, not a per-repo bug list. The daily job therefore stays red while those exist — the same "open alert until fixed" model #619 already follows, now with the list kept current.
Tests
tests/census_watch_test.py(ctestcensus_watch, no network; fixturestests/fixtures/fflm/): the D3-Mini row is the new case — mapped,qwen35,model.q4nx, no NPU backend — pinned asnpu_gap && unmapped,!! NPU FLM, alerting; Qwen3-8B and Llama-3.2-1B pinned as not gaps; a derivative drop and a repo without aq4nxfile pinned as not gaps; the delta check asserts both that a moved NPU-gap pack alerts and that a moved NPU-served family stays green.all checks passed. YAML parses and both edited workflow steps passbash -n; the three dedupe paths (same breach / new breach / no issue) were driven with a stubbedgh.Follow-ups, deliberately not here
tools/check_q4nx_dir.pyrejects any int8 tensor whose last dimension is not a chunk kind — that rejectsNemotron-3.5-Bolt-E4B-NPU2, whose I8 embeddings (model.embed_tokens.weight, last dim 2560;model.per_layer_token_embd.weight, 10752) are supported by the forward engine for Gemma4-style packs (q4nx_forward.h: "Some models store the embedding QUANTIZED (Gemma4-E2B/E4B: dtype I8)").