mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
fix load_state_dict
This commit is contained in:
parent
4a2960cd64
commit
c8e14758ce
1 changed files with 2 additions and 1 deletions
|
|
@ -673,7 +673,8 @@ class ModulatedPretrainedModel(nn.Module):
|
|||
return sd
|
||||
|
||||
load_result = self.hypernet.load_state_dict(
|
||||
remove_compile_prefix(state_dict), strict=True, *args, **kwargs
|
||||
remove_compile_prefix(state_dict),
|
||||
strict=True, # , *args, **kwargs
|
||||
)
|
||||
logger.info(f"load result: {load_result}")
|
||||
return load_result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue