juncongmoo / pyllama

LLaMA: Open and Efficient Foundation Language Models
GNU General Public License v3.0
2.81k stars 311 forks source link

AttributeError: module 'numpy' has no attribute 'array' #43

Open jameswan opened 1 year ago

jameswan commented 1 year ago

(tf) C:\Users\James>python -m llama.download Traceback (most recent call last): File "C:\Users\James\anaconda3\envs\tf\lib\runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Users\James\anaconda3\envs\tf\lib\runpy.py", line 111, in _get_module_details import(pkg_name) File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\llama__init.py", line 1, in from .generation import LLaMA File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\llama\generation.py", line 6, in import torch File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\torch__init__.py", line 831, in from .functional import * # noqa: F403 File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\torch\functional.py", line 7, in import torch.backends.opt_einsum as opt_einsum File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\torch\backends\opt_einsum\init.py", line 9, in import opt_einsum as _opt_einsum # type: ignore[import] File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\opt_einsum\init__.py", line 5, in from . import blas File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\opt_einsum\blas.py", line 7, in from . import helpers File "C:\Users\James\anaconda3\envs\tf\lib\site-packages\opt_einsum\helpers.py", line 14, in _sizes = np.array([2, 3, 4, 5, 4, 3, 2, 6, 5, 4, 3, 2, 5, 7, 4, 3, 2, 3, 4]) AttributeError: module 'numpy' has no attribute 'array'