Repository navigation
Add a batch cost runner for compiled raster graphs, with a live measurement of chained gates - #51
Merged
Merged
Conversation
…evels, compare reruns - The reading gives no decision when the run ended before the costs it needs. - The 16-block chain runs last, after the screen-size cases. - Every missing folder level of the asset root is created top down, read again after an interruption at its intent. - compare's cap leaves room for a rerun after a failed fetch. - An unused import is removed.
The report of one run of tools/raster_cost_run.py (base, screen_size, long) on the revision before this one: 16 exports, each task's EECU-seconds and times, the comparison of every saved image with float32 PyTorch, and the reading. Unedited tool output.
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 tool,
tools/raster_cost_run.py, that measures what compiled raster graphs cost as batch exports, in EECU-seconds, with the record of one live run: chains of squeeze-excitation gates in one graph against the same chain cut into stages. Tool, tests and evidence only: no block, compiler, converter, record, status, default or graph changes, and no reader documentation.compile_model. Each task exports one graph to one new image asset.planis offline and deterministic: every task, asset name, request size and hash, the calls by kind with their caps, and the conditions that can remove a task.runsubmits one task at a time and is resumable. It never resubmits or overwrites, cancels a task at a wall or queue limit, and stops at an EECU budget.comparefetches each saved image once and compares it with float32 PyTorch.reportis offline: each task's cost and times, and a reading whose rule is fixed before the run.se_chainfixtures, unchanged: residual blocks with a squeeze-excitation gate, on 8 channels, with integer-generated inputs and weights and a seed per case. Gated chains of 1, 2, 4, 8 and 16 blocks, controls of 2 and 8 blocks without the gate, a repeat of the 4-block chain, an 8-block chain as four stages of two, and two chains at 64 × 64.tensor_ee/converter/, unmodified; seven of them are its private helpers, imported by name. The converter's own runner is not reused: it needs a block graph, a plan and a table manifest, and never cancels a task.Base revision:
b20a69b2(main).Changes by layer
tools/raster_cost_run.py(new).tests/test_raster_cost_run.py(new, 35 tests, against a fake client; zero cloud calls).docs/evidence/raster-gate-cost-live.json(the tool'sreportoutput, unedited).Checks on the head commit
Run locally on
7a46457with a clean tree (Python 3.14, all extras, trained checkpoints present):b20a69b2before the first edit.pytest -q: 4173 passed, 20 skipped.--plan se_chain: its planned graph hashes equal those of the live record20261116T022247Z-se_chain.json.raster_cost_run.py plan --cases base,screen_size,long: 16 tasks, largest request 1,598,313 bytes (limit 9,500,000), zero cloud calls; the 16 request hashes equal those of the revision that ran live.--plangraphs and request counts ofcalibration,p02,hard_activations,batch_norm,bilinear,grouped_conv,standardize,global_pool_multiplyandpadded_convare identical to the base's (checked at118bb86; the later commit adds only the evidence file).Not reproduced locally: the hosted jobs on Python 3.11 and 3.12 without extras.
Live run
One run of
base,screen_size,longon the clean revision118bb86: 16 tasks, 16 of 16 verified, no guard tripped, no resume. Calls:exportImage16,getAsset34,getOperation100,createFolder1,cancelOperation0,computePixels16. Limits: budget 1,800 EECU-seconds, 900 s per task, 1,800 s in the queue. Total: 1,530.4 EECU-seconds.The cases have no NumPy mirror in the tool, so the live comparison is with PyTorch only. The cost and the numerical agreement are separate claims.
What the costs show, and what they do not
Limitations
cancelOperationand what a cancelled task reports; a resume; a missing parent folder (one level was created, its parent existed).tensor_ee/converter/run.py; a change there can break it, which its tests would show.