[V1] [Bugfix] eagle bugfix and enable correct lm_head for multimodal (#18034)

Signed-off-by: Ronald Xu <ronaldxu@amazon.com>
This commit is contained in:
RonaldBXu
2025-05-23 00:37:18 -07:00
committed by GitHub
parent 60cad94b86
commit 4c611348a7
2 changed files with 6 additions and 3 deletions

View File

@@ -70,8 +70,7 @@ class EAGLEConfig(PretrainedConfig):
if self.model is not None:
for k, v in self.model.to_dict().items():
if not hasattr(self, k):
setattr(self, k, v)
setattr(self, k, v)
@classmethod
def from_pretrained(