Fix cache salt forwarding in train client - #2463
Merged
Merged
Conversation
eligotts
marked this pull request as ready for review
August 29, 2026 05:05
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused, single-file bug fix that forwards an existing cache-salt value through the renderer's intended dedicated argument. Requests without a cache salt retain their prior behavior, while configured train rollouts regain the intended prefix-cache isolation. You can add or adjust custom eligibility rules. Learn more. |
mikasenghaas
approved these changes
Aug 29, 2026
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
Forward
cache_saltthrough Renderers’ dedicatedgenerateargument instead of leaving it insidesampling_params, where it does not reach vLLM.This preserves policy-version prefix-cache isolation for pipeline RL: existing rollouts retain their starting cache namespace, while fresh rollouts miss KV cached under older weights.
Validation
uv run ruff check verifiers/v1/clients/train.pyNote
Pass
cache_saltas separate argument inTrainClient.get_responseExtracts
cache_saltfromsampling_paramsviapopand forwards it as a distinct argument to thegeneratecall in train.py.sampling_paramsno longer carriescache_saltwhen forwarded togenerate.Macroscope summarized 7367a4a.
Note
Low Risk
Single-path wiring change in the train client; no auth or data-model changes, aligned with the legacy renderer client pattern.
Overview
Fixes
cache_saltnot reaching vLLM when the train client callsrenderers.client.generate.TrainClient.get_responsenow popscache_saltfromsampling_params(same pattern aschat_template_kwargs) and passes it as a dedicatedcache_saltargument togenerate, instead of leaving it insidesampling_paramswhere it was ignored.This restores prefix-cache namespace isolation for pipeline RL rollouts that key KV cache on policy version.
Reviewed by Cursor Bugbot for commit 7367a4a. Bugbot is set up for automated code reviews on this repo. Configure here.