Skip to content

feat(models): add Falcon-H1 (Mamba2 + attention hybrid) #247

Closed

Description

@inureyes

Summary

Port Falcon-H1, a hybrid that runs Mamba2 (SSM) and attention in parallel within each block. mlxcel currently has falcon_mamba / griffin recurrent paths but not Falcon-H1.

Upstream reference

Notes

Falcon-H1 applies channel multipliers and runs SSM and attention in parallel per block, summing the two outputs. Reuse mlxcel's mamba2 / src/models/gated_delta.rs machinery and the hybrid cache pattern used by Jamba and Nemotron-H. Exclude the SSM path from paged batching as other SSM / hybrid models already do.

Acceptance criteria

  • src/models/falcon_h1.rs implemented (parallel SSM plus attention block with channel multipliers).
  • Registered in src/models/detection.rs.
  • Hybrid cache (SSM state plus KV) wired; SSM excluded from paged batching.
  • bf16 to f16 at the loading boundary; unit tests; docs/supported-models.md updated.
  • Validated with a real mlx-community Falcon-H1 checkpoint.

Effort

High (hybrid SSM plus attention).

Activity

  1. added
    status:backlog
    type:enhancement
    priority:medium
    area:models
    status:in-progress
    status:review
    status:done
    and removed
    status:backlog
    status:in-progress
    on Jun 13, 2026
  2. added this to the 0.3 milestone on Jun 21, 2026
  3. self-assigned this
    on Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:modelspriority:mediumstatus:donetype:enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions