update demo of long context handling#4279
Open
dtrawins wants to merge 6 commits into
Open
Conversation
przepeck
reviewed
Jun 10, 2026
| This cache allows the model to avoid recomputing attention for previous tokens when generating new tokens, greatly speeding up inference for long contexts. | ||
| For very long contexts or high concurrency, the KV cache can consume a large amount of memory (RAM or VRAM). | ||
| Compression reduces this memory usage, enabling longer prompts or more parallel requests without running out of memory. | ||
| This parameter is applicable only or pipelines with continuous batching and paged attention. It is not used with NPU device. |
Collaborator
There was a problem hiding this comment.
Suggested change
| This parameter is applicable only or pipelines with continuous batching and paged attention. It is not used with NPU device. | |
| This parameter is applicable only for pipelines with continuous batching and paged attention. It is not used with NPU device. |
przepeck
reviewed
Jun 10, 2026
przepeck
reviewed
Jun 10, 2026
|
|
||
| | 50,000 | 945 | 0.7 | 985 | 1.5 | | ||
| | 100,000 | 1258 | 1.5 | 1713 | 3 | | ||
| Lower precision in KV Cache reduce the memory consumption and can also improve latency. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Lower precision in KV Cache reduce the memory consumption and can also improve latency. | |
| Lower precision in KV Cache reduce the memory consumption and can also improve latency. |
przepeck
reviewed
Jun 10, 2026
Co-authored-by: Paweł Rzepecki <pawel.rzepecki@intel.com>
przepeck
approved these changes
Jun 10, 2026
dtrawins
commented
Jun 10, 2026
Co-authored-by: Trawinski, Dariusz <dariusz.trawinski@intel.com>
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
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.
🛠 Summary
JIRA/Issue if applicable.
Describe the changes.
🧪 Checklist
``