-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat/add latency support for trtllm bench #3730
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ | |
help="Path to a serialized TRT-LLM engine.", | ||
) | ||
@optgroup.option("--backend", | ||
type=click.Choice(["pytorch", "_autodeploy"]), | ||
type=click.Choice(ALL_SUPPORTED_BACKENDS), | ||
default=None, | ||
help="Set to 'pytorch' for pytorch path. Default is cpp path.") | ||
@optgroup.option( | ||
|
@@ -293,10 +293,11 @@ def throughput_command( | |
logger.info(metadata.get_summary_for_print()) | ||
|
||
# Engine configuration parsing | ||
if backend and backend.lower() in ["pytorch", "_autodeploy"]: | ||
if backend and backend.lower() in ALL_SUPPORTED_BACKENDS and backend.lower( | ||
) != "cpp": | ||
# If we're dealing with a model name, perform a snapshot download to | ||
# make sure we have a local copy of the model. | ||
if checkpoint_path is None: | ||
if bench_env.checkpoint_path is None: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-iterating the comment from the other PR. @danielafrimi I ran into an issue with the previous code where the model is already downloaded and the code still tries to re-download since bench_env.checkpoint_path is None even though bench_env.model contains the local path. Can you please elaborate on why do you think the current code is wrong? |
||
snapshot_download(model) | ||
|
||
exec_settings = get_settings(params, metadata, bench_env.model, | ||
|
Uh oh!
There was an error while loading. Please reload this page.