Comments (4)
I cannot reproduce this in a fresh virtualenv. Can you confirm that doing
python -m venv env
source env/bin/activate
pip install jax==0.4.27 jaxlib==0.4.27 numpy==2.0
python -c "import jax"
reproduces the issue for you?
from jax.
It look like the jaxlib
package in Conda was compiled for NumPy 1.X? I would recommend to either install JAX from PyPI via pip
or open an issue in https://github.com/conda-forge/jaxlib-feedstock.
from jax.
Closing. We don't provide the conda packages for JAX: please file issues for those against the conda-forge feedstock linked above. The pip packages we ship will work with NumPy 2.0, and we recommend you use those if you want NumPy 2.0 support, even if you're otherwise using conda-forge.
from jax.
Since my computer only supports the CPU feature, I can install jaxlib's conda and mamba. I tried again today, and it gave the same error.
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "", line 1, in
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/init.py", line 37, in
import jax.core as _core
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/core.py", line 18, in
from jax._src.core import (
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/core.py", line 39, in
from jax._src import dtypes
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/dtypes.py", line 33, in
from jax._src import config
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/config.py", line 27, in
from jax._src import lib
File "/home//miniconda3/envs/x11/lib/python3.11/site-packages/jax/_src/lib/init.py", line 87, in
import jaxlib.xla_client as xla_client
File "/home/*/miniconda3/envs/x11/lib/python3.11/site-packages/jaxlib/xla_client.py", line 32, in
from . import xla_extension as _xla
AttributeError: _ARRAY_API not found
from jax.
Related Issues (20)
- JAX JIT Compilation Issue with jnp.std and Configuration Setting HOT 2
- FP8 XLA matmul fusion into `__cublas$lt$matmul$f8` not fully working HOT 2
- guidance on how to properly use lax.reduce on an multi-dimension array. HOT 1
- Partial of a vmap function HOT 2
- Support dlpack pinned host memory device type (kDLCPUPinned / kDLCUDAHost)
- Issue with shardmap when trying to use static arguments HOT 6
- TPUVM program hangs when using jax_compilation_cache_dir with wrong gcs directory HOT 8
- Getting different results from CPU vs. CUDA backend HOT 3
- Accidentally exponential-time analysis pass in compiler? HOT 9
- Local shards accessed using devices_indices_map are scaled by # of pods HOT 2
- Incorrect Jacobian of `jax.scipy.special.logsumexp` when `b` contains a `0` HOT 1
- Accuracy of `jax.experimental.sparse.spsolve` HOT 3
- How can I implement a custom operations with stateful resource? HOT 6
- all inputs are nans in a next step iterationwhile using `jax.scipy.optimize.minimize` HOT 1
- INVALID_ARGUMENT: Mismatched PJRT plugin PJRT API version HOT 5
- [pallas] Documentation for tpu compiler options
- Deadlock When Running distributed.initialize() on one TPU Host by Accident HOT 1
- Pipelined model(1F1B pipeline parallelism) implementation in Jax.
- Wrong normalization in FFT methods HOT 4
- DCT normalization affects distribution of spectral coefficients
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jax.