Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Dec 3, 2024
1 parent 25971b6 commit 46ea540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ def run_event(self, event: Event, state: State, logger: Logger) -> None:
),
upload_to_save_folder=self.save_folder is not None and
(not self.final_register_only or not is_last_batch),
register=is_last_batch, # Register only on the last batch
register=self.mlflow_registered_model_name is not None and
is_last_batch, # Register only on the last batch
)
elif event == Event.INIT:
if not isinstance(state.model, HuggingFaceModel):
Expand Down

0 comments on commit 46ea540

Please sign in to comment.