AMDMIGraphX icon indicating copy to clipboard operation
AMDMIGraphX copied to clipboard

Use dynamic shapes for kv-cache

Open pfultz2 opened this issue 1 year ago • 0 comments

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).

pfultz2 avatar Oct 24 '24 18:10 pfultz2