-
Notifications
You must be signed in to change notification settings - Fork 173
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][V2] NonKVCachePipeline #1417
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbogunowicz
changed the base branch from
v2
to
feature/damian/v2/factor_out_transformation_utils
November 20, 2023 13:31
dbogunowicz
changed the base branch from
feature/damian/v2/factor_out_transformation_utils
to
v2
November 20, 2023 13:33
dbogunowicz
force-pushed
the
feature/damian/no_kv_cache
branch
from
November 20, 2023 13:58
a95d55a
to
fa96efb
Compare
dsikka
requested changes
Nov 21, 2023
dbogunowicz
changed the title
[Text Generation][V2] NonKVCachePipeline
[WiP][Text Generation][V2] NonKVCachePipeline
Nov 27, 2023
dbogunowicz
changed the title
[WiP][Text Generation][V2] NonKVCachePipeline
[Text Generation][V2] NonKVCachePipeline
Nov 28, 2023
dbogunowicz
commented
Dec 6, 2023
dbogunowicz
force-pushed
the
feature/damian/no_kv_cache
branch
from
December 6, 2023 12:38
83d6cf1
to
dcab3f9
Compare
… router and image classification pipeline/operators/example (#1325) * initial functionality and working example with image classification * remove testing image * update args * initial functionality and working example with image classification * remove testing image * pr comments * defines schemas for operators and test * add image classification test, PR comments * fix input/output handling in pipeline and operator base classes to be more generic; remove context * add additional operator input message * typo fix
* [v2] EngineOperator updates to make continuous batching easier * test fixes
…ity (#1348) * initial functionality and working example with image classification * remove testing image * rebase fixes * initial functionality and working example with image classification * text gen * updates func * prompt inference, initial functionality * remove image; update state docstring * Fix typo * add todo for split/join * remove context, clean-up args, remove prefill_preprocess_operaator * fix docstrings
…generation functionality (#1356) * initial functionality and working example with image classification * remove testing image * rebase fixes * initial functionality and working example with image classification * text gen * updates func * prompt inference, initial functionality * remove image; update state docstring * Fix typo * add todo for split/join * remove context, clean-up args, remove prefill_preprocess_operaator * fix docstrings * initial functionality and working example with image classification * updates func * prompt inference, initial functionality * finish generation operators and update routes * further breakdown operators * add operators * fix can_operate condition * update can_operate to not rely on the inference_state * rebase + update * fix condition * fix capacity settting again * typo fixes
dbogunowicz
force-pushed
the
feature/damian/no_kv_cache
branch
from
December 18, 2023 16:10
e0a9dee
to
7f3eb12
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature Description
Added the
TestGenerationPipelineNoKVCache
. This pipeline processes the prompt and returns the new token. That's it.Its main functionality is mapping prompt tokens to logits, instrumental for computing the perplexity of the model given a dataset
Testing
Updated the integration tests to cover the case of non-kv-cache inference.
Example Use
Next steps
TextGenerationPipeline
operator that can either choose to use the kv-cache or non-kv cache version of the pipeline, depending on the topology of the ONNX modelTextGenerationPipelineNoKVCache