Skip to content

Conversation

@geoffroyO
Copy link

@geoffroyO geoffroyO commented Nov 26, 2025

Migration to JAX ffi

This draft introduces an initial migration to the new JAX FFI. The goal is to help collaborators transition away from deprecated APIs and ensure compatibility with JAX ≥ 0.8.

The current version has been tested on both an A100 GPU environment and macOS with jaxlib=0.8.1, and all tests passed without depreciation warning or errors.

I am also using this implementation in one of my own projects without issues so far.

@geoffroyO geoffroyO closed this Nov 26, 2025
@geoffroyO geoffroyO reopened this Nov 26, 2025
@geoffroyO
Copy link
Author

CI passing (#175)

Copy link
Collaborator

@dfm dfm left a comment

Choose a reason for hiding this comment

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

Thanks - This looks great!! Some small comments inline.

@geoffroyO
Copy link
Author

Thank you @dfm for your comments! I've addressed all of them. I ran into vmap issues on GPU when using skip_ffi_layout_processing=True. The fix was to use dimension-specific FFI bindings. Feel free to squash the commits 😅

@geoffroyO geoffroyO marked this pull request as ready for review November 30, 2025 12:46
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