vllm.models.kimi_k3.amd.specialized_decode.hooks
¶
The specialized decode's hooks on KimiLinearForCausalLM, kept here so the
model only calls them: init_specialized_decode in __init__ (after the config
check, which runs before any module allocates weights), plan_specialized_decode
in forward and after_specialized_decode_step in compute_logits. The
model state (model_state.KimiK3ModelState) builds the executor after load.
Classes:
-
SpecializedDecodeMixin–self.modelis theKimiLinearModelthe executor runs over.
SpecializedDecodeMixin
¶
self.model is the KimiLinearModel the executor runs over.
Methods:
-
init_specialized_decode–config:specialized_decode_config(vllm_config), None for the -
plan_specialized_decode–This step's plan (
Step.layer(i)per decoder layer), None for the
Source code in vllm/models/kimi_k3/amd/specialized_decode/hooks.py
init_specialized_decode(config)
¶
config: specialized_decode_config(vllm_config), None for the
stock decode.
Source code in vllm/models/kimi_k3/amd/specialized_decode/hooks.py
plan_specialized_decode(positions, intermediate_tensors)
¶
This step's plan (Step.layer(i) per decoder layer), None for the
stock forward.