Skip to content

Commit

Permalink
Fix bug in mamba2_simple slow path conv1d state-spaces#393
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfgu committed Jul 22, 2024
1 parent c0a00bd commit a71bb5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mamba_ssm/modules/mamba2_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def forward(self, u, seq_idx=None):
xBC = self.act(
self.conv1d(xBC.transpose(1, 2)).transpose(1, 2)
) # (B, L, self.d_inner + 2 * ngroups * d_state)
xBC = xBC[:, :seqlen, :]
else:
xBC = causal_conv1d_fn(
x=xBC.transpose(1, 2),
Expand Down

0 comments on commit a71bb5a

Please sign in to comment.