Skip to content

Add Falcon H1 model #336

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

johnmai-dev
Copy link
Contributor

@johnmai-dev johnmai-dev commented Jun 21, 2025

This PR ports Falcon H1.

Thanks to my idol @Blaizzy !
Source: ml-explore/mlx-lm#231

image

@johnmai-dev johnmai-dev marked this pull request as ready for review June 22, 2025 05:14

// MARK: - Mamba2Cache KVCache

private class Mamba2Cache: KVCache {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is now a:

/// Simple cache for Mamba-style state space models
public class MambaCache: BaseKVCache {

added in #334 -- will that work for this? If not, would it make sense to move Mamba2Cache into KVCache.swift?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem, I need to take some time to study #334.

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