mirage-project/mirage

Manual build instructions fail

Opened this issue · 3 comments

Must be some missing instructions. I fixed a few obvious problems but it still doesn't work:

Installed /home/catid/mambaforge/envs/mirage/lib/python3.10/site-packages/mirage-0.1.0-py3.10-linux-x86_64.egg
Processing dependencies for mirage==0.1.0
Finished processing dependencies for mirage==0.1.0
(mirage) ➜  python git:(main) ✗ cd ..
(mirage) ➜  mirage git:(main) ✗ ls
build  cmake  CMakeLists.txt  config.cmake  cpp_examples  demo  deps  docker  img  include  INSTALL.md  LICENSE  python  README.md  scripts  src  tests

(mirage) ➜  mirage git:(main) ✗ python demo/demo_group_query_attention_spec_decode.py --checkpoint demo/checkpoint_group_query_attn_spec_decode.json
Traceback (most recent call last):
  File "/home/catid/sources/mirage/demo/demo_group_query_attention_spec_decode.py", line 1, in <module>
    import mirage as mi
  File "/home/catid/mambaforge/envs/mirage/lib/python3.10/site-packages/mirage-0.1.0-py3.10.egg/mirage/__init__.py", line 1, in <module>
    from .core import *
ModuleNotFoundError: No module named 'mirage.core'

Make sure you have installed cython. Otherwise, you will get a warning WARNING: cython is not installed!!!. We will convert this to an error message (instead of a warning)

(mirage) ➜  mirage git:(main) ✗ python demo/demo_group_query_attention_spec_decode.py --checkpoint demo/checkpoint_group_query_attn_spec_decode.json
Traceback (most recent call last):
  File "/home/catid/sources/mirage/demo/demo_group_query_attention_spec_decode.py", line 1, in <module>
    import mirage as mi
  File "/home/catid/mambaforge/envs/mirage/lib/python3.10/site-packages/mirage-0.1.0-py3.10.egg/mirage/__init__.py", line 1, in <module>
    from .core import *
ModuleNotFoundError: No module named 'mirage.core'
(mirage) ➜  mirage git:(main) ✗ cython --version
Cython version 3.0.10

Cython is not the issue. Seems to be something else. Perhaps the docker version is working because it's referencing some weird branch in another repo instead of this one

I saw a similar error message when I'm trying the import after building from source

***$ python3.10 demo/demo_group_query_attention_spec_decode.py --checkpoint demo/checkpoint_group_query_attn_spec_decode.json
Traceback (most recent call last):
  File "/home/***/mirage/demo/demo_group_query_attention_spec_decode.py", line 1, in <module>
    import mirage as mi
  File "/usr/local/lib/python3.10/dist-packages/mirage-0.1.0-py3.10-linux-x86_64.egg/mirage/__init__.py", line 1, in <module>
    from .core import *
  File "mirage/_cython/core.pyx", line 72, in init mirage.core
NameError: name 'dtype' is not defined