mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-25 00:39:22 +00:00
WIP on SAFE encoder. Work on fp16 training improvements. Various other tweaks and improvements
This commit is contained in:
@@ -388,7 +388,10 @@ class CustomAdapter(torch.nn.Module):
|
||||
self.fuse_module.load_state_dict(state_dict['fuse_module'], strict=strict)
|
||||
|
||||
if 'ilora' in state_dict:
|
||||
self.ilora_module.load_state_dict(state_dict['ilora'], strict=strict)
|
||||
try:
|
||||
self.ilora_module.load_state_dict(state_dict['ilora'], strict=strict)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user