~/alpa$ python3 tests/test_install.py
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
python3 tests/test_install.py
Traceback (most recent call last):
File "tests/test_install.py", line 13, in <module>
from alpa import (init, parallelize, grad, ShardParallel, automatic_layer_construction,
File "/home/ubuntu/alpa/alpa/__init__.py", line 1, in <module>
from alpa.api import (init, shutdown, parallelize, grad, value_and_grad,
File "/home/ubuntu/alpa/alpa/api.py", line 15, in <module>
from alpa.parallel_method import ParallelMethod, ShardParallel
File "/home/ubuntu/alpa/alpa/parallel_method.py", line 26, in <module>
from alpa.pipeline_parallel.compile_executable import compile_pipeshard_executable
File "/home/ubuntu/alpa/alpa/pipeline_parallel/compile_executable.py", line 27, in <module>
from alpa.pipeline_parallel.stage_construction import (
File "/home/ubuntu/alpa/alpa/pipeline_parallel/stage_construction.py", line 10, in <module>
import numba
File "/home/ubuntu/.local/lib/python3.8/site-packages/numba/__init__.py", line 200, in <module>
_ensure_critical_deps()
File "/home/ubuntu/.local/lib/python3.8/site-packages/numba/__init__.py", line 140, in _ensure_critical_deps
raise ImportError("Numba needs NumPy 1.21 or less")
ImportError: Numba needs NumPy 1.21 or less
I disable numba importerror in the end and passed this test, was wondering what would be the potential problems.
install from setup.py (numpy version 1.21.6)
after install numpy=1.22.0
I disable numba importerror in the end and passed this test, was wondering what would be the potential problems.