Checks if the LoRA layers are correctly set with peft
(model)
| 57 | |
| 58 | |
| 59 | def check_if_lora_correctly_set(model) -> bool: |
| 60 | """ |
| 61 | Checks if the LoRA layers are correctly set with peft |
| 62 | """ |
| 63 | for module in model.modules(): |
| 64 | if isinstance(module, BaseTunerLayer): |
| 65 | return True |
| 66 | return False |
| 67 | |
| 68 | |
| 69 | def initialize_dummy_state_dict(state_dict): |
no outgoing calls