Temperature was ignored because the verify window's head sampling was
pinned to greedy INSIDE the captured CUDA graph (verify.cpp hardcoded
sp.greedy = true), and the GEN protocol carried no sampling keys.
- the sampling moves OUT of the captured graph: the graph computes the
head logits, and run() applies sample_tokens host-side after the
replay, with that request's own parameters and a fresh Philox counter
per window (a captured sampler would replay the same draws forever)
- the GEN protocol accepts optional key=value pairs before the ids:
temperature=, top_p=, top_k=, seed=; absent keys stay greedy, exactly
as before
- server.py forwards the request's temperature/top_p/top_k/seed
- emitted tokens are always the TARGET's own samples (the drafts only
fill the verified window), so the output distribution is the target's
regardless of what the drafts propose
Building on the conversation cache: greedy requests stay bit-identical,
sampled requests with the same seed replay identically.