-
Notifications
You must be signed in to change notification settings - Fork 179
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
StaticLLMPipeline: Use set_tensor for kvcache model #1106
base: master
Are you sure you want to change the base?
StaticLLMPipeline: Use set_tensor for kvcache model #1106
Conversation
@@ -704,6 +704,17 @@ EncodedResults StaticLLMPipeline::generate( | |||
position_ids_data[0] = m_kvcache_desc.num_stored_tokens; | |||
attention_mask_data[m_kvcache_desc.num_stored_tokens - 1] = 1u; | |||
|
|||
// NB: Write KV-cache for the new token to the correct input position for the next iteration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment should be changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TolyaTalamanov Does set_tensor now support remote tensor data sharing across CPU and NPU?
@TolyaTalamanov did it change anything? |
It broke accuracy, although on CPU it works fine. Will re-consider this optimization |
No description provided.