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

Use dynamic shapes for kv-cache #3552

Open
pfultz2 opened this issue Oct 24, 2024 · 0 comments
Open

Use dynamic shapes for kv-cache #3552

pfultz2 opened this issue Oct 24, 2024 · 0 comments
Assignees

Comments

@pfultz2
Copy link
Collaborator

pfultz2 commented Oct 24, 2024

There is two parts for this:

  1. Use dynamic shapes to handle the past sequence length.
  2. Similar to dynamic batching, we can make two different submodule for each GQA operator for max sequence length and sequence length of 1. Then use a select operator to select the different module based on the inputs sizes(perhaps its possible to reuse the select from dynamic batching).
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

No branches or pull requests

3 participants