Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion makeMoE_Concise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
"\n",
" \n",
" def forward(self, mh_output):\n",
" # mh_ouput is the output tensor from multihead self attention block\n",
" # mh_output is the output tensor from multihead self attention block\n",
" logits = self.topkroute_linear(mh_output)\n",
"\n",
" #Noise logits\n",
Expand Down
4 changes: 2 additions & 2 deletions makeMoE_from_Scratch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1393,8 +1393,8 @@
" self.top_k = top_k\n",
" self.linear =nn.Linear(n_embed, num_experts)\n",
"\n",
" def forward(self, mh_ouput):\n",
" # mh_ouput is the output tensor from multihead self attention block\n",
" def forward(self, mh_output):\n",
" # mh_output is the output tensor from multihead self attention block\n",
" logits = self.linear(mh_output)\n",
" top_k_logits, indices = logits.topk(self.top_k, dim=-1)\n",
" zeros = torch.full_like(logits, float('-inf'))\n",
Expand Down