-
Notifications
You must be signed in to change notification settings - Fork 186
[Text Generation] Turn off the (currently) inefficient external KV cache logic when internal KV cache management enabled #1175
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
Merged
Merged
Changes from all commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
0bcf1ea
fix kv cache
SageMoore d9487bc
Merge branch 'main' into kv-cache-fixes
dbogunowicz 1485478
refactor
dbogunowicz 23c97c8
add validation pathway
dbogunowicz 2deb33b
avx2 support
dbogunowicz 4526499
add import
dbogunowicz 1898a56
Merge remote-tracking branch 'origin/main' into kv-cache-fixes
dbogunowicz f41689a
initial commit
dbogunowicz 4ed646a
initial commit
dbogunowicz 7f34062
initial implementation
dbogunowicz 817a1fa
Merge branch 'main' into kv-cache-fixes
dbogunowicz 95b0082
problems with multitoken prefill
dbogunowicz db566c9
Merge branch 'main' into kv-cache-fixes
dbogunowicz ebf76fc
its working
dbogunowicz c8e54b8
Merge branch 'kv-cache-fixes' of https://github.com/neuralmagic/deeps…
dbogunowicz bc0e010
Create test_nl_decoder_engine.py
dbogunowicz 36c6664
Merge branch 'feature/damian/fb_testing' into tests/damian/decoder_kv…
dbogunowicz 2353cb2
almost there...
dbogunowicz 124a922
Merge branch 'main' into kv-cache-fixes
dbogunowicz aac5b85
finally all tests pass
dbogunowicz 7ee2577
just need to change to stub
dbogunowicz ef38160
Merge remote-tracking branch 'origin/tests/damian/decoder_kv_cache' i…
dbogunowicz 21b9456
Merge remote-tracking branch 'origin/tests/feature/nl_dec_engine' int…
dbogunowicz caef2f7
fix bad merge
dbogunowicz ffdc7fb
Merge branch 'main' into kv-cache-fixes
dbogunowicz 8d98f73
Merge remote-tracking branch 'origin/tests/damian/llms' into kv-cache…
dbogunowicz f6b6807
added some tests
dbogunowicz a80c46d
ready for review
dbogunowicz d752f53
Merge branch 'main' into feature/damian/fb_testing
dbogunowicz c055873
Merge branch 'feature/damian/fb_testing' into tests/damian/decoder_kv…
dbogunowicz d851ab4
Merge branch 'tests/damian/decoder_kv_cache' into tests/feature/nl_de…
dbogunowicz 0a42d3f
Merge branch 'tests/feature/nl_dec_engine' into tests/damian/llms
dbogunowicz 9e6ea03
Merge branch 'tests/damian/llms' into kv-cache-fixes
dbogunowicz bfceb29
[Text Generation][Tests] DecoderKVCache (#1154)
dbogunowicz b7a55f9
[Text Generation][Tests] NLDecoderEngine (#1155)
dbogunowicz fef5df0
Make tests work with stub (as much as possible), cleanup test names, …
dbogunowicz 5c48ba5
initial commit
dbogunowicz 09a4847
use patch from unittest library - remove additional dependency
dbogunowicz ce42fc5
improved logic
dbogunowicz 6bd55cd
additional improvements
dbogunowicz ebf3c92
Update src/deepsparse/transformers/pipelines/text_generation.py
dbogunowicz 23f764b
Merge remote-tracking branch 'origin/feature/damian/backward_comp_no_…
dbogunowicz 486e041
Merge branch 'feature/damian/backward_comp_no_causal_mask_models' int…
dbogunowicz c7ffdd1
Merge branch 'main' into feature/damian/backward_comp_no_causal_mask_…
dbogunowicz 4357e8f
Merge branch 'feature/damian/backward_comp_no_causal_mask_models' int…
dbogunowicz 0cbb1a3
finish rebase
dbogunowicz bafbccd
Update src/deepsparse/utils/onnx.py
dbogunowicz 349197e
Update src/deepsparse/utils/onnx.py
dbogunowicz 2ce0daf
response to Ben's comments
dbogunowicz 4524442
Merge branch 'feature/damian/backward_comp_no_causal_mask_models' of …
dbogunowicz b952107
finish rebasing
dbogunowicz 2f9fe9d
Merge branch 'main' into feature/damian/backward_comp_no_causal_mask_…
dbogunowicz 663e05f
Merge branch 'feature/damian/backward_comp_no_causal_mask_models' int…
dbogunowicz 1a524c7
Merge remote-tracking branch 'origin/feature/damian/fb_testing' into …
dbogunowicz 098c7cf
full support
dbogunowicz 9fd5e56
Update tests/deepsparse/transformers/pipelines/test_text_generation.py
dbogunowicz b0a7c96
Merge branch 'feature/damian/fb_testing' into kv-cache-fixes
dbogunowicz 4c12c38
initial commit
dbogunowicz caf4b42
clarify todo comment
bfineran 1b657bc
update user messages + add assertion for safety
bfineran e1e10b3
[Text Generation] KV Cache internal Deepsparse support (#1135)
SageMoore 14a5197
minor improvements before landing
dbogunowicz d41e8ea
Merge remote-tracking branch 'origin/main' into feature/damian/backwa…
dbogunowicz 4881d30
Fix the helper function that has been broken after a merge
dbogunowicz 5f8b1eb
Merge branch 'feature/damian/backward_comp_no_causal_mask_models' int…
dbogunowicz 6ff9cf5
incomplete string in parametrize
dbogunowicz 1741012
few nits before the merge
dbogunowicz 4528295
Merge branch 'feature/damian/fb_testing' into feature/damian/optimize…
dbogunowicz 617147c
pass dummy cache if internal cache management supported
dbogunowicz 49b8a9c
Merge branch 'feature/damian/optimize_update_kv_cache' of https://git…
dbogunowicz 8fad0e0
Apply suggestions from code review
dbogunowicz 144e3e0
add missing property
dbogunowicz b06bac7
cleaner func
dbogunowicz cf6540c
Merge remote-tracking branch 'origin/main' into feature/damian/optimi…
dbogunowicz 22b81a2
PR ready
dbogunowicz 90f767f
add timing for KV cache update
51c1eaa
initial commit
dbogunowicz fbb8135
Merge branch 'main' into feature/damian/optimize_decoder
dbogunowicz 1cb41cb
Merge remote-tracking branch 'origin/feature/damian/optimize_decoder'…
dbogunowicz 7dbb44d
Merge branch 'main' into feature/damian/optimize_update_kv_cache
dbogunowicz 6bf740f
Merge branch 'feature/damian/optimize_update_kv_cache' of https://git…
dbogunowicz d434edd
code review comments
dbogunowicz 96eb68a
Nit: docstring typo
dbogunowicz 69e0a76
nit: docstring style
dbogunowicz 4bdf82b
Merge branch 'feature/damian/optimize_decoder' into feature/damian/op…
dbogunowicz 66b3803
Merge branch 'kv-cache-update-improvement' into feature/damian/optimi…
dbogunowicz aa31d5e
Merge branch 'main' into feature/damian/optimize_decoder
dbogunowicz 26f1e64
Merge branch 'feature/damian/optimize_decoder' into feature/damian/op…
dbogunowicz 24f3a87
fix style
dbogunowicz ce150cc
Merge branch 'feature/damian/optimize_decoder' into feature/damian/op…
dbogunowicz d1b3f5e
Merge branch 'feature/damian/optimize_update_kv_cache' of https://git…
dbogunowicz 921f2f5
Merge branch 'main' into feature/damian/optimize_update_kv_cache
dbogunowicz c90a06b
Merge branch 'main' into feature/damian/optimize_update_kv_cache
dbogunowicz 4c34f1d
Merge branch 'feature/damian/optimize_update_kv_cache' of https://git…
dbogunowicz 519bf1b
fix broken test
dbogunowicz 7da933b
fixing bad rebase
dbogunowicz 41ef43c
Merge remote-tracking branch 'origin/main' into HEAD
dbogunowicz a43b063
Merge branch 'main' into feature/damian/optimize_update_kv_cache
dbogunowicz b7f03fc
Merge branch 'main' into feature/damian/optimize_update_kv_cache
dbogunowicz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.