I am trying to run the pretraining pipeline and encountered an issue when calling trainer.test(ckpt_path="best"). The training itself finishes successfully, but testing fails with a checkpoint-related error.
Training runs normally for all epochs. However, when reaching the testing stage, the following error occurs:“ValueError: .test(ckpt_path="best") is set but ModelCheckpoint is not configured to save the best model.”
no “best” checkpoint is saved, which causes .test(ckpt_path="best") to fail.
I am trying to run the pretraining pipeline and encountered an issue when calling
trainer.test(ckpt_path="best"). The training itself finishes successfully, but testing fails with a checkpoint-related error.Training runs normally for all epochs. However, when reaching the testing stage, the following error occurs:“ValueError:
.test(ckpt_path="best")is set butModelCheckpointis not configured to save the best model.”no “best” checkpoint is saved, which causes .test(ckpt_path="best") to fail.