-
Notifications
You must be signed in to change notification settings - Fork 416
Update CLI Docs for Optimizer #902
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
Update CLI Docs for Optimizer #902
Conversation
Revised the listed outputs to reflect changes in file naming and structure, including the addition of `optimized_config.yml` and trial details. Clarified the location and format of visualization artifacts for better user understanding. Signed-off-by: dnandakumar-nv <[email protected]>
Revised the listed outputs to reflect changes in file naming and structure, including the addition of `optimized_config.yml` and trial details. Clarified the location and format of visualization artifacts for better user understanding. Signed-off-by: dnandakumar-nv <[email protected]>
Standardize bullet point formatting in the outputs section of the README for better readability and consistency. Adjusted indentation to align all items properly. Signed-off-by: dnandakumar-nv <[email protected]>
Updated the README to provide more details on the naming conventions for numeric trial configuration files and prompt generation history files. This improves clarity for users analyzing specific trials or generations. Signed-off-by: dnandakumar-nv <[email protected]>
Updated the README to provide more details on the naming conventions for numeric trial configuration files and prompt generation history files. This improves clarity for users analyzing specific trials or generations. Signed-off-by: dnandakumar-nv <[email protected]>
Corrected the capitalization of "Pareto" in the README for consistency and updated the vocabulary in the Vale configuration to include "Pareto" as an accepted term. Signed-off-by: dnandakumar-nv <[email protected]>
The new `nat optimize` command enables automated hyperparameter tuning and prompt engineering for workflows using the NeMo Agent toolkit. Detailed explanations of options, usage examples, and references to the Optimizer Guide have been included to assist users. Signed-off-by: dnandakumar-nv <[email protected]>
…c-fix # Conflicts: # docs/source/reference/cli.md
WalkthroughAdded a new "Optimize" section to the CLI reference documenting the Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant CLI as nat CLI
participant Optimizer as Optimizer (Optuna + GA)
participant Dataset as Dataset / Local Data
participant Endpoint as Model Endpoint
participant Results as Results (JSON)
User->>CLI: run `nat optimize --config_file ...`
CLI->>Optimizer: load config, start optimization
Optimizer->>Dataset: read dataset (if provided)
Optimizer->>Endpoint: evaluate trials (prompt/hyperparams)
Endpoint-->>Optimizer: return evaluation metrics
Optimizer-->>Results: write best results to `--result_json_path`
CLI-->>User: print summary / location of results
note right of Optimizer #e6f7ff: Uses Optuna for numeric hyperparams\nand a genetic algorithm for prompt optimization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (3)docs/source/**/*.md📄 CodeRabbit inference engine (.cursor/rules/general.mdc)
Files:
**/*⚙️ CodeRabbit configuration file
Files:
docs/source/**/*⚙️ CodeRabbit configuration file
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/ok to test c5cba4b |
@dnandakumar-nv, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test c5cba4b |
@dnandakumar-nv, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test 3dbb207 |
Signed-off-by: Will Killian <[email protected]>
|
/ok to test 9a0f5e1 |
|
/merge |
Description
Update CLI documentation with Optimize command
By Submitting this PR I confirm:
Summary by CodeRabbit