Skip to content
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

[host_callback] Adjust the legacy compatibility mode for call_with_device #23789

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

[host_callback] Adjust the legacy compatibility mode for call_with_device

The jax.experimental.host_callback module is deprecated and will be removed.
See #20385.

The next step in the removal is to flip the flag --jax_host_callback_legacy to False, meaning that the host callback APIs will be implemented by way of io_callback. In this mode, the call_with_device and tap_with_device cannot be supported.

We add a temporary mechanism to be used internally for a couple of projects that still use call_with_device: allow the use but force the device to be the first device. This mechanism is not used externally, and attempting to use call_with_device will continue to raise an error.

…vice

The jax.experimental.host_callback module is deprecated and will be removed.
See #20385.

The next step in the removal is to flip the flag `--jax_host_callback_legacy` to `False`, meaning that the host callback APIs will be implemented by way of `io_callback`. In this mode, the `call_with_device` and `tap_with_device` cannot be supported.

We add a temporary mechanism to be used internally for a couple of projects that still use `call_with_device`: allow the use but force the device to be the first device. This mechanism is not used externally, and attempting to use `call_with_device` will continue to raise an error.

PiperOrigin-RevId: 676720231
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.

1 participant