-
Notifications
You must be signed in to change notification settings - Fork 505
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
ImportError: cannot import name 'build_regex_from_object' from 'outlines.fsm.json_schema' #203
Comments
Update: this seems to work again when installing from source, so the bug might be in the distribution. |
i meet the same problem |
+1 for this. I meet the same problem when I use llava-v1.6-mistral-7b |
The error is caused by wrong The workaround is to manually specify the version constraint of the
|
This is caused by the outlines API change, and we temporarily pin the outlines' version here #196. Thanks @crissed53. |
Pinning the outlines breaks up everything around it. |
Downgrade outlines to the project specified version, e.g. # for sglang 0.1.12
pip install outlines==0.0.27 |
Description
Running
python -m sglang.launch_server
yields this error. I was running it in a container, which I'll describe below.Reproducing
Here's the dockerfile, super simple:
Running:
Notes
I also tried this with the python 3.10 image, same issue. It also didn't work outside of docker.
The text was updated successfully, but these errors were encountered: