Skip to content

Commit 434656b

Browse files
committed
fix
1 parent cf6d921 commit 434656b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/models/ernie4_5_moe/test_modeling_ernie4_5_moe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_load_balancing_loss(self):
100100
config.expert_interval = 1
101101
config.output_router_logits = True
102102
input_ids = input_dict["input_ids"]
103-
attention_mask = input_ids.ne(1).to(torch_device)
103+
attention_mask = input_ids.ne(config.pad_token_id).to(torch_device)
104104
model = Ernie4_5_MoeForCausalLM(config)
105105
model.to(torch_device)
106106
model.eval()

0 commit comments

Comments
 (0)