File tree 2 files changed +9
-8
lines changed
plugins/intel_gpu/src/plugin
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1478,16 +1478,16 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::load_model_from_cache(
1478
1478
ov::AnyMap update_config = config;
1479
1479
update_config[ov::loaded_from_cache.name ()] = true ;
1480
1480
1481
+ if (util::contains (plugin.get_property (ov::supported_properties), ov::hint::model) &&
1482
+ cacheContent.model ) {
1483
+ update_config[ov::hint::model.name ()] = cacheContent.model ;
1484
+ }
1481
1485
if (util::contains (plugin.get_property (ov::supported_properties), ov::weights_path)) {
1482
- if (cacheContent.model ) {
1483
- update_config[ov::hint::model.name ()] = cacheContent.model ;
1484
- } else {
1485
- std::filesystem::path weights_path = cacheContent.modelPath ;
1486
- weights_path.replace_extension (" .bin" );
1486
+ std::filesystem::path weights_path = cacheContent.modelPath ;
1487
+ weights_path.replace_extension (" .bin" );
1487
1488
1488
- if (ov::util::file_exists (weights_path)) {
1489
- update_config[ov::weights_path.name ()] = weights_path.string ();
1490
- }
1489
+ if (ov::util::file_exists (weights_path)) {
1490
+ update_config[ov::weights_path.name ()] = weights_path.string ();
1491
1491
}
1492
1492
}
1493
1493
if (model_buffer) {
Original file line number Diff line number Diff line change @@ -605,6 +605,7 @@ std::vector<ov::PropertyName> Plugin::get_supported_properties() const {
605
605
ov::PropertyName{ov::weights_path.name (), PropertyMutability::RW},
606
606
ov::PropertyName{ov::cache_encryption_callbacks.name (), PropertyMutability::WO},
607
607
ov::PropertyName{ov::hint::kv_cache_precision.name (), PropertyMutability::RW},
608
+ ov::PropertyName{ov::hint::model.name (), PropertyMutability::WO},
608
609
};
609
610
610
611
return supported_properties;
You can’t perform that action at this time.
0 commit comments