Skip to content

Commit

Permalink
Add mixin (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsRogge authored Jul 16, 2024
1 parent 8ffd905 commit 7fb78a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mamba_ssm/modules/mamba2.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
from mamba_ssm.ops.triton.ssd_combined import mamba_chunk_scan_combined
from mamba_ssm.ops.triton.ssd_combined import mamba_split_conv1d_scan_combined

from huggingface_hub import PyTorchModelHubMixin

class Mamba2(nn.Module):

class Mamba2(nn.Module, PyTorchModelHubMixin):
def __init__(
self,
d_model,
Expand Down

0 comments on commit 7fb78a5

Please sign in to comment.