You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add end-to-end sampling controls to the LLM server worker protocol (#21561)
## Summary
Add end-to-end sampling controls to the LLM server worker protocol.
- Plumb `top_p`, `top_k`, and `seed` from chat completion requests
through the Python runtime and JSONL worker protocol.
- Extend the C++ worker sampling configuration while preserving existing
defaults and greedy behavior.
- Validate sampling parameters at the API boundary and document their
supported ranges and semantics.
- Add coverage for request validation, worker serialization, session
propagation, and C++ protocol handling.
## Test Plan
- Ran the focused Python LLM server test suite: 78 tests passed.
- Built the C++ worker integration successfully.
- Verified deterministic output for repeated seeded requests, different
output for different or omitted seeds, and expected behavior for `top_p`
and `top_k`.
- Verified invalid sampling values return HTTP 400 responses.
0 commit comments