Repository navigation
census-watch: pin the Q4NX converter and the d3 source, and watch both - #654
Conversation
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)
4caaa8c to
f832729
Compare
e6b867c to
8bd40ba
Compare
|
Stacked on #649 ( |
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), but it is stacked on #649 and cannot merge before it.
Tests: python3 tests/census_watch_test.py at 8bd40ba -> all checks passed, 168 checks (the 155 of #649 plus the 13 pin-watch ones), exit 0.
The registry data is right, checked against the two upstreams and HF today:
$ gh api repos/ROCm/FLM_Q4NX_Converter/commits --jq '.[0].sha'
d1d5232d0b82871bf5265e990fa2d26cdad22327 # == the pinned commit, so no alert from it
$ gh api repos/vllm-project/semantic-router/commits --jq '.[0].sha'
6aeaf5d415532771ec77d26c25ebe0a7b64da0ed # pin is 632f0874beaa...
$ gh api .../commits/6aeaf5d4 --jq .commit.committer.date -> 2026-10-30T11:18:41Z
$ gh api .../commits/632f0874 --jq .commit.committer.date -> 2026-10-30T10:57:25Z
$ curl -s 'https://huggingface.co/api/models?author=vllm-sr&limit=1000' | <filter d3*>
16 d3 repos; in registry but not on HF: [] on HF but not in registry: []
So d3_sources.known is exactly the 16 d3* repos the org has, no extras and none missing, and the converter pin is current.
One design consequence to know about before it merges: the semantic-router pin was its HEAD when this was written and the upstream moved 21 minutes later, so the first daily run after merge will alert !! SUPPORT MOVED vllm-project/semantic-router. That is the watcher working, but a repo that commits every few minutes means the alert will be red most days and someone has to read a change and bump reviewed to clear it. If that is not the intent, pin a tag for that upstream rather than main's tip; if it is, say so in the why field. (The converter pin is a quiet upstream and will stay green.)
The alert-line grep now includes SUPPORT MOVED and support_pins, and the issue body explains the fix (bump commit + reviewed, or add the d3 repo), which is the right place for it.
6c83ff1
into
census/npu-pack-gap
…649) * census-watch: a Q4NX pack for a family with no NPU route is an alert 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) * census-watch: pin the Q4NX converter and the d3 source, and watch both (#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]> --------- 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]>
TUPSTREAM item 4. The NPU route depends on two upstreams it does not vendor and nothing watched either:
ROCm/FLM_Q4NX_Converterscripts/repack_gguf.pyruns (ONEBIT_Q4NX_CONVERTER);configs/*.jsontoday: gemma3, gemma4, gpt-oss, lfm2, llama, nanbeige, phi4, qwen2, qwen2vl, qwen3, qwen3.5_{0.8b,2b,4b,9b,a3b,omni}, qwen3vl. A new config is a family we can suddenly pack.vllm-project/semantic-router/v1/systemonewith the upstream API (#653 is our side)Why pins, not deltas
census-watch.ymlruns in CI with no state ("the watcher's state file … is not carried between CI runs"). A delta watch ("a new commit appeared") is therefore true on every run — it would either drown in the log or turn the job red for ever. So both are pinned by commit in a reviewed file:head != pinnedis a stable fact that alerts until someone looks. Clearing it is the review: bump the commit andreviewed. That is the same idiom the registry already uses for generated data, and it leaves a record of what was looked at and when.The d3 half is the weights: FastFlowLM packs
vllm-sr/d3-*asFastFlowLM/D3-*-NPU2(the packs'base_modeltags say so), so the file lists the 16 d3 repos that exist and the watch reports anyd3*repo undervllm-srthat is not listed — "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 stay quiet.Wiring
load_support_pins()/sweep_support()/report_support()/watch_support()intools/census_watch.py; markers+ SUPPORT PIN,!! SUPPORT MOVED, and a summary line naming the fix.watch_support()runs last, after the FLM watch;exit_code()takes its signal as a fourth OR and keeps the "2 on failure" rule (a failed fetch is a runtime failure, never a quiet day — and never turns an alert green).SUPPORT MOVEDand thesupport_pinsline, and the issue body says how to clear one.+ SUPPORT PIN ROCm/FLM_Q4NX_Converter d1d5232d0b82 (2026-08-27) reviewed 2026-10-30.Tests (
tests/census_watch_test.py, ctestcensus_watch, no network)unchanged pin green · moved converter commit alerts, naming both commits · new
d3*repo alerts · a non-d3 repo in the org stays quiet · failed fetch reported as failure (andexit_codetable:(0,0,True,1)=1,(0,0,False,0)=2,(0,0,False,1)=1) · the committedregistry/support_pins.jsonparses, has 40-char commits withrevieweddates, and every d3 entry matches the watched prefix. All checks passed; YAML parses and both edited workflow steps passbash -n; the create path was driven with a stubbedgh.Touches
tools/census_watch.pylike #649 at different regions — merge #649 first to keep the rebase boring.