[Feature][Spec Decode] MTP with separate (possibly quantized) lm head for nemotron (#54574)
Signed-off-by: Yoav Miron <yomiron@nvidia.com> Signed-off-by: YoavMiron <yomiron@nvidia.com> Co-authored-by: Benjamin Chislett <chislett.ben@gmail.com>
This commit is contained in:
co-authored by
Benjamin Chislett
parent
9b959b8657
commit
40e6042ec8
@@ -620,16 +620,15 @@ class SpeculativeConfig:
|
||||
)
|
||||
factors.append(uses_aux_hidden_states)
|
||||
|
||||
if uses_aux_hidden_states and self.draft_model_config is not None:
|
||||
if self.draft_model_config is not None:
|
||||
factors.append(self.draft_model_config.compute_hash())
|
||||
|
||||
# The specific layers used also affect the computation graph.
|
||||
layer_ids = getattr(
|
||||
self.draft_model_config.hf_config,
|
||||
"eagle_aux_hidden_state_layer_ids",
|
||||
None,
|
||||
)
|
||||
if layer_ids is not None:
|
||||
if layer_ids is not None and uses_aux_hidden_states:
|
||||
# Convert to tuple to make it hashable
|
||||
factors.append(tuple(layer_ids))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user