Skip to content

Conversation

@smdesai
Copy link
Contributor

@smdesai smdesai commented Oct 3, 2025

@adrgrondin
Copy link
Contributor

Nice job was working on it too! Works well with Granite 4 h and non-h models.

Just a suggestion maybe better to move SSM code to a SSM.swift file like mlx-lm does?

@smdesai
Copy link
Contributor Author

smdesai commented Oct 5, 2025

Nice job was working on it too! Works well with Granite 4 h and non-h models.

Just a suggestion maybe better to move SSM code to a SSM.swift file like mlx-lm does?

@adrgrondin Thanks. I'm glad it works well for you.
Yes, moving the code out is a good idea as it may help with future mamba style ports.

@davidkoski
Copy link
Collaborator

SSM was also added here: https://github.com/ml-explore/mlx-swift-examples/blob/main/Libraries/MLXLLM/Models/SSM.swift

Please take a look and see what it takes to integrate with that. Thanks!

@smdesai
Copy link
Contributor Author

smdesai commented Oct 7, 2025

@davidkoski Now using the SSM that you referenced above.

Copy link
Collaborator

@davidkoski davidkoski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@davidkoski davidkoski merged commit 6e987d8 into ml-explore:main Oct 7, 2025
4 checks passed
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.

3 participants