Skip to content

Commit

Permalink
Avoid use of deprecated xla_bridge.get_backend().platform
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Vanderplas <[email protected]>
  • Loading branch information
rasmi and jakevdp authored Feb 6, 2025
1 parent e3d7298 commit 52d10f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/commands/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def run(self):
flax_version = flax.__version__
jax_version = jax.__version__
jaxlib_version = jaxlib.__version__
jax_backend = jax.lib.xla_bridge.get_backend().platform
jax_backend = jax.default_backend()

info = {
"`transformers` version": version,
Expand Down

0 comments on commit 52d10f6

Please sign in to comment.