-
Notifications
You must be signed in to change notification settings - Fork 533
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
Update vllm_integration.py to the latest version of outlines #1352
base: main
Are you sure you want to change the base?
Conversation
|
||
|
||
class Person(BaseModel): | ||
first_name: str | ||
surname: str | ||
|
||
|
||
llm = vllm.LLM(model="mistralai/Mistral-7B-v0.1", max_model_len=512) | ||
logits_processor = JSONLogitsProcessor(schema=Person, llm=llm, whitespace_pattern=r" ?") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need whitespace_pattern @rlouf ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s helpful for smaller models yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
No description provided.