minor fixes in original RAG training (#12395)
This commit is contained in:
@@ -36,7 +36,7 @@ def get_checkpoint_callback(output_dir, metric):
|
||||
dirpath=output_dir,
|
||||
filename=exp,
|
||||
monitor=f"val_{metric}",
|
||||
mode="min",
|
||||
mode="max",
|
||||
save_top_k=3,
|
||||
period=1, # maybe save a checkpoint every time val is run, not just end of epoch.
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user