(layers, prefix)
| 1003 | |
| 1004 | @staticmethod |
| 1005 | def pack_weights(layers, prefix): |
| 1006 | layers_weights = layers.state_dict() if isinstance(layers, torch.nn.Module) else layers |
| 1007 | return _pack_dict_with_prefix(layers_weights, prefix) |
| 1008 | |
| 1009 | @staticmethod |
| 1010 | def write_lora_layers( |
no test coverage detected