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

[Text Generation] Detect dtype of kv cache (float32/uint8) for text generation models #1123

Merged
merged 3 commits into from
Jul 18, 2023

Conversation

dbogunowicz
Copy link
Contributor

@dbogunowicz dbogunowicz commented Jul 17, 2023

The NLDecoderEngine can now infer the dtype of the kv cache input from the onnx graph. This is necessary in order to enforce the adequate dtype when creating an initial kv cache arrays.

The PR is complementary to neuralmagic/sparseml#1648. Refer to that PR for manual tests description.

@bfineran
Copy link
Member

let's add test plan to the description

@dbogunowicz
Copy link
Contributor Author

@bfineran but the appropriate tests are laid out in detail in the sparseml counterpart.

@dbogunowicz dbogunowicz merged commit ad998df into main Jul 18, 2023
7 checks passed
@dbogunowicz dbogunowicz deleted the feature/damian/enable_inference_w_quant_models branch July 18, 2023 13:42
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.

None yet

4 participants