[Model] Support post-norm architecture for EAGLE-3 supeculators (#42764)
Signed-off-by: Doğaç Eldenk <dogacel@gmail.com>
This commit is contained in:
@@ -5210,9 +5210,14 @@ class GPUModelRunner(
|
||||
layer_ids = getattr(hf_config, "eagle_aux_hidden_state_layer_ids", None)
|
||||
if not layer_ids:
|
||||
dflash_config = getattr(hf_config, "dflash_config", None)
|
||||
eagle_config = getattr(hf_config, "eagle_config", None)
|
||||
|
||||
if dflash_config and isinstance(dflash_config, dict):
|
||||
layer_ids = dflash_config.get("target_layer_ids")
|
||||
|
||||
if eagle_config and isinstance(eagle_config, dict):
|
||||
layer_ids = eagle_config.get("eagle_aux_hidden_state_layer_ids")
|
||||
|
||||
if layer_ids and isinstance(layer_ids, (list, tuple)):
|
||||
return tuple(layer_ids)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user