Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual build instructions fail #8

Open
catid opened this issue May 10, 2024 · 3 comments
Open

Manual build instructions fail #8

catid opened this issue May 10, 2024 · 3 comments

Comments

@catid
Copy link

catid commented May 10, 2024

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'
@catid catid changed the title Manual build instructions fail: Manual build instructions fail May 10, 2024
@jiazhihao
Copy link
Member

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)

@catid
Copy link
Author

catid commented May 10, 2024

(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

@Yang-YiFan
Copy link

Yang-YiFan commented May 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants