(self, prefix="")
| 93 | for _, module in self._modules.items(): |
| 94 | if module is not None: |
| 95 | module.load_state_dict(destination, block_index, adapter_block_index) |
| 96 | return destination |
| 97 | |
| 98 | def load_state_dict_from_disk(self, block_index, adapter_block_index=None): |
| 99 | for _, param in self._parameters.items(): |
| 100 | if param is not None and hasattr(param, "load_state_dict_from_disk"): |
| 101 | param.load_state_dict_from_disk(block_index, adapter_block_index) |
| 102 | for _, module in self._modules.items(): |
| 103 | if module is not None: |
| 104 | module.load_state_dict_from_disk(block_index, adapter_block_index) |
no test coverage detected