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

Update vllm_integration.py to the latest version of outlines #1352

Merged
merged 8 commits into from
Jan 15, 2025

Conversation

denadai2
Copy link
Contributor

No description provided.



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" ?")
Copy link
Contributor Author

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 ?

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed

@denadai2 denadai2 requested a review from rlouf December 31, 2024 10:47
@rlouf rlouf merged commit 7b9012b into dottxt-ai:main Jan 15, 2025
6 checks passed
@rlouf
Copy link
Member

rlouf commented Jan 15, 2025

Thank you for contributing!

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

Successfully merging this pull request may close these issues.

2 participants