[Fix] fix ernie4_5_vl model torch format loadding (#4447)

* fix

* add test

* fix test

* fix test

* update
This commit is contained in:
Ayakouji
2025-11-06 14:34:21 +08:00
committed by GitHub
parent fc8bef2c95
commit 831266da7a

View File

@@ -170,8 +170,8 @@ class Ernie4_5_VLMoeBlock(nn.Layer):
# TODO(hehongyu): remove this after fix model network
setattr(
self.gate.weight,
"model_format",
"",
"weight_need_transpose",
False,
)
def forward(self, hidden_states: paddle.Tensor):