-
Notifications
You must be signed in to change notification settings - Fork 172
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
[CPU] Change kvcache default type of PagedAttention to u8 for CPU plugin #1206
base: master
Are you sure you want to change the base?
[CPU] Change kvcache default type of PagedAttention to u8 for CPU plugin #1206
Conversation
src/cpp/src/device_config.hpp
Outdated
// if user sets ov::kv_cache_precision hint | ||
const auto kv_cache_precision_it = plugin_config.find(ov::hint::kv_cache_precision.name()); | ||
if (kv_cache_precision_it != plugin_config.end()) { | ||
const auto kv_cache_precision = kv_cache_precision_it->second.as<ov::element::Type>(); | ||
m_kv_cache_type = kv_cache_precision; | ||
} else { | ||
// x86 and arm have different default kv cache type |
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.
what if plugin_config
has accuracy execution hint or inference precision?
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.
Updated. For 'EXECUTION_MODE_HINT': 'ACCURACY'
the plugin will force f32 precision for kvcache. If inference precision was set to f32
, the kvcache is still in default u8
precision.
@luo-cheng2021 could you please also include reverting of #1212 ? |
Change kvcache default type of PagedAttention to u8 for CPU plugin to aligned SDPA behaviour.