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

Signed-off-by: Ronald Xu <ronaldxu@amazon.com>
This commit is contained in:
RonaldBXu
2025-05-27 22:09:14 -07:00
committed by GitHub
parent 774c5fde30
commit 5e13c07d00
2 changed files with 6 additions and 2 deletions

View File

@@ -70,7 +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):
if k not in kwargs:
setattr(self, k, v)
@classmethod