Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/qrf-fit-draw-per-target.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The CPS-ORG wage imputation (`impute_us_org_wages`) and the ACS input transfer (`transfer_acs_inputs`) fit and draw one QRF target at a time, through `RegimeGatedQRF.start_chain` and `fit_draw_next`, and free each target's forests and sign classifier before the next target is fitted. Before, earlier targets' forests were still referenced while later targets were fitted, so several targets' forests were in memory at once: up to 16 in the ACS transfer without a target bank (two availability patterns of up to 8 targets), 2 with a target bank, and 2 in CPS-ORG. Imputed values are byte-identical. In `tools/_legacy/build_us_acs_multispine_base.py`, `--max-targets-per-fit` now sets how many targets are chained in one sequence; it no longer bounds how many targets' forests are in memory. `acs_transfer.py`'s new bytes move the US seed-map and seed-protocol digests, which are repinned.
16 changes: 8 additions & 8 deletions docs/evidence/spec-engine/us-f0-coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1642,13 +1642,13 @@
"compiler_ir.node_slices"
],
"expected": {
"map_sha256": "afbe93ebeb8d48294581d860aed690c168eb4c2c92461353676a794cefd22584",
"protocol_sha256": "05fb40521ffef194cec9c2fe4dfedbbfd02e64ddddfd69f1a591961b61804176"
"map_sha256": "9fa0124345af93d0ce251e2fa09260aca5ff3c2fedc3921cfe21e0a64c71111f",
"protocol_sha256": "cbbb249d1a9b99627759f5433db12122e31f90d6e937742f6bf93898bd81333a"
},
"failures": [],
"observed": {
"map_sha256": "afbe93ebeb8d48294581d860aed690c168eb4c2c92461353676a794cefd22584",
"protocol_sha256": "05fb40521ffef194cec9c2fe4dfedbbfd02e64ddddfd69f1a591961b61804176"
"map_sha256": "9fa0124345af93d0ce251e2fa09260aca5ff3c2fedc3921cfe21e0a64c71111f",
"protocol_sha256": "cbbb249d1a9b99627759f5433db12122e31f90d6e937742f6bf93898bd81333a"
},
"status": "covered"
},
Expand All @@ -1663,7 +1663,7 @@
"compiler_ir.seed_stream_map"
],
"expected": {
"implementation_sha256": "05fb40521ffef194cec9c2fe4dfedbbfd02e64ddddfd69f1a591961b61804176",
"implementation_sha256": "cbbb249d1a9b99627759f5433db12122e31f90d6e937742f6bf93898bd81333a",
"protocol": "legacy-v1",
"streams": [
"build_model",
Expand All @@ -1684,7 +1684,7 @@
},
"failures": [],
"observed": {
"implementation_sha256": "05fb40521ffef194cec9c2fe4dfedbbfd02e64ddddfd69f1a591961b61804176",
"implementation_sha256": "cbbb249d1a9b99627759f5433db12122e31f90d6e937742f6bf93898bd81333a",
"protocol": "legacy-v1",
"streams": [
"build_model",
Expand Down Expand Up @@ -2585,7 +2585,7 @@
"country": "us",
"schema_id": "country_spec",
"schema_version": 1,
"spec_sha256": "f5eb16a0ff78a0b6622c7701f22a9f12a466e5f2729fd83c200ccc3b519c0292"
"spec_sha256": "4f0c8f6406ec0e184d431d1fb772d7a8a7fc29982124db01d6ac04b4643f47cf"
}
},
"report_schema_version": 3,
Expand All @@ -2595,7 +2595,7 @@
"country": "us",
"schema_id": "country_spec",
"schema_version": 1,
"spec_sha256": "f5eb16a0ff78a0b6622c7701f22a9f12a466e5f2729fd83c200ccc3b519c0292"
"spec_sha256": "4f0c8f6406ec0e184d431d1fb772d7a8a7fc29982124db01d6ac04b4643f47cf"
},
"status": "pass"
}
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,11 @@
# the builder's arms by flag; no draw, RNG rule, QRF target or solve changes.
# The in-place QRF leaf array in microcosm.fit.qrf moves both again: the
# forests' leaf arrays are byte-identical, and no draw changes.
"seed_map": "afbe93ebeb8d48294581d860aed690c168eb4c2c92461353676a794cefd22584",
"seed_protocol": "05fb40521ffef194cec9c2fe4dfedbbfd02e64ddddfd69f1a591961b61804176",
# The ACS transfer fitting and drawing one QRF target at a time, and
# freeing each target's forests before the next, moves both again:
# acs_transfer's attested bytes change; no draw, RNG rule or QRF target does.
"seed_map": "9fa0124345af93d0ce251e2fa09260aca5ff3c2fedc3921cfe21e0a64c71111f",
"seed_protocol": "cbbb249d1a9b99627759f5433db12122e31f90d6e937742f6bf93898bd81333a",
"source_manifest": "dc3879886d2a69f20fb982a675d7fb322c0e4017afef6471be54b0ee3cbd2af6",
"take_up": "9522ce40f7dea569312dd7a7beb474e5a5afadd2f1e10cb5876534c3ef623d35",
"tail": "565f0ceeadab69d3e96a886a00dd0305f7425fa3acde24d12ba48db2b37d5fc0",
Expand Down
Loading
Loading