projects
/
mygpt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
915db2e
)
OCDC
author
Francois Fleuret
<francois@fleuret.org>
Wed, 27 Jul 2022 14:22:26 +0000
(16:22 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 27 Jul 2022 14:22:26 +0000
(16:22 +0200)
mygpt.py
patch
|
blob
|
history
diff --git
a/mygpt.py
b/mygpt.py
index
ab16e1e
..
43711b3
100755
(executable)
--- a/
mygpt.py
+++ b/
mygpt.py
@@
-107,7
+107,8
@@
class MyGPT(nn.Module):
nn.LayerNorm(dim_model),
QKVAttention(
dim_in = dim_model,
- dim_qk = dim_keys, dim_v = dim_model // nb_heads,
+ dim_qk = dim_keys,
+ dim_v = dim_model // nb_heads,
nb_heads = nb_heads,
causal = True, attention_dropout = dropout
),