vllm.v1.worker.gpu.spec_decode.eagle.utils ¶
Functions:
-
get_target_lm_head–The target's lm_head — from get_language_model() for
_should_share(eagle, flag, draft, target) ¶
Share when the draft has no own copy, or its copy matches the target.
Source code in vllm/v1/worker/gpu/spec_decode/eagle/utils.py
get_target_lm_head(target_model, target_language_model) ¶
The target's lm_head — from get_language_model() for *ForConditionalGeneration targets, else the top-level module.