Skip to content

Introduce support for dynamic batching #1662

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

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

baijumeswani
Copy link
Collaborator

The changes in #1580 introduce a new API in onnxruntime-genai that enables continuous submission of requests to a generation engine. Internally, the scheduler statically batches these requests, allowing the API to interface seamlessly with models designed for static batching.

This pull request lays the groundwork for dynamic request batching by incorporating concepts from vLLM. Specifically, it implements a block-based key-value cache manager.

To support dynamic batching, the underlying model must handle variable-length inputs (as opposed to fixed-size static batches) and leverage the PagedAttention contrib-op.

Base automatically changed from baijumeswani/engine to main August 4, 2025 16:23
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.

1 participant