Repository navigation
Add a live screen of chained squeeze-excitation gates - #50
Merged
Merged
Conversation
…uest-cost screen Five raster fixtures built through compile_model on stand-in modules: chains of 1, 2, 4 and 8 residual blocks with a squeeze-excitation gate, and a control chain of 8 blocks without it, on a 64 x 64 map with 8 channels, one request each. Each has its own seed, input and weights. They compare with PyTorch only and are composition checks, excluded from block coverage. No block, compiler, harness, record, status or default changes.
…ared nodes The existing NumPy mirrors composed block by block agree with float32 PyTorch within the standing 1e-4 target on every chain (an offline check, not a live criterion); outputs stay of order 1 and the gates inside (0.1, 0.9); and no node two of the five graphs share holds a value computed from an input or a weight.
tools/live_fixtures.py --offline se_chain on the committed tree: five fixtures passed, zero cloud calls; PyTorch only, so no mirror comparison is recorded.
…ount The se_chain selection ran live once: 5 fixtures, 5 requests, all passed, each chain within 4.77e-07 of float32 PyTorch. Wall time per request: 3.7, 5.0, 14.2 and 43.1 s for chains of 1, 2, 4 and 8 gated blocks, and 5.1 s for 8 blocks without gates. Single interactive requests, wall time and not compute units. The fixture histories point at the record, and the chains stay out of block evidence in the validated-settings test.
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.
A live-fixture selection,
se_chain, that screens how request time grows when squeeze-excitation gates are chained in one graph. Fixtures, tests and evidence only: no block, compiler, harness, record, status or default changes.compile_modelon stand-in modules, on a 64 × 64 map with 8 channels: 1, 2, 4 and 8 blocks with a gate, and 8 blocks without it as the control. Each block is a depthwise 3 × 3 convolution, SiLU, the gate (adaptive_avg_pool2d, two 1 × 1 convolutions with SiLU between, sigmoid, product), a 1 × 1 convolution and a residual sum. Each chain has its own integer-generated input and weights, so no request shares another's computation.tests/test_raster_se_chain.py.Base revision:
add5acf8(main).Changes by layer
tools/fixtures/raster.py(selectionse_chain).tests/test_raster_se_chain.py(new),tests/test_live_fixtures.py,tests/test_x02b_validated_settings.py(the five ids added to the composition allowance).docs/evidence/raster-se-chain-offline.json,docs/evidence/live-fixtures/20261116T022247Z-se_chain.json.Checks on the head commit
Run locally on
cb3b51ewith a clean tree (Python 3.14, all extras, trained checkpoints present):add5acf8before the first edit.pytest -q: 4138 passed, 20 skipped.--offline se_chain: 5 fixtures passed, zero cloud calls (reference only; no mirror in the harness).--plan se_chain: 5 requests, largest 73,728 values and 598,613 bytes, 0 assets, 0 tasks, within budget.--plangraphs and request counts ofcalibration,p02,hard_activations,batch_norm,bilinear,grouped_conv,standardize,global_pool_multiplyandpadded_convare identical to the base's (checked atc8c10ca4; the later commit changes no fixture graph).Not reproduced locally: the hosted jobs on Python 3.11 and 3.12 without extras.
Live run
The selection ran once on the clean revision
c8c10ca4: 5 fixtures, 5 requests (the planned count), 0 assets, 0 tasks, no refused calls, 77.7 s. Every fixture passed. The record is committed unedited, and the head commit's 5 planned graph hashes are identical to that revision's.raster/multiply/se-chain-1-h64-w64raster/multiply/se-chain-2-h64-w64raster/multiply/se-chain-4-h64-w64raster/multiply/se-chain-8-h64-w64raster/residual_add/no-gate-chain-8-h64-w64The fixtures have no mirror in the harness, so the live comparison is with PyTorch only.
What the timings show, and what they do not
Limitations