Skip to content

Commit edcceec

Browse files
committed
modify number of head 8 to 12
1 parent fa89d0d commit edcceec

File tree

2 files changed

+308
-308
lines changed

2 files changed

+308
-308
lines changed

5-2.BERT/BERT-Torch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
batch_size = 6
1818
max_pred = 20 # max tokens of prediction
1919
n_layers = 12
20-
n_heads = 8
20+
n_heads = 12
2121
d_model = 768
2222
d_ff = 768*4 # 4*d_model, FeedForward dimension
2323
d_k = d_v = 64 # dimension of K(=Q), V

0 commit comments

Comments
 (0)