mirror of
https://github.com/lightseekorg/tokenspeed.git
synced 2026-12-04 10:26:50 +08:00
## Summary Both `runtime-1gpu` halves run within minutes of the 60-minute step limit of a packed GB200 single-GPU task, and part-ii is cancelled for time whenever install or a cold JIT runs a little slow. This PR shortens the suite instead of raising the limit. - **Persist the Triton cache in Slurm containers.** Triton caches under `$HOME` by default, and the container discards it, so every packed task compiled its Triton kernels cold. - `TRITON_CACHE_DIR` now points into the shared cache mount, as `FLASHINFER_WORKSPACE_BASE` already does. - Measured on one GPU, cold vs warm cache: `test_sonic_backend.py` 323 s → 43 s, `test_sonic_vocab_shard.py` 151 s → 12 s. - Those two files alone take about 12 minutes across the two halves today. - The pipeline's per-runner isolated JIT cache only fills variables that are still unset, so it keeps this one. - **Cut fixed waits that the tests do not check.** - The allocator probe's deadline (`launcher.py`) and the launcher's final per-scheduler join (`engine.py`) become named module constants. - The probe-timeout test sets the deadline to 1 s instead of waiting the full 60 s. - The two stuck-rank tests, which already shorten the exit grace, shorten the join too. - The assertions are unchanged: the same `TimeoutExpired` is raised, the stuck ranks are still killed, and the port is still free on restart. - **Compare the sonic sampling configs at one vocabulary instead of two.** - The test now uses 129024 columns instead of 131072 and 151936. - At 129024 the 2k tiles end whole and the 4k, 8k and 16k tiles end partial, so both the bitonic and the radix configs are still compared on a whole and on a partial last tile. - The configs 151936 reaches are a subset of the six compared. ## Tests - `test_ut_gpu_routing.py` now asserts that the pack script passes `TRITON_CACHE_DIR` into the container and sets it to the shared cache. `test/ci_system` (routing, Slurm submit, pipeline): 265 passed. - The changed runtime tests pass. Mutation checks: - dropping the probe deadline makes the probe-timeout test fail; - an exit grace that never expires fails both stuck-rank tests; - perturbing the RADIX_4K or BITONIC_4K output fails `test_every_picked_config_draws_the_same_tokens[129024]`. - `pre-commit run --all-files` passes. --------- Signed-off-by: Nicolas Perrin <nperrin.ai@gmail.com>