def METHOD_NAME(self,
                     trainer,
                     checkpoint_path_prefix,
                     output_dir,
                     meta=None,
                     save_optimizers=True):
    """Save the state dict for lora tune model.
    """
    trainer.model.unet = trainer.model.unet.to(self.torch_type)
    trainer.model.unet.save_attn_procs(
        output_dir, safe_serialization=self.safe_serialization)