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

ModuleNotFoundError: No module named 'pipeline.constants' #299

Open
twmht opened this issue Nov 10, 2023 · 2 comments
Open

ModuleNotFoundError: No module named 'pipeline.constants' #299

twmht opened this issue Nov 10, 2023 · 2 comments

Comments

@twmht
Copy link

twmht commented Nov 10, 2023

Following the instructions in https://github.com/Luodian/Otter/blob/main/docs/server_host.md

Traceback (most recent call last):
  File "/home/acer/.pyenv/versions/3.9.16/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/acer/.pyenv/versions/3.9.16/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/shared/Otter/pipeline/serve/model_worker.py", line 23, in <module>
    from pipeline.constants import WORKER_HEART_BEAT_INTERVAL
ModuleNotFoundError: No module named 'pipeline.constants'

any idea?

@ppsmk388
Copy link

ppsmk388 commented Dec 9, 2023

I meet the same problem

@Luodian
Copy link
Owner

Luodian commented Dec 9, 2023

Hi sorry we've changed to the serving/hosting logic from original fastchat (since it involves so many codes and files, we wish to make it easier and quicker to host new demo).

to hosting a backend endpoint:
https://github.com/Luodian/Otter/blob/main/pipeline/serve/deploy/otterhd_endpoint.py

The frontend code:
https://huggingface.co/spaces/Otter-AI/OtterHD-Demo/blob/main/app.py

But if you aim at serving models in old way, you could checkout to branch:
https://github.com/Luodian/Otter/blob/model_serving

If you meet errors about gradio, you may need to fix the gradio version and see the updated doc here:
https://github.com/Luodian/Otter/blob/model_serving/docs/server_host.md

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

4 participants