mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-12-03 18:40:27 +00:00
update mha dim
This commit is contained in:
parent
68123a5433
commit
c0f564ee87
@ -239,7 +239,7 @@
|
||||
" self.head_dim = d_out // num_heads\n",
|
||||
"\n",
|
||||
" self.qkv = nn.Linear(d_in, 3 * d_out, bias=qkv_bias)\n",
|
||||
" self.proj = nn.Linear(d_in, d_out)\n",
|
||||
" self.proj = nn.Linear(d_out, d_out)\n",
|
||||
" self.dropout = nn.Dropout(dropout)\n",
|
||||
"\n",
|
||||
" self.register_buffer(\n",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user