Commit ebfed22
src/localserv: set fixed seed for deterministic sampling
Explicitly set `sampling.seed` to 42 in `localserv_main.cc`. This ensures that `Inference::reinitialize` uses a fixed seed rather than a random one derived from `time(NULL)`. This prevents non-deterministic behavior in the sampler chain (e.g., `min_p` or internal `llama.cpp` RNG usage) that was causing CI test failures in `localserv_test.py`, even when greedy sampling was enabled. This change aligns `localserv`'s reliability with `assistant_cli`.
Co-authored-by: gendeux <109779922+gendeux@users.noreply.github.com>1 parent 7aea87a commit ebfed22
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
0 commit comments