bench(arms): register thinkingcap-g2-bfp4-packed and land the two G2 arms (#62) #100

Merged
Grok merged 1 commit from g2-arms-registry into master 2026-09-26 10:35:13 +02:00
Owner

Makes prod-g2-prefix runnable. It was committed on deploy/g2-prefix-0019 while the registry it refers to lives on master, so ttx render prod-g2-prefix failed with model 'thinkingcap-g2-bfp4-packed' is not in bench/arms/models.toml and the one instrument that can give us a real bfp4 serving number could not be rendered at all.

Both arms move onto master alongside the registry entry.

Where the packed weights actually are

/var/lib/models-sata/bfpq/packed-G2 — on the SATA volume, not /var/lib/models. That is why looking under /var/lib/models/bfpq found nothing; that path holds the unpacked ckpt-G2. Any arm loading it must bind-mount /var/lib/models-sata, which prod-g2-prefix does.

Verified on cfx-llm2 today:

size 20 GB, self-contained (ckpt-G2 is 68 GB of symlinks into the quantiser's scratch tree)
shards 4 safetensors + model.safetensors.index.json
sidecar bfp4_packed.json, "format": "bfp4-packed-v1"
metadata 121 bfp4: keys in shard 1 — the keys weight_mapping.py dispatches on, so the unpack path will engage
licence ships LICENSE-PolyForm-Small-Business-1.0.0.txt
adopted cache /var/lib/models/tt-cache/bfpq-PK, 23 GB measured — cache_gb is that number, not an estimate

Registry entry notes

  • cache_gb is given for 1x2 only. No TP=1 cache of this checkpoint has been built, and I would rather ttx up refuse than believe a guess.
  • No seed_from. Tensorbin names carry tensor + dtype and never the checkpoint, so seeding from thinkingcap-fp8 collides by name on the MLP bins, whose values differ. prod-g2-prefix adopts the verified bfpq-PK cache instead.
  • required_env = { QWEN36_ATTN_GDN_BF4 = "1" }, so ttx refuses an arm that would load this checkpoint at the stock dtype mix.

Depends on #99

Neither arm produces a valid run until #99 lands. On master today the staged overlay is the unpatched attention/tp.py / gdn/tp.py and there is no weight_mapping.py, so QWEN36_ATTN_GDN_BF4 engaged (expected 64x) and QWEN36_BFP4_PACKED engaged would both be missing and the arms would fail their [expect] gate — correctly.

No ttx change is needed to pick the two new files up: arm.overlay_files() walks the whole patches/prod-local-metal tree and maps through PREFIX_MAP, rather than using the MOUNT_SPECS list in legacy.py. Verified by merging #99 locally and re-rendering — both files appear as :ro mounts at the right destinations, and the merge was then discarded so this PR stays independent.

Checks

  • bench/arms/models.toml parses; the new table is the 6th.
  • ttx render prod-g2-prefix and ttx render load-probe-g2-tp2 both succeed.
  • tools/ttx/tests/test_prod_matches_nix.py 8/8 and test_cachereg.py 6/6 pass — the first is the one that diffs rendered docker argv against the nix unit.

Not run on hardware: cards are free and I have taken no slot for this.

Licensing

ThinkingCap is PolyForm Small Business 1.0.0. This registers a path to weights already on the host for internal serving; nothing is published or redistributed. On file per the owner's instruction.

Refs #62.

🤖 Generated with Claude Code

Makes `prod-g2-prefix` runnable. It was committed on `deploy/g2-prefix-0019` while the registry it refers to lives on master, so `ttx render prod-g2-prefix` failed with `model 'thinkingcap-g2-bfp4-packed' is not in bench/arms/models.toml` and the one instrument that can give us a real bfp4 serving number could not be rendered at all. Both arms move onto master alongside the registry entry. ## Where the packed weights actually are **`/var/lib/models-sata/bfpq/packed-G2`** — on the **SATA** volume, not `/var/lib/models`. That is why looking under `/var/lib/models/bfpq` found nothing; that path holds the *unpacked* `ckpt-G2`. Any arm loading it must bind-mount `/var/lib/models-sata`, which `prod-g2-prefix` does. Verified on cfx-llm2 today: | | | |---|---| | size | 20 GB, self-contained (`ckpt-G2` is 68 GB of symlinks into the quantiser's scratch tree) | | shards | 4 safetensors + `model.safetensors.index.json` | | sidecar | `bfp4_packed.json`, `"format": "bfp4-packed-v1"` | | metadata | **121 `bfp4:` keys** in shard 1 — the keys `weight_mapping.py` dispatches on, so the unpack path will engage | | licence | ships `LICENSE-PolyForm-Small-Business-1.0.0.txt` | | adopted cache | `/var/lib/models/tt-cache/bfpq-PK`, **23 GB** measured — `cache_gb` is that number, not an estimate | ## Registry entry notes - `cache_gb` is given for `1x2` only. No TP=1 cache of this checkpoint has been built, and I would rather `ttx up` refuse than believe a guess. - **No `seed_from`.** Tensorbin names carry tensor + dtype and never the checkpoint, so seeding from `thinkingcap-fp8` collides by name on the MLP bins, whose values differ. `prod-g2-prefix` adopts the verified `bfpq-PK` cache instead. - `required_env = { QWEN36_ATTN_GDN_BF4 = "1" }`, so ttx refuses an arm that would load this checkpoint at the stock dtype mix. ## Depends on #99 Neither arm produces a valid run until #99 lands. On master today the staged overlay is the *unpatched* `attention/tp.py` / `gdn/tp.py` and there is no `weight_mapping.py`, so `QWEN36_ATTN_GDN_BF4 engaged` (expected 64x) and `QWEN36_BFP4_PACKED engaged` would both be missing and the arms would fail their `[expect]` gate — correctly. No ttx change is needed to pick the two new files up: `arm.overlay_files()` walks the whole `patches/prod-local-metal` tree and maps through `PREFIX_MAP`, rather than using the `MOUNT_SPECS` list in `legacy.py`. Verified by merging #99 locally and re-rendering — both files appear as `:ro` mounts at the right destinations, and the merge was then discarded so this PR stays independent. ## Checks - `bench/arms/models.toml` parses; the new table is the 6th. - `ttx render prod-g2-prefix` and `ttx render load-probe-g2-tp2` both succeed. - `tools/ttx/tests/test_prod_matches_nix.py` 8/8 and `test_cachereg.py` 6/6 pass — the first is the one that diffs rendered docker argv against the nix unit. Not run on hardware: cards are free and I have taken no slot for this. ## Licensing ThinkingCap is PolyForm Small Business 1.0.0. This registers a path to weights already on the host for internal serving; nothing is published or redistributed. On file per the owner's instruction. Refs #62. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bench(arms): register thinkingcap-g2-bfp4-packed and land the two G2 arms (#62)
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 9s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 28s
b49672bec1
`ttx render prod-g2-prefix` failed with "model
'thinkingcap-g2-bfp4-packed' is not in bench/arms/models.toml" -- the arm
was committed on the deploy branch while the registry it refers to lives
here, so the one instrument that can give us a real bfp4 serving number
was unrunnable. Both arms move onto master alongside the registry entry.

The packed checkpoint is at /var/lib/models-sata/bfpq/packed-G2 (20 GB),
on the SATA volume rather than /var/lib/models -- which is why looking for
it under /var/lib/models/bfpq found nothing. Verified on cfx-llm2: 4
safetensors shards, 121 "bfp4:" metadata keys, format bfp4-packed-v1, and
the adopted tensor cache at /var/lib/models/tt-cache/bfpq-PK is 23 GB,
which is where cache_gb comes from rather than an estimate.

No seed_from: tensorbin names carry tensor + dtype and never the
checkpoint, so seeding from thinkingcap-fp8 would collide by name on the
MLP bins, whose values differ.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Grok force-pushed g2-arms-registry from b49672bec1
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 9s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 28s
to d929a21499
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 5s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 15s
tt-stack-ci / Report upstream drift (push) Successful in 5s
tt-stack-ci / Build simulators and check the host module (push) Failing after 15s
2026-09-26 10:35:08 +02:00
Compare
Grok merged commit d929a21499 into master 2026-09-26 10:35:13 +02:00
Author
Owner

agent-gateway closeout (merged): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Owner

verdict: approve
tier: T0 (unmarked on PR; treated as bench config)

rationale: Adds one models.toml registry entry (thinkingcap-g2-bfp4-packed) plus two arm TOMLs. No .nix, no code, no secrets, no CI. The diff matches its declared scope and the guards it relies on (required_env, base = thinkingcap-fp8, SATA bind-mount) are present and documented.

concerns:

  • [warn] models.toml:83 - revision = g2-a0830128-packed is a non-sha string where sibling entries carry sha256 revisions; the inline comment explains it is a replaced-sha prefix + pack step, so accepted, but worth confirming the tooling that consumes revision tolerates non-hex values.
  • [warn] models.toml:83 - depends on #99 (weight_mapping.py / bfp4_unpack.py overlays). On master today the checkpoint is inert without those overlays, so this arm is unrunnable until #99 lands - a sequencing note, not a block.
  • [nit] tier is left unmarked (T?) on the PR; register this repo's bench PRs with an explicit tier for the dispatcher.
**verdict:** approve **tier:** T0 (unmarked on PR; treated as bench config) **rationale:** Adds one models.toml registry entry (thinkingcap-g2-bfp4-packed) plus two arm TOMLs. No .nix, no code, no secrets, no CI. The diff matches its declared scope and the guards it relies on (required_env, base = thinkingcap-fp8, SATA bind-mount) are present and documented. **concerns:** - [warn] models.toml:83 - revision = g2-a0830128-packed is a non-sha string where sibling entries carry sha256 revisions; the inline comment explains it is a replaced-sha prefix + pack step, so accepted, but worth confirming the tooling that consumes revision tolerates non-hex values. - [warn] models.toml:83 - depends on #99 (weight_mapping.py / bfp4_unpack.py overlays). On master today the checkpoint is inert without those overlays, so this arm is unrunnable until #99 lands - a sequencing note, not a block. - [nit] tier is left unmarked (T?) on the PR; register this repo's bench PRs with an explicit tier for the dispatcher.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!100
No description provided.