Skip to content

census-watch: custom-code one-offs are reported, not an alert - #265

Merged
bong-water-water-bong merged 1 commit into
mainfrom
census-watch-remote-code
Oct 1, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
census-watch-remote-code

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Follow-up to #263 (RFC #246).

The first scheduled-workflow test run filed #264 for three unmapped classes:

Class Models Uploaders Loads through
HyperLlamaForCausalLM 24 1 auto_map
Sol2ForCausalLM 1 1 auto_map
TPULlamaForCausalLM 1 1 auto_map

Each one loads only through custom modeling code, so Transformers has no implementation either and no backend could map it. Classes like that arrive daily, and as written the watch would keep the census-watch issue permanently open.

Rule.

  • An unmapped class still alerts, unless all of its models use auto_map and fewer than REMOTE_CODE_SPREAD (3) uploaders publish it.
  • Those classes are printed as REMOTE-CODE and included in the issue body when something else alerts.
  • A class with any native model, or a reviewed class (registry/significant.json), alerts as before.

Tests. tests/census_watch_test.py gets five new cases: a one-uploader custom-code class, a class that has spread to 3 uploaders, a mixed native/custom class, a reviewed custom-code class, and a one-off next to a native arrival. All checks pass.

Live run (fresh state, 120 newest): rc 0, with the three classes listed as REMOTE-CODE.

Docs. docs/registry.md describes the rule and the Actions path.

#264 gets closed with a pointer here once this merges.

🤖 Generated with Claude Code

The first scheduled-workflow test run (RFC #246) found three unmapped classes in the 120
newest models: HyperLlamaForCausalLM (24 models, one uploader), Sol2ForCausalLM and
TPULlamaForCausalLM. All three load through auto_map, so Transformers has no implementation
either and no backend could map them. Classes like that arrive daily, and alerting on them
would keep the census-watch issue permanently open.

An unmapped class now alerts unless all its models use custom code (auto_map) and fewer
than REMOTE_CODE_SPREAD (3) uploaders publish it. Such classes are still printed
(REMOTE-CODE) and appear in the issue when something else alerts. Reviewed classes
(registry/significant.json) always alert, as before. Five new test cases; docs/registry.md
describes the rule and the Actions path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

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

Incorrect remote-code classification logic

The logic for determining whether a class is a remote-code class and should be reported instead of alerted may be flawed. Specifically, the check c not in sig and c not in native may not correctly identify all remote-code classes, as a class could be both in sig (reviewed) and have models that use auto_map, but still be considered a remote-code class. This could lead to incorrect reporting or alerting behavior.

out["remote_code"] = sorted(
    c for c, ids in classes.items()
    if c not in sig and c not in native and len({i.split("/")[0] for i in ids}) < REMOTE_CODE_SPREAD)
Potential performance issue with set operations

In the classify function, for each uncovered class, the code computes a set of uploader IDs ({i.split("/")[0] for i in ids}) to determine if the class qualifies as a remote-code class. This operation is repeated for each class, which could become inefficient if there are many uncovered classes or models. While not a bug, it's worth noting for performance.

out["remote_code"] = sorted(
    c for c, ids in classes.items()
    if c not in sig and c not in native and len({i.split("/")[0] for i in ids}) < REMOTE_CODE_SPREAD)

@context7

context7 Bot commented Oct 1, 2026

Copy link
Copy Markdown

Docs7 for 1bit-monster/engine

Result Status Action
Deployment ➖ Not used —
Content review ✅ Passed. No problems found. View findings

Commit 56d8f8e

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