Skip to content

Commit

Permalink
connect the existing mlflow run id
Browse files Browse the repository at this point in the history
  • Loading branch information
nancyhung committed Oct 26, 2024
1 parent 6c5fb05 commit bb0dd6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ def _log_model_multiprocess(
log.info("----------------- REACHED MLFLOW LOG MODEL -----------------")
# monkey patch to prevent duplicate tokenizer upload
import mlflow
mlflow.start_run(
run_id=mlflow_logger._run_id,
)
original_save_model = mlflow.transformers.save_model
def save_model_patch(*args: Any, **kwargs: Any):
original_save_model(*args, **kwargs)
Expand Down

0 comments on commit bb0dd6a

Please sign in to comment.