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 the vLLM example to work with batch requests #444

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Dec 18, 2023

I patched vllm.models_executor.layers.Sampler to be able to pass the sequence id to the logits processor. FSM states are held in a defaultdict so we don't need to know the number of sequences in advance.

@rlouf rlouf merged commit 920426c into outlines-dev:main Dec 18, 2023
4 checks passed
@rlouf rlouf deleted the vllm-batch branch December 18, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant