vllm.models.kimi_k3.amd.specialized_decode.runtime.guards
¶
The refusals that need the loaded model (weight_reasons) or the bound KV
caches (cache_reasons), and the fail-stop watch on the kernels' error words.
Each refusal reports every reason, not only the first.
Classes:
-
FailStop–Stops every TP rank at the same step once any of them gave up an in-kernel
Functions:
-
cache_reasons–Every KDA layer's (conv, recurrent) state as K1 reads them.
-
weight_reasons–model: the loadedKimiLinearModel; every kernel layer's weights as
FailStop
¶
Stops every TP rank at the same step once any of them gave up an in-kernel
wait (its health word FAILED, mono.abi). Each step queues a D2H copy of
this rank's word and keeps the newest copy that has landed, without blocking;
every CHECK_EVERY steps the ranks agree on those over the TP CPU group and all
raise together. A rank that raised alone would leave the others in the next
collective (the drafter's) for ever. A failure is seen within about
CHECK_EVERY steps.
Methods:
-
after_step–Once per step on every TP rank (compute_logits, itself collective).
Source code in vllm/models/kimi_k3/amd/specialized_decode/runtime/guards.py
after_step()
¶
Once per step on every TP rank (compute_logits, itself collective).
Source code in vllm/models/kimi_k3/amd/specialized_decode/runtime/guards.py
cache_reasons(caches)
¶
Every KDA layer's (conv, recurrent) state as K1 reads them.
Source code in vllm/models/kimi_k3/amd/specialized_decode/runtime/guards.py
weight_reasons(model)
¶
model: the loaded KimiLinearModel; every kernel layer's weights as
the kernels read them, and the MoE backend that lays them out.