mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add --panic to raise when loading fails
This commit is contained in:
@@ -90,6 +90,8 @@ class model_backend(HFTorchInferenceModel):
|
||||
utils.module_names = list(metamodel.state_dict().keys())
|
||||
utils.named_buffers = list(metamodel.named_buffers(recurse=True))
|
||||
except Exception as e:
|
||||
if utils.args.panic:
|
||||
raise e
|
||||
logger.warning(f"Gave up on lazy loading due to {e}")
|
||||
self.lazy_load = False
|
||||
|
||||
|
Reference in New Issue
Block a user