I am trying my hands on LLaMA LLM. I am trying out the "README.md" documentation from site https://github.com/juncongmoo/pyllama. Below command worked fine and pyllama module got installed
pip install pyllama -U
Then when I ran the bellow command
python -m llama.download --model_size 7B
for downloading the checkpoints and tokenizers for model. First I got the error for "transformers" module. I installed the 'transformer' module using pip. And ran the above command again. Then I got error "AttributeError: module 'itree' has no attribute 'Node'" which is not getting resolved. Help needed. Error stack trace is as below.
Traceback (most recent call last):
File "C:\Python\Python310\lib\runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Python\Python310\lib\runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "C:\Python\Python310\lib\site-packages\llama\__init__.py", line 17, in <module>
from .model_single import ModelArgs, Transformer
File "C:\Python\Python310\lib\site-packages\llama\model_single.py", line 7, in <module>
import hiq
File "C:\Python\Python310\lib\site-packages\hiq\__init__.py", line 59, in <module>
from .tree import get_duration_from_hiq_string, get_graph_from_string, Tree
File "C:\Python\Python310\lib\site-packages\hiq\tree.py", line 10, in <module>
from hiq import tree_func
File "C:\Python\Python310\lib\site-packages\hiq\tree_func.py", line 19, in <module>
from hiq.node_utils import _c, _d
File "C:\Python\Python310\lib\site-packages\hiq\node_utils.py", line 11, in <module>
from hiq.node import Node
File "C:\Python\Python310\lib\site-packages\hiq\node.py", line 17, in <module>
Node = itree.Node
AttributeError: module 'itree' has no attribute 'Node'
I uninstalled the itree module and installed the latest one. But no luck. The module versions are as below
Module | Version |
---|---|
transformers | 4.32.0 |
itree | 0.0.5 |
pyllama | 0.0.9 |
hiq | 0.0.1 |