nemo_automodel.components.speculative.eagle.target_v12
nemo_automodel.components.speculative.eagle.target_v12
Target-model wrapper for EAGLE-1 / EAGLE-2 training.
Module Contents
Classes
Functions
API
Dataclass
Target-model outputs needed by the EAGLE-1 / EAGLE-2 trainer.
attention_mask
input_hidden_states
input_ids
loss_mask
target_hidden_states
target_logits
Thin wrapper that exposes hidden-state supervision from a causal LM.
model
Run the target transformer and prepare shifted supervision tensors.
Return the target model input embeddings.
Return the target model lm_head.
Shift a batched sequence tensor left and zero-fill the tail.