model_delete method now working

This commit is contained in:
Lincoln Stein
2023-07-04 10:40:32 -04:00
parent c1c49d9a76
commit 752b4d50cf
2 changed files with 20 additions and 20 deletions

View File

@@ -546,10 +546,7 @@ class ModelManager(object):
model_cfg = self.models.pop(model_key, None)
if model_cfg is None:
self.logger.error(
f"Unknown model {model_key}"
)
return
raise KeyError(f"Unknown model {model_key}")
# note: it not garantie to release memory(model can has other references)
cache_ids = self.cache_keys.pop(model_key, [])