We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6d921 commit 434656bCopy full SHA for 434656b
tests/models/ernie4_5_moe/test_modeling_ernie4_5_moe.py
@@ -100,7 +100,7 @@ def test_load_balancing_loss(self):
100
config.expert_interval = 1
101
config.output_router_logits = True
102
input_ids = input_dict["input_ids"]
103
- attention_mask = input_ids.ne(1).to(torch_device)
+ attention_mask = input_ids.ne(config.pad_token_id).to(torch_device)
104
model = Ernie4_5_MoeForCausalLM(config)
105
model.to(torch_device)
106
model.eval()
0 commit comments