We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In transformer.py, in class MultiHeadedSelfAttention() we have the var declaration:
self.proj_q = nn.Linear(dim, dim) self.proj_k = nn.Linear(dim, dim) self.proj_v = nn.Linear(dim, dim)
but wasn't suposed to be Q, K and V an independent trainable matrix per head? E.g. if num_head = 12, wasn't that suposed to be like:
set = [] for i in range(12): set.append([nn.Linear(dim, dim), nn.Linear(dim, dim), nn.Linear(dim, dim)])
Regards!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In transformer.py, in class MultiHeadedSelfAttention() we have the var declaration:
but wasn't suposed to be Q, K and V an independent trainable matrix per head? E.g. if num_head = 12, wasn't that suposed to be like:
Regards!
The text was updated successfully, but these errors were encountered: