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

Issues with running serve.sh #32

Open
palebluedot19 opened this issue Jan 17, 2025 · 0 comments
Open

Issues with running serve.sh #32

palebluedot19 opened this issue Jan 17, 2025 · 0 comments

Comments

@palebluedot19
Copy link

palebluedot19 commented Jan 17, 2025

I installed Nanoflow by following the instructions in the installation section. The installation was done locally (not docker container). After the installation is done, I run the command ./serve.sh and get an error:

Enter the number corresponding to your model choice: 5
Traceback (most recent call last):
  File "/home/ubuntu/Nanoflow/pipeline/utils/serve_8B.py", line 6, in <module>
    import pllm_python
ModuleNotFoundError: No module named 'pllm_python'
cat: trace.req_words: No such file or directory

To fix this error, I tried to run the following command:

export PYTHONPATH=${PYTHONPATH}:/path/to/Nanoflow/pipeline/build

This doesn't help.

I created a pllm_python directory in site-packages

mkdir pllm_python

and copied all the libraries in the pipeline/build directory to pllm_python in site-packages
I got around the above error, but ran into another error

Traceback (most recent call last):
  File "/home/ubuntu/Nanoflow/pipeline/utils/serve_8B.py", line 17, in <module>
    from pybindUtil import toGPU, toGPUShard, initUpdateData, genInitData, load_pipeline_config
  File "/home/ubuntu/Nanoflow/pipeline/utils/pybindUtil.py", line 91, in <module>
    prefill_tokens_num: int) -> list[pllm_python.VortexUpdateData]:
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pllm_python' has no attribute 'VortexUpdateData'

How do I get it to work? Thanks.

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

1 participant