Skip to content

Error when calling trainer.test(ckpt_path="best"): ModelCheckpoint is not configured to save the best model #3

@xiaoqingli0608

Description

@xiaoqingli0608

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions