mlc-llm icon indicating copy to clipboard operation
mlc-llm copied to clipboard

[Bug] python -m mlc_chat.rest ERROR

Open lorentz-wu opened this issue 1 year ago • 2 comments

🐛 Bug

python -m mlc_chat.rest ERROR

To Reproduce

File "/data/myw/mlc-llm/python/mlc_chat/libinfo.py", line 72, in find_lib_path raise RuntimeError(message) RuntimeError: Cannot find libraries: libmlc_llm_module.so List of candidates: /data/mlc-llm/python/mlc_chat/libmlc_llm_module.so /data/mlc-llm/build/libmlc_llm_module.so /data/mlc-llm/build/Release/libmlc_llm_module.so /anaconda3/envs/mlc-llm-env/lib/libmlc_llm_module.so /usr/local/cuda/lib64/libmlc_llm_module.so libmlc_llm_module.so

lorentz-wu avatar Jun 06 '23 08:06 lorentz-wu

Seems that you didn't build any libmlc_llm_module.so..Could you double check? Also CC @sudeepag @Kathryn-cat if you guys could help elaborate how to obtain libmlc_llm_modyle.so

junrushao avatar Jun 06 '23 12:06 junrushao

@lorentz-wu We're in the process of making the module available via a python package, but in the mean time you need to first build the CLI from source (which will generate libmlc_llm_module.so) in order to use the REST API. Please check out the instructions here.

sudeepag avatar Jun 09 '23 02:06 sudeepag

closing due to inactive status, feel free to reopen if the latest version still have issue

tqchen avatar Jun 16 '23 15:06 tqchen