Skip to content

census: watch FastFlowLM (HF org + runtime releases, engine #588) - #589

Merged
bong-water-water-bong merged 3 commits into
mainfrom
1bit/588-main
Oct 26, 2026
Merged

bong-water-water-bong merged 3 commits into
mainfrom
1bit/588-main

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

census: watch FastFlowLM's HF org and runtime releases (engine #588)

The daily census watches HF architecture classes, which is the wrong shape for FastFlowLM: its drops are files,
not architectures. *-NPU2 repos carry a model.q4nx and land with no registry change (Nemotron-3.5-Bolt-E4B and
the D3 set arrived 23-25 Oct unseen), and the runtime's own tags are where the q4nx container and its chunk layout
move, which is what our decoder pins. tools/fflm_watch.py reports both in the same daily run:

  • HF org (author=FastFlowLM): per new or changed repo - lastModified, the *.q4nx files and their total
    size, the license tag, the base model, the architecture class from the repo config, whether
    registry/architectures.json maps it and whether that entry lists the npu backend, and FastFlowLM's own
    feature names from the id and tags (layerP, lax). !! NEW FLM for a family the registry does not map, which
    is the only thing that alerts.
  • GitHub releases: new tags with date, asset count, and kernel-format: naming whichever of
    q4nx/chunk/layout the notes or asset names carry.
  • State (~/.1bit/fflm-watch-state.json by default, FFLM_WATCH_STATE overrides): repo lastModified stamps
    and seen tags, so a quiet day says "nothing new"; --full lists everything.
  • Coverage is judged from the generated registry only (an entry whose backends lists npu is a family the NPU
    route serves), so the report cannot drift from what the engine serves. A repo config names a text tower
    (model_type: qwen3_5_text) rather than an architectures class, so resolve_family() also matches the
    registry's gguf/npu_model_type names, normalized and longest-prefix, preferring a plain causal-LM class over a
    multimodal wrapper registered on the same tower and then the NPU-served one.

Wiring, all of it reported and none of it changing the architecture alert:
scripts/census-watch.sh runs the FLM watch into the same log and never propagates its exit code (the FLM API
being down must not silence an unmapped-architecture alert), and CMakeLists.txt registers the new offline test as
fflm_watch.

One line is left for a push with the workflow scope: the alert job's line filter in
.github/workflows/census-watch.yml matches UNCOVERED|UNVERIFIABLE|REMOTE-CODE, so !! NEW FLM and RELEASE v
lines reach the daily log but not the filed issue until NEW FLM|RELEASE v is added there. This token cannot
update workflow files (GitHub rejects the push without workflow scope), so that one-line edit is not in this PR.

Verified: tests/fflm_watch_test.py (recorded payloads under tests/fixtures/fflm/, no network) passes,
fflm_watch ctest-style run is green, tools/copyright.py --check clean, bash -n scripts/census-watch.sh clean,
and a live run against both APIs reports the 25 Oct D3-Mini drop, the 23-25 Oct set, Qwen3.8-27B-NPU2 from 29 Sep
(16.82 GiB), and release v1.0.10 flagged for chunk.

Private-IP rule: the output names FastFlowLM's files, sizes and versions only. It says nothing about our NPU
kernels, their names or their speed - the routes column says only whether the registry maps the family.

Co-Authored-By: Claude Fable 5.1 [email protected]

The daily census watches HF *architecture classes*, which is the wrong shape for FastFlowLM: its drops are files,
not architectures. `*-NPU2` repos carry a `model.q4nx` and land with no registry change (Nemotron-3.5-Bolt-E4B and
the D3 set arrived 23-25 Oct unseen), and the runtime's own tags are where the q4nx container and its chunk layout
move, which is what our decoder pins. `tools/fflm_watch.py` reports both in the same daily run:

* **HF org** (`author=FastFlowLM`): per new or changed repo - `lastModified`, the `*.q4nx` files and their total
  size, the license tag, the base model, the architecture class from the repo config, whether
  `registry/architectures.json` maps it and whether that entry lists the `npu` backend, and FastFlowLM's own
  feature names from the id and tags (`layerP`, `lax`). `!! NEW FLM` for a family the registry does not map, which
  is the only thing that alerts.
* **GitHub releases**: new tags with date, asset count, and `kernel-format:` naming whichever of
  `q4nx`/`chunk`/`layout` the notes or asset names carry.
* **State** (`~/.1bit/fflm-watch-state.json` by default, `FFLM_WATCH_STATE` overrides): repo `lastModified` stamps
  and seen tags, so a quiet day says "nothing new"; `--full` lists everything.
* Coverage is judged from the generated registry only (an entry whose `backends` lists `npu` is a family the NPU
  route serves), so the report cannot drift from what the engine serves. A repo config names a text tower
  (`model_type: qwen3_5_text`) rather than an `architectures` class, so `resolve_family()` also matches the
  registry's gguf/`npu_model_type` names, normalized and longest-prefix, preferring a plain causal-LM class over a
  multimodal wrapper registered on the same tower and then the NPU-served one.

Wiring, all of it reported and none of it changing the architecture alert:
`scripts/census-watch.sh` runs the FLM watch into the same log and never propagates its exit code (the FLM API
being down must not silence an unmapped-architecture alert), and `CMakeLists.txt` registers the new offline test as
`fflm_watch`.

One line is left for a push with the `workflow` scope: the alert job's line filter in
`.github/workflows/census-watch.yml` matches `UNCOVERED|UNVERIFIABLE|REMOTE-CODE`, so `!! NEW FLM` and `RELEASE v`
lines reach the daily log but not the filed issue until `NEW FLM|RELEASE v` is added there. This token cannot
update workflow files (GitHub rejects the push without `workflow` scope), so that one-line edit is not in this PR.

Verified: `tests/fflm_watch_test.py` (recorded payloads under `tests/fixtures/fflm/`, no network) passes,
`fflm_watch` ctest-style run is green, `tools/copyright.py --check` clean, `bash -n scripts/census-watch.sh` clean,
and a live run against both APIs reports the 25 Oct D3-Mini drop, the 23-25 Oct set, `Qwen3.8-27B-NPU2` from 29 Sep
(16.82 GiB), and release `v1.0.10` flagged for `chunk`.

Private-IP rule: the output names FastFlowLM's files, sizes and versions only. It says nothing about our NPU
kernels, their names or their speed - the routes column says only whether the registry maps the family.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 97a2723)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

588 - Partially compliant

Compliant requirements:

  • Watches FastFlowLM's HF org repos and GitHub releases
  • Reports on new or changed repos with lastModified, *.q4nx files and sizes, license tag, base model, architecture class, and registry mapping
  • Flags kernel-format changes in GitHub releases
  • Implements state file tracking for last-seen repos and tags
  • Supports --full listing option
  • Includes tests with recorded fixtures

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Potential Performance Issue in `repo_summary`

The repo_summary function in tools/fflm_watch.py makes a separate HTTP call for each repo when building the summary. This could lead to performance issues if there are many repos, as it makes multiple network requests in a loop. It would be more efficient to batch these requests or fetch all repo details in a single call if the API supports it.

def repo_summary(repo, archs):
    """One HF repo as the report sees it: files, license, base family, and how our routes cover it."""
    repo_id = repo.get("id") or repo.get("modelId") or ""
    tags = repo.get("tags") or []
    architecture = architecture_of(repo.get("config"))
    registry_class = resolve_family(architecture, archs)
    entry = archs.get(registry_class, {}) if registry_class else {}
    backends = entry.get("backends") or []
    return {
        "id": repo_id,
        "lastModified": repo.get("lastModified") or repo.get("createdAt") or "",
        "q4nx": q4nx_files(repo.get("siblings")),
        "license": license_of(tags),
        "base_models": base_models_of(tags),
        "architecture": architecture,
        "registry_class": registry_class,
        "registry_gguf": entry.get("gguf", ""),
        "npu_model_type": entry.get("npu_model_type", ""),
        "mapped": bool(backends),
        "npu": "npu" in backends,
        "hrx": "hrx" in backends,
        "flm_features": flm_features(repo_id, tags),
    }
Possible Data Loss in State Handling

The save_state function in tools/fflm_watch.py uses os.makedirs with exist_ok=True, which could potentially lead to issues if the directory path is not properly validated. While this is unlikely to cause data loss directly, it could lead to unexpected behavior if the path resolution is not handled correctly.

def save_state(path, state):
    os.makedirs(os.path.dirname(path) or ".", exist_ok=True)
    with open(path, "w", encoding="utf-8") as f:
        json.dump(state, f, indent=1, sort_keys=True)
        f.write("\n")

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 8190063

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 97a2723

@bong-water-water-bong
bong-water-water-bong merged commit 3597127 into main Oct 26, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/588-main branch October 26, 2026 10:32
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