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 bit_transformer.py:
class Transformer(nn.Module): def forward(self, x: Tensor, *args, **kwargs) -> Tensor: for attn, ffn in zip(self.layers, self.ffn_layers): # print(x.shape) x, _ = attn(x, x, x, is_causal=True, *args, **kwargs) x = x + x x = ffn(x) + x return x
Is the line x = x + x wrong? This seems not a residual connection.
x = x + x
The text was updated successfully, but these errors were encountered:
@qianlong0502 fixed it now excuse me, thanks for the catch!
Sorry, something went wrong.
kyegomez
No branches or pull requests
In bit_transformer.py:
Is the line
x = x + x
wrong? This seems not a residual connection.Upvote & Fund
The text was updated successfully, but these errors were encountered: