Skip to content

Commit

Permalink
Cherry-pick: WA static llm pipeline config access (#755)
Browse files Browse the repository at this point in the history
Cherry-pick of this PR:
openvinotoolkit/openvino.genai#745

Co-authored-by: Zlobin Vladimir <[email protected]>
  • Loading branch information
TolyaTalamanov and Wovchena authored Aug 9, 2024
1 parent 91083df commit f89a722
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ void copy_with_offset(const ov::Tensor& orig, const int32_t offset, ov::Tensor&
ov::AnyMap extract_config_or_default(const ov::AnyMap& config, const std::string& config_name) {
ov::AnyMap stage_cfg;
if (auto it = config.find(config_name); it != config.end()) {
const auto& map = it->second.as<std::map<std::string, std::string>>();
stage_cfg = { map.begin(), map.end() };
stage_cfg = it->second.as<ov::AnyMap>();
} else if (config_name == "PREFILL_CONFIG") {
std::map<std::string, std::string> prefill_config = {
{ "NPU_USE_NPUW", "YES" },
Expand Down

0 comments on commit f89a722

Please sign in to comment.