-
Notifications
You must be signed in to change notification settings - Fork 82
MLFlow Integration #1542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
MLFlow Integration #1542
Conversation
Signed-off-by: Naveenraj Kamalakannan <[email protected]>
Signed-off-by: Naveenraj Kamalakannan <[email protected]>
Co-authored-by: Philip Petrakian <[email protected]> Signed-off-by: Naveenraj Kamalakannan <[email protected]>
Signed-off-by: Naveenraj Kamalakannan <[email protected]>
|
Hi @Phlip79 - implemented all the changes. |
| mlflow.set_experiment(logger_cfg.mlflow_experiment) | ||
|
|
||
| # Prepare tags and params | ||
| def safe_serialize(obj: Any) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this to utils? it's duplicated with
| def safe_serialize(obj): |
|
thanks for the contribution, all look good. Had one comment. |
maanug-nv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the support. Left 1 suggestion. Can I also ask you to add unit tests similar to what we do for wandb?
| 1) Install MLFlow (if not already available): | ||
|
|
||
| ```bash | ||
| pip install mlflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add this as an optional dependency, and maybe in validate, or LoggerConfig.finalize() assert that mlflow is importable. Maybe even a hard dep, since wandb is hard dep.
Signed-off-by: Naveenraj Kamalakannan <[email protected]>
Signed-off-by: Naveenraj Kamalakannan <[email protected]>
What does this PR do ?
Add MLFlow integration for experiment tracking and artifact logging.
This PR adds comprehensive MLFlow support to Megatron Bridge, enabling users to log training metrics, configuration parameters, and checkpoint artifacts to MLFlow tracking servers. The integration includes automatic checkpoint artifact logging with iteration-based artifact paths.
MLFlow logging follows the same pattern as the existing W&B integration and can be enabled via LoggerConfig with mlflow_experiment and mlflow_run_name parameters.
Before your PR is "Ready for review"
Pre checks:
If you haven't finished some of the above items you can still open "Draft" PR.
Additional Information
cc @Phlip79