Skip to content

Commit

Permalink
StaticLLMPipeline: num_key_value_heads not present in config.json (#1355
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TolyaTalamanov authored Dec 10, 2024
1 parent 44d5163 commit a795807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ ov::genai::ModelConfigDesc get_modeldesc_from_json(const std::filesystem::path&
if (config_data.contains("_name_or_path")) {
desc.name_or_path = config_data["_name_or_path"].get<std::string>();
}
desc.num_key_value_heads = config_data["num_key_value_heads"].get<int>();
desc.num_key_value_heads = config_data.contains("num_key_value_heads")
? config_data["num_key_value_heads"].get<int>() : -1;
return desc;
}

Expand Down

0 comments on commit a795807

Please sign in to comment.