mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-27 11:21:32 +08:00
nits
This commit is contained in:
parent
9f8a6a3509
commit
b10afe3662
@ -62,6 +62,7 @@ class MambaRMSNormGated(nn.Module):
|
||||
def silu(x):
|
||||
return x * mx.sigmoid(x)
|
||||
|
||||
|
||||
def ssd(x, A, B, C, chunk_size):
|
||||
batch, seqlen, nheads, dim = x.shape
|
||||
B = mx.expand_dims(B, axis=2)
|
||||
@ -175,7 +176,7 @@ class Mamba2Block(nn.Module):
|
||||
|
||||
# Calculate split indices and slice tensors
|
||||
z = proj[..., :self.d_inner]
|
||||
x_conv = proj[..., self.d_inner:self.d_inner + (self.d_inner + 2 * self.d_state)]
|
||||
x_conv = proj[..., self.d_inner:self.d_inner + (self.d_inner + 2 * self.n_groups * self.d_state)]
|
||||
dt = proj[..., -self.n_heads:]
|
||||
|
||||
# Process time steps
|
||||
|
Loading…
Reference in New Issue
Block a user