Skip to content

Adding support for Mamba version 2 #23

New issue

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

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Goekdeniz-Guelmez
Copy link
Contributor

No description provided.

@awni
Copy link
Member

awni commented Mar 17, 2025

Is this working now? Have you tested it recently?

@Goekdeniz-Guelmez
Copy link
Contributor Author

Goekdeniz-Guelmez commented Mar 17, 2025

Yes, but still the same gibberish output from my last test, I still couldn't find it, yet.

@Goekdeniz-Guelmez
Copy link
Contributor Author

Goekdeniz-Guelmez commented Mar 17, 2025

using the original models from state-space, I get decent outputs, but its just mamba codestral thats not working:

python -m mlx_lm.generate --model mlx-community/mamba2-130m-8bit --prompt "Rene Descartes was" -m 120
Fetching 6 files: 100%|████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00, 57195.05it/s]
==========
not only has a great deal to offer, but it also has a lot of value.

The company has a great deal to offer, but it also has a lot of value.

The company has a great deal to offer, but it also has a lot of value.

The company has a great deal to offer, but it also has a lot of value.

The company has a great deal to offer, but it also has a lot of value.

The company has a great deal to offer, but it also has a lot of value.


==========
Prompt: 6 tokens, 139.904 tokens-per-sec
Generation: 120 tokens, 62.461 tokens-per-sec
Peak memory: 0.823 GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants