        sceduler_state = torch.load(os.path.join(checkpoint_path, "scheduler.pt"))
        optimizer.load_state_dict(optim_state)
        lr_scheduler.load_state_dict(sceduler_state)
    # model = freeze(model, freeze_other=False, freeze_ff=True, freeze_ff_layers=[31])
    (

        optimizer,
        train_dataloader,
        eval_dataloader,
        lr_scheduler,
    ) = accelerator.prepare(
