[II] Encode Kimi precomputed padding as safe zero-weight routes - #416
[II] Encode Kimi precomputed padding as safe zero-weight routes#416voipmonitor wants to merge 1 commit into
Conversation
|
Caution Review failedAn error occurred during the review process. Please try again later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by local-inference-lab/b12x#227. vLLM padding routes use B12X #227 extends the existing inactive-route contract to Focused validation includes the native E8M0 W4A16 corpus, ModelOpt E4M3 direct execution, invalid negative and positive IDs, fully inactive rows, and CUDA Graph replay. At the Kimi-K3 TP16 decode shape, the M=1 median is unchanged within measurement noise: 22.5367 us on B12X master and 22.5365 us with B12X #227. The vLLM change is therefore not required once B12X #227 is merged. |
Kimi-K3 precomputed routing now represents CUDA Graph padding slots with expert ID 0 and route weight 0. This keeps every speculative weight address valid while preserving an exact zero contribution from padding.
The previous representation used expert ID -1. B12X native ModelOpt W4A16 small-M execution indexes route IDs directly, so padded graph inputs could produce
cudaErrorIllegalAddressduring DSpark graph warmup. Disabling padding skipping on the same checkpoint and launch geometry completed graph capture, isolating the failure to that representation.Compatibility: the precomputed payload remains zero-copy; only padding rows are mutated. Active route IDs and weights are unchanged. Kernels that already understand negative inactive IDs are unaffected because they receive an equivalent zero-weight route.
Validation: