-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Add support for enabling and configuring msprobe via command-line and config.json #6834
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?
Conversation
Summary of ChangesHello @Vectorwh, 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 new feature to enhance the debugging capabilities of the training framework by integrating the Highlights
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request introduces a new dump tool using mindstudio-probe. The changes include adding a configuration file, updating dependencies, and integrating the debugger into the training step. Overall, the feature seems well-intentioned for debugging and statistics. However, there are a few areas that could be improved for robustness and error handling, particularly around the debugger's lifecycle and path management.
|
|
||
| # dump | ||
| enable_msprobe: bool = False | ||
| msprobe_config: str = './msprobe_config.json' |
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.
The msprobe_config is defined with a relative path (./msprobe_config.json). This can lead to issues if the working directory changes or if the script is executed from a different location. Consider resolving this path to an absolute path during initialization or making it configurable to ensure robustness.
22a1b8e to
2601a11
Compare
PR type
PR information
🚀 New Feature: msprobe Tool Integration
This Pull Request introduces comprehensive support for the msprobe analysis tool. This integration significantly enhances our debugging capabilities by enabling detailed precision information collection for models.
💡 Key Changes
Command-Line Enablement: The msprobe tool can now be enabled/disabled via the --enable_msprobe launch argument, offering flexible and temporary activation.
Configuration File Support: The tool is configurable through the project's msprobe_config.json file. This allows for persistent and detailed configuration of the msprobe parameters, such as data granularity, output path, and specific collection targets.
Experiment results
Paste your experiment result here(if needed).