Repository navigation
fix(lane D): cut the settlement's public windows once on the eval host (live 2026-12-01) - #1052
Merged
Merged
Conversation
…t (live 2026-12-01) Each lane D settlement spent ~12.5 min per checkpoint in `lane_d_forecasts public` re-reading and re-cutting the same 5,000 drawn public windows (16 cores, slow volume) before a short GPU burst; 7 digests ~90 min. The draws are fixed by the boundary block hash and identical for every digest. - cascade/eval/lane_d_public_cut.py: CutCache, one file per cut_key (draws, block hash, max_channels, context/horizon/contexts, keep, CUT_SCHEMA); atomic os.replace, sha256-checked payload, exact dtype/shape/key order; corrupt/partial files deleted and re-cut; byte budget (LRU by mtime) and a volume free floor; uncacheable or failed writes served uncached. - public_scores_entry(cut_cache=): load the judged windows + data drops, else read/cut (unchanged code path) and store. The `public` command puts the cache at <public cache dir>/cut (--cut-cache-dir, --cut-cache-budget-bytes, 0 disables). Box request, SSH timeout and eval lock unchanged. - tests/accept/w8c/test_w8c_public_cut.py (fails on base by assertion), README section, PATHS entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.
Problem (live 2026-12-01)
Each lane D settlement spends ~12.5 min per checkpoint on the eval host in
python -m cascade.eval.lane_d_forecasts public: ~16 cores re-read and re-cut the same 5,000 drawn public windows (GiftEvalPretrain + RMISC blobs, slow loop-mounted volume) before a short GPU burst. The draws are fixed by the boundary block hash and are the same for every digest, so 7 digests come to about 90 min.Design
cascade/eval/lane_d_public_cut.pywith aCutCachethat writes one file percut_key. The key is the sha256 of the draws (each carriesindex_sha256, which pins the data revision), the block hash,max_channels,context/horizon/contexts,keepandCUT_SCHEMA.os.replace. Stale temp files are swept after 1 h.public_scores_entry(cut_cache=)loads the judged windows and data drops from the cache. On a miss it runs the unchanged read/cut/keep_publicpath (now_cut_public_windows) and stores the result.publicCLI defaults the cache to<public cache dir>/cut(the validator already passes--public-cache-dir).--cut-cache-diroverrides the location and--cut-cache-budget-bytes 0turns it off.timeout -kand the eval lock are unchanged. A run killed mid-cut stores nothing, and the next retry cuts again, as it does today. A retry after a validator or host restart reuses the first digest's cut.Expected
Byte-identity
The cut file holds the same windows that were read: the arrays' raw bytes, dtype and shape, the records' JSON and key order. Forecasting and scoring code is unchanged. The tests compare
json.dumps(reply, sort_keys=True)uncached vs cache-miss vs cache-hit (new process), for 3 digests, with and withoutkeep, and with realbuild_windowoutput (univariate and multichannel windows with a channels record and NaN gaps). The bytes are equal in every case, so the signed report's public rows andpublic.droppedcannot change.Tests
tests/accept/w8c/test_w8c_public_cut.pyhas 9 tests. All are torch-free with a fake reader that counts reads, and all fail on base by assertion. They check:Also run, all green: w8c public, public_mirror, public_parallel, host_modules and eval_host, plus
tests/unit/test_incident_rules.py. Ruff passes.PATHS: W8c gains
cascade/eval/lane_d_public_cut.py.🤖 Generated with Claude Code
https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe