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

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-05-23 17:18:22 +08:00
committed by GitHub
parent a1fe24d961
commit fbb13a2c15
2 changed files with 3 additions and 6 deletions

View File

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