Skip to content

Commit 40855c0

Browse files
committed
test
1 parent 5287063 commit 40855c0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

paddlenlp/transformers/deepseek_v2/modeling.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ def forward(self, hidden_states):
741741
return scores, routing_map, l_aux, l_zloss
742742

743743
capacity, combine_weights, dispatch_mask, exp_counts, l_aux, l_zloss = self.topkgating(scores)
744-
dispatch_mask.stop_gradient = True
745-
exp_counts.stop_gradient = True
746744
return capacity, combine_weights, dispatch_mask, exp_counts, l_aux, l_zloss
747745

748746

0 commit comments

Comments
 (0)