Skip to content

Commit

Permalink
spawn works but no logging
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Mar 30, 2024
1 parent 70cb415 commit fcd8921
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 @@ -275,6 +275,7 @@ def __init__(
self.mlflow_register_processes: List[multiprocessing.Process] = []

def run_event(self, event: Event, state: State, logger: Logger) -> None:

# The interval scheduler handles only returning True for the appropriate events
if state.get_elapsed_duration() is not None and self.check_interval(
state,
Expand Down Expand Up @@ -378,7 +379,7 @@ def _register_mlflow_model(self, mlflow_loggers: List[MLFlowLogger],

register_method = getattr(mlflow_logger, 'register_model_with_run_id')

process = multiprocessing.Process(target=register_method, kwargs={
process = multiprocessing.get_context('spawn').Process(target=register_method, kwargs={
'model_uri': local_save_path,
'name': registered_model_name,
'await_creation_for': 3600,
Expand Down

0 comments on commit fcd8921

Please sign in to comment.