[Feature] Add modular tracking interface with MLflow backend#613
[Feature] Add modular tracking interface with MLflow backend#613mouad-hpc wants to merge 5 commits intoradixark:mainfrom
Conversation
Summary of ChangesHello @mouad-hpc, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant architectural improvement to the experiment tracking system by implementing a modular and extensible interface. This change enables seamless integration of various logging backends, with MLflow being the first new addition, alongside existing WandB and Tensorboard support. The refactoring centralizes tracking logic, making the system more flexible and easier to maintain, while also providing new command-line options for MLflow configuration. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a well-designed modular tracking interface, which is a significant architectural improvement for extensibility. The implementation of MLflow as a new backend is clean and adheres to best practices for optional dependencies and distributed environments, and the refactoring of tracking_utils.py using TrackingManager effectively simplifies the codebase. However, the new MLflow integration introduces several critical security vulnerabilities, including a Server-Side Request Forgery (SSRF) due to unsanitized tracking URIs, multiple Path Traversal vulnerabilities from unsanitized experiment/run names and IDs, and the logging of sensitive information (W&B API key) to MLflow parameters. These security issues must be addressed by implementing strict validation and sanitization on all user-controlled inputs. Additionally, I have a couple of minor suggestions to further enhance code clarity and robustness.
|
a tiny suggestion: could you improve the file structure? maybe put all files under the same subdirectory like |
Done |
640389a to
860b1d8
Compare
Summary
Files changed
Test plan