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

No module named 'lmformatenforcer' #197

Open
Mars-1990 opened this issue May 23, 2024 · 1 comment
Open

No module named 'lmformatenforcer' #197

Mars-1990 opened this issue May 23, 2024 · 1 comment

Comments

@Mars-1990
Copy link

Traceback (most recent call last):
File "/home/hirpa/fzq/2024/code/functionary/server_vllm.py", line 39, in
from functionary.vllm_inference import process_chat_completion
File "/home/hirpa/fzq/2024/code/functionary/functionary/vllm_inference.py", line 13, in
from functionary.inference import enforce_tool_choice, prepare_messages_for_inference
File "/home/hirpa/fzq/2024/code/functionary/functionary/inference.py", line 4, in
from lmformatenforcer import CharacterLevelParser, JsonSchemaParser
ModuleNotFoundError: No module named 'lmformatenforcer'

@jeffrey-fong
Copy link
Contributor

Can you try again after running pip install requirements.txt to download the latest dependencies? lm-format-enforcer is one of the dependencies of vLLM and should be installed when installing the vLLM version (v0.4.1) in our requirements.txt. I believe you should be using an older version of vLLM instead. Let me know if the problem persists.

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

2 participants