[https://nvbugs/6627041][fix] Move single_step_greedy onto SampleStateTensorsHostTorch (the pickled… - #17875
[https://nvbugs/6627041][fix] Move single_step_greedy onto SampleStateTensorsHostTorch (the pickled…#17875trtllm-agent wants to merge 1 commit into
single_step_greedy onto SampleStateTensorsHostTorch (the pickled…#17875Conversation
…te for PP Signed-off-by: trtllm-agent <296075020+trtllm-agent@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 12 reviews per rolling hour; 11 remain after this review. WalkthroughThe change moves ChangesSampler state update
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This localized fix is merge-ready after normal checks; no actionable merge-blocking risk remains. Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Duplicate PR with #17828 |
Summary
single_step_greedylived onSampleStateTorch, which the PP ring never transports, so non-final ranks defaulted it toFalseand read the compact 1-Dnew_tokens_hostas 3-D.single_step_greedyontoSampleStateTensorsHostTorch(the pickled object) and read it viastate.host, giving the layout flag a single owner that travels with the tensors.pytest tests/integration/defs/perf/test_perf.py --perf --test-list=.repair-bot/perf_test_list.txt --output-dir=build/perf_output -vTest plan
Links
Dev Engineer Review
single_step_greedymoved toSampleStateTensorsHostTorch.update_requestsnow reads the flag fromstate.host.new_tokensdata and prevents incorrect interpretation of compact 1-D data on non-final ranks.QA Engineer Review
tests/unittest/_torch/sampler/test_torch_sampler.py.single_step_greedyfromsample_state.host.