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
{{ message }}
Repository navigation
pd: one request with extreme sampling values poisons the batched server #167
temperature=1e-40 produces inf/NaN probabilities and multinomial raises; seed >= ~9.2e12 overflows manual_seed(seed*1_000_003+p). Both pass SamplingParams validation and the HTTP parser. The error is raised inside step(), so BatchedOwner.run poisons the service and fails every in-flight request.
Evidence and reproduction
opt_prime/opt_prime/accel/pd/sampling.py:15,23, accel/serve/llmd.py:116-121. Ran: select_token raises for both values; a batcher with one good and one bad request raised out of step() and left the good request unfinished.
Environment
optimus-rm @253be20; Python 3.10, torch 2.10.0+cu128, transformers 5.1.0; RNGD+A100 host (CPU / one A100 for the checks).
Scope
accel/pd/contracts.py validation.
Done when
Tiny temperatures are greedy, seeds are bounded, a test sends both values next to a normal request and the normal request completes.
Activity
fix: treat near-zero temperature as greedy and bound the seed (#167) (#…
gspark-etri commentedon Oct 23, 2026
Fixed by #184, squash-merged into optimus-rm.