mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-04-22 22:17:27 +02:00
Fix lazy loader
This commit is contained in:
parent
fd762110cb
commit
c117bfd0ad
@ -1176,7 +1176,7 @@ def load_model(path: str, driver_version="tpu_driver0.1_dev20210607", hf_checkpo
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
storage_key = model_dict[key].key
|
storage_key = model_dict[key].key
|
||||||
if storage_key != last_storage_key:
|
if storage_key != last_storage_key or model_dict[key].seek_offset < current_offset:
|
||||||
last_storage_key = storage_key
|
last_storage_key = storage_key
|
||||||
if isinstance(f, zipfile.ZipExtFile):
|
if isinstance(f, zipfile.ZipExtFile):
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user