nemo_automodel.components.speculative.eagle.vllm_target
nemo_automodel.components.speculative.eagle.vllm_target
vLLM adapter for the EAGLE-3 target backend.
A thin engine adapter on top of the engine-agnostic contract in
:mod:nemo_automodel.components.speculative.eagle.target_runner: it builds a
vLLM runner and wraps it in :class:RunnerEagle3TargetModel. It mirrors
:mod:nemo_automodel.components.speculative.eagle.sglang_target exactly, only
swapping the engine, so the supervision contract (shift / aux-concatenation
semantics, aux-layer defaulting, embedding access) is shared and a vLLM run is
numerically equivalent to the co-located HuggingFace one.
vLLM is imported lazily (only inside :meth:VLLMEagle3TargetModel.from_pretrained),
and the vLLM-internal forward is isolated further in
:mod:nemo_automodel.components.speculative.eagle.vllm_runner, so importing this
module never pulls in vLLM.
Module Contents
Classes
API
Bases: RunnerEagle3TargetModel
EAGLE-3 target backend whose runner is vLLM.
Adds only vLLM construction; the supervision contract is inherited from
:class:RunnerEagle3TargetModel.
Build a vLLM runner for model_path and wrap it as a target backend.
vLLM is imported here (not at module load) so this module stays
importable in environments without vLLM; vllm_kwargs are passed
through to vllm.LLM for endpoint / parallelism / memory tuning.