mamba
mamba copied to clipboard
How to change mamba to mamba2
Is it just a matter of changing the version of mamba_ssm from 1.x to 2.x?
Or would upgrading mamba_ssm from 1.x to 2.x change anything?
it's just about picking which model to import from https://github.com/state-spaces/mamba/tree/main/mamba_ssm/modules
however if you're using the MixerModel class, add ssm_cfg={"layer": "Mamba2"} as an argument