Archived
tests: the preemption cases pin --prefill-interleave 0
The served default --prefill-interleave auto:1 (previous commit) follows measured step times, so the four sequences of preemption_by_recompute_continues_each_stream_exactly sometimes never overlapped enough to preempt and the test's CHECK(n > 0) failed in about half the runs under a loaded host (plain main: 6/6 pass). The cases are sized for the fixed schedule they were written against; small_pool_args() now pins it. Nothing they check is loosened: the streams must still match and preemption still happen. With the flag: 6/6 alone and 3/3 beside 40 busy threads, and the case takes 3 s again instead of 5-12 s.
This commit is contained in:
1 parent
a58304632a
commit
451b136874
1 file changed
+5
-2
@@ -85,9 +85,12 @@ std::vector<std::string> serving_argv(const std::string& model,
|
||||
}
|
||||
|
||||
/* The shape the preemption cases run in: four sequences of at most 512 tokens, 256 a step. Their
|
||||
* small KV pool comes from a small device, whose size small_device() finds. */
|
||||
* small KV pool comes from a small device, whose size small_device() finds. --prefill-interleave 0
|
||||
* pins the schedule these cases are sized for: the bring-up default auto:1 follows measured step
|
||||
* times, so on a loaded host the four sequences may never overlap enough to preempt. */
|
||||
std::vector<std::string> small_pool_args() {
|
||||
return { "--max-num-seqs", "4", "--max-num-batched-tokens", "256", "--max-model-len", "512" };
|
||||
return { "--max-num-seqs", "4", "--max-num-batched-tokens", "256", "--max-model-len", "512",
|
||||
"--prefill-interleave", "0" };
|
||||
}
|
||||
std::vector<std::string> device_env(int device_mib) {
|
||||
return { "RADIANCE_HOST_VRAM_MIB=" + std::to_string(device_mib) };
|
||||
|
||||
Reference in new issue
Block a user