Repository navigation
census: watch FastFlowLM's HF org and runtime releases (#588) - #613
Merged
Merged
Conversation
#588) engine#588 asks the daily census watch to cover FastFlowLM: their `*-NPU2` drops are q4nx files rather than architecture classes, so the architecture walk cannot see them. tools/census_watch.py grows both sweeps (the watcher is extended, not replaced): - `sweep_org()` reads huggingface.co/api/models?author=FastFlowLM&sort=lastModified in ONE request; `expand[]` brings `lastModified`, the tags (license, base_model) and the config back inline, so a repo is classified without a per-model fetch — the same inline-config design as the architecture walk. The list route carries sibling names only (no `expand[]` option carries a size), so each `*.q4nx` size is read from the repo detail (`?blobs=true`) once, and only for a repo that is new or changed (`--full` reads all of them). - `flm_line()` prints one line per repo: id, date, `*.q4nx` files and sizes, license, base model, architecture, whether `architectures.json` maps that architecture, and whether the npu route already serves the family. `lax`/`layerP` name nothing in FastFlowLM's org, releases or assets (checked), so the npu answer comes from the registry's `backends`, not from a marker guessed off a repo name. - `sweep_releases()` reads FastFlowLM/FastFlowLM releases and flags `q4nx`/`chunk`/ `layout` in the notes or asset names as `kernel-format`, because npu/q4nx.h pins that container behind a chunk table. - Delta state in the existing state file (`flm_models` id -> lastModified, `flm_tags`), so a daily run prints only what is new or changed; `--full` lists everything. - Alert contract: `exit_code()` ORs the two watches. 0 quiet, 1 an uncovered class and/or an unmapped FastFlowLM family, 2 a watch did not run. A brand-new FLM repo whose architecture the registry does not map prints `!! NEW FLM` and exits 1 — the same alert as an uncovered class, so neither watch can turn the other green. A failed FLM fetch is 2 (never a quiet day), but an alert still wins the code. Drops the duplicate tools/fflm_watch.py, its test and its add_test: one watcher, one state file, one exit code. tests/census_watch_test.py gains sections 16-23 driven by the recorded payloads in tests/fixtures/fflm/ (regenerated from the live listing) — no network. The workflow greps `NEW FLM` into the issue body and only files an issue on exit 1, so a network failure stays a red check instead of a bogus coverage report.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #588.
census_watchnow covers the FastFlowLM org on Hugging Face and its runtime release feed, so a new FLM repo or runtime tag surfaces in the census without a manual check.Evidence
QA run:
census_watch119 checks ok,ctest1/1 (0.95 s). A newly created FLM repo raises the alert once and stays silent afterwards; exit codes 2 / 1 / 0 (alert / warn / clean) keep their old meaning.Log:
/home/bcloud/1bit-monster/qa-588.log.Not in this PR
Nothing else changed; no network calls added to the default path.