nemo_automodel.components.speculative.dflash.cached_target
nemo_automodel.components.speculative.dflash.cached_target
Load only the frozen token tables used by cached DFlash training.
Module Contents
Classes
Functions
API
Dataclass
Target token embedding and output projection, both frozen.
embed_tokens
lm_head
Dataclass
Checkpoint keys for the two target tables read by DFlash.
embedding_key
lm_head_key
Read the target’s input and output tables without building the target.
Parameters:
target_model_name_or_path
Hugging Face safetensors checkpoint.
config
Target config, with vocabulary, hidden size and tying metadata.
device
Device for the frozen tables.
dtype
Compute dtype used by the draft.
Returns: DFlashTargetTables
Frozen tables, sharing the same weight when an omitted output head