fix cache config error

This commit is contained in:
cocktailpeanut 2023-11-03 15:41:36 -04:00
parent 6fef4f9067
commit 33c95daa55
1 changed files with 4 additions and 1 deletions

View File

@ -346,7 +346,10 @@ class ModelManager(object):
def check_if_configs_are_equal(self, model_name, model_item, output_path):
with fsspec.open(self._find_files(output_path)[1], "r", encoding="utf-8") as f:
try:
config_local = json.load(f)
except:
config_local = None
remote_url = None
for url in model_item["hf_url"]:
if "config.json" in url: