Files
leleka/crates/cuda-driver
Pavlo RatushnyiandClaude Sonnet 5.5 ee4f261775 cuda-driver: chunked persistent page list for MTP ring snapshots (the per-round snapshot copied every page Rc)
finish_original_graph_mutation built the next snapshot's page vector by cloning one Rc per page below the first changed one: 65,536 clones at 256k per
round, and the same number of decrements when the previous snapshot was dropped. Pages are now held in chunks of 256 behind Rc; a new snapshot shares every
whole chunk and copies at most one partial chunk plus the new pages, so the per-round cost no longer grows with the context. Contents and lineage identical
(unit tests: get/iter equal the vector, prefix pointer-identical, whole chunks shared). Not yet measured on the 5090.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 01:42:28 +01:00
..