-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add GenAi-PA error handling #483
Conversation
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.
That's fine by me.
@dyastremsky @nv-braf I think the logic for the separate directory was that there might be more input specific files coming. The separate directory was prefetching organization that was going to be necessary in the short-mid term. |
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.
Agree with @rmccorm4 suggestions. Update those sections and this is good to go in.
Co-authored-by: Ryan McCormick <rmccormick@nvidia.com>
Thanks for the corrections, @rmccorm4! All fixed. Understood on the structure, @nv-braf @debermudez. Thanks for the clarification, that sounds good! |
* Print exception when non-zero error code * Add test for GenAiPAException for nonzero exit * Revert format/comment changes. * Fix typo Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> * Remove unnecessary return value Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> --------- Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> WIP clean up and link up llm_inputs
* Print exception when non-zero error code * Add test for GenAiPAException for nonzero exit * Revert format/comment changes. * Fix typo Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> * Remove unnecessary return value Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> --------- Co-authored-by: Ryan McCormick <rmccormick@nvidia.com>
* Print exception when non-zero error code * Add test for GenAiPAException for nonzero exit * Revert format/comment changes. * Fix typo Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> * Remove unnecessary return value Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> --------- Co-authored-by: Ryan McCormick <rmccormick@nvidia.com>
* Print exception when non-zero error code * Add test for GenAiPAException for nonzero exit * Revert format/comment changes. * Fix typo Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> * Remove unnecessary return value Co-authored-by: Ryan McCormick <rmccormick@nvidia.com> --------- Co-authored-by: Ryan McCormick <rmccormick@nvidia.com>
This PR adds exception handling to the core logic of GenAi-PA and prints an error when perf_analyzer returns a non-zero code. There is also an added exception make sure that run() returns this exception.
This also moves llm_inputs.py underneath the genai_pa to help start integrating the components of GenAi-PA. This organization seems logical to me and consistent with the way the Model Analyzer code is currently written, but I am open to feedback here. (CC: @nv-braf, let me know if you think this should be reverted.)
Passing tests:

Additional error log when there is a failure (in this case, a non-zero exit code from Perf Analyzer):
