-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Attribute error on import: module 'ml_dtypes' has no attribute 'float8_e4mb11' #17693
Comments
Hi - thanks for the report. |
Note this error came from JAX itself, so the fix is either to upgrade JAX or downgrade |
I can confirm the same error when installing jax-metal 0.0.4 in a new venv with Python 3.10.9. I can also confirm that |
Identical experience to @peregilk, and downgrading ml_dtypes to 0.2.0 fixed the issue (thanks!). I'm also reliant on jax-metal - I'll leave a mention on the Apple developer forum, as their dependencies should reflect this change. |
Thanks for reporting it. Pls downgrade ml-dtypes==0.2.0 for now. We will add it to setup instructions and fix the dependency in the next release. |
Sorry for off topic. What b11 means in the type name? I found that
|
It's described in the README of https://github.com/jax-ml/ml_dtypes – it refers to the exponent bias. For example, >>> import jax.numpy as jnp
>>> info=jnp.finfo(jnp.float8_e4m3b11fnuz); (info.min, info.max)
(-30, 30)
>>> info=jnp.finfo(jnp.float8_e4m3fnuz); (info.min, info.max)
(-240, 240) |
I'm going to close this, because I think this has been resolved. If you run into this error, you can fix it by either upgrading JAX to a more recent version (v0.4.12 or newer should work), or downgrading ml_dtypes to v0.3.0 or older. |
Description
Jax requires ml_dtypes >= 0.2.0. Now, ml_dytpes 0.3.0 is installed by default which raises the following error:
What jax/jaxlib version are you using?
jax 0.4.10, jaxlib=0.4.10+cuda11.cudnn86
Which accelerator(s) are you using?
GPU
Additional system info
No response
NVIDIA GPU info
No response
The text was updated successfully, but these errors were encountered: