Close the JSON array and the file.
(self)
| 62 | self.file.flush() |
| 63 | |
| 64 | def close(self): |
| 65 | """Close the JSON array and the file.""" |
| 66 | self.file.write('\n]') |
| 67 | self.file.flush() |
| 68 | |
| 69 | |
| 70 | def get_base_model_state_dict_from_peft(peft_state_dict, lora_alpha, lora_r): |
no outgoing calls
no test coverage detected