-
Notifications
You must be signed in to change notification settings - Fork 10
migration to jax ffi for > 0.8 #189
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
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
|
CI passing (#175) |
dfm
left a comment
There was a problem hiding this 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.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
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 😅 |
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.