mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
update mha dim
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user