feat: version rollout weight updates - #47
Closed
0z5a wants to merge 2 commits into
Closed
Conversation
Track a monotonic policy version across optimizer steps, scheduler updates, and rollout results. Serialize synchronous generation with weight acknowledgements and invalidate reusable prefix KV entries so cached samples remain attributable to the behavior policy that generated them.
Owner
|
landed as e58a728 |
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.
Summary
Control-plane benchmark
Exact PR commit
09bdc83, Python 3.12.2 and PyTorch 2.11.0+cu128 on the L20 server. Timings isolateInferenceScheduler.update_weights()after the scheduler is stopped and queues are empty, as required by the API.The normal no-cache acknowledgement is microsecond-scale. Clearing a fully cached 2,048-page radix/allocator state takes about 2.4 ms and occurs only at the explicit weight-update barrier; it is not added to the decode hot path.
Validation
PYTHONPATH=$PWD CUDA_VISIBLE_DEVICES=5 bash scripts/pre_commit.sh --skip-depsThe full GPU suite used the existing compiled CUDA extension modules from the L20 checkout, linked into the isolated test worktree.