Skip to content
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 additional Cli parsing #474

Merged
merged 6 commits into from
Feb 28, 2024
Merged

Conversation

debermudez
Copy link
Contributor

Modifying parser code to fit the args elevated to PA.
Handle args that need massaging between PA core and GenAI-PA.
Make the subprocess call.

Copy link
Contributor Author

@debermudez debermudez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed most of the comments.
Should be a lot cleaner now.

src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Outdated Show resolved Hide resolved
…s, updated version option behavior, cleaned up code
Copy link
Contributor

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Only minor comments since last update.

src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Dismissed Show dismissed Hide dismissed
src/c++/perf_analyzer/genai-pa/genai_pa/parser.py Dismissed Show dismissed Hide dismissed
Comment on lines +110 to +117
# TODO: necessary?
# parser.add_argument(
# "--output-length",
# type=int,
# default=128,
# required=False,
# help="The output length (tokens) to use for benchmarking LLMs. (Default: 128)",
# )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming we'll clean up these comments blocks and unused dataset_args and stuff in later follow-up PRs

Copy link
Contributor

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming other commented/unused code will be cleanup in follow-up PRs

@debermudez debermudez merged commit 820539b into feature-genai-pa Feb 28, 2024
3 checks passed
@debermudez debermudez deleted the dbermudez-cli-parser branch February 28, 2024 23:15
nv-braf pushed a commit that referenced this pull request Feb 29, 2024
* Adding subprocess call and more arg parsing

* Add url option

* Remove input length option

* Update help messages, mistakes in args, removed sync and async options, updated version option behavior, cleaned up code

* Refactored code to clean things up

* Use metavar and dest in cli to help with url option
debermudez added a commit that referenced this pull request Mar 12, 2024
* Adding subprocess call and more arg parsing

* Add url option

* Remove input length option

* Update help messages, mistakes in args, removed sync and async options, updated version option behavior, cleaned up code

* Refactored code to clean things up

* Use metavar and dest in cli to help with url option
debermudez added a commit that referenced this pull request Mar 13, 2024
* Adding subprocess call and more arg parsing

* Add url option

* Remove input length option

* Update help messages, mistakes in args, removed sync and async options, updated version option behavior, cleaned up code

* Refactored code to clean things up

* Use metavar and dest in cli to help with url option
mc-nv pushed a commit that referenced this pull request Mar 13, 2024
* Adding subprocess call and more arg parsing

* Add url option

* Remove input length option

* Update help messages, mistakes in args, removed sync and async options, updated version option behavior, cleaned up code

* Refactored code to clean things up

* Use metavar and dest in cli to help with url option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants