fix: preserve system IDs during inflight refill#113
Conversation
Signed-off-by: architd <architd@nvidia.com>
Greptile SummaryThis PR fixes a bug where
Important Files Changed
Reviews (2): Last reviewed commit: "fix: validate refill bookkeeping and cov..." | Re-trigger Greptile |
Signed-off-by: architd <architd@nvidia.com>
There was a problem hiding this comment.
Could you add another test case where not all samples are graduating?
Essentially, we want to make sure that the refill case where only some slots are being replaced that the system ids are also being preserved then
There was a problem hiding this comment.
Thanks, I believe that this case is covered in the latest commit (dbcef64) by test_refill_preserves_mixed_system_ids.
That test starts with initial system_ids [0, 1], marks only the first sample as graduated with status = [[1], [0]], then verifies the refill result preserves the remaining system ID and the replacement ID as [1, 2].
Please let me know if you have a different partial-refill scenario in mind.
Description
Preserve sampler-assigned
system_idvalues for replacement systems during inflight refill.BaseDynamics.refill_check()now seeds rebuilt bookkeeping tensors from values already present on the appended result batch before restoring values for systems that stayed active.Type of Change
Related Issues
Fixes #112
Changes Made
refill_check()for inflight batching.Testing
uv run pytest test/dynamics/test_inflight.py::TestRefillCheck)make lint)system_idpreservation during inflight refill.Checklist
Additional Notes
This is a Python-only toolkit fix. No
nvalchemi-toolkit-opschanges are required.