Skip to content

Commit

Permalink
modify number of head 8 to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
graykode committed Apr 4, 2019
1 parent fa89d0d commit edcceec
Show file tree
Hide file tree
Showing 2 changed files with 308 additions and 308 deletions.
2 changes: 1 addition & 1 deletion 5-2.BERT/BERT-Torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
batch_size = 6
max_pred = 20 # max tokens of prediction
n_layers = 12
n_heads = 8
n_heads = 12
d_model = 768
d_ff = 768*4 # 4*d_model, FeedForward dimension
d_k = d_v = 64 # dimension of K(=Q), V
Expand Down
Loading

0 comments on commit edcceec

Please sign in to comment.