We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b9318 commit 4b8f63dCopy full SHA for 4b8f63d
templates/src/llm/finetune_distributed/train.py
@@ -210,7 +210,7 @@ def _build_training_arguments(
210
211
return TrainingArguments(**kwargs)
212
213
- def __call__(self, cfg: DictConfig):
+ def __call__(self, cfg: DictConfig) -> int:
214
"""Execute fine-tuning, handling checkpoints, training, and evaluation."""
215
out_dir = Path(cfg.paths.out_dir)
216
out_dir.mkdir(parents=True, exist_ok=True)
@@ -277,6 +277,8 @@ def __call__(self, cfg: DictConfig):
277
"All done. Train metrics: %s Eval metrics: %s", metrics, eval_metrics
278
)
279
280
+ return 0
281
+
282
def checkpoint(
283
self, *args: Any, **kwargs: Any
284
) -> submitit.helpers.DelayedSubmission:
0 commit comments