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 missing argument --gpu-name #7

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/benchmark_llm_serving/utils_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def get_parser_base_arguments() -> argparse.ArgumentParser:
parser.add_argument("--backend", type=str, default="happy_vllm", help="The backend of the API we query")
parser.add_argument("--model", type=str, help="The name of the model needed to query the completions API")
parser.add_argument("--model-name", type=str, help="The name of the model to be displayed in the graphs")
parser.add_argument("--gpu-name", type=str, help="The name of the GPU on which the model is")
parser.add_argument("--max-duration", type=int, default=900, help="The maximal duration (in s) between the beginning of the queries and the end of the queries")
parser.add_argument("--min-duration", type=int, help="The minimal duration during which the benchmark should run if there are still some prompts available")
parser.add_argument("--target-queries-nb", type=int, help="If min-duration is reached and this number is reached, stop the benchmark")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def test_get_parser_base_arguments():
parser = utils_args.get_parser_base_arguments()
base_arguments = {"--dataset-folder", "--base-url", "--host", "--port", "--step-live-metrics", "--max-queries",
"--completions-endpoint", "--metrics-endpoint", "--info-endpoint", "--launch-arguments-endpoint",
"--backend", "--model", "--max-duration", "--min-duration", "--target-queries-nb", "--help", "-h", "--model-name"}
"--backend", "--model", "--max-duration", "--min-duration", "--target-queries-nb", "--help", "-h", "--model-name", "--gpu-name"}
assert set(parser.__dict__["_option_string_actions"]) == base_arguments


Expand Down
Loading