-
Notifications
You must be signed in to change notification settings - Fork 175
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
Support benchmarking script by using real application trace #737
base: main
Are you sure you want to change the base?
Conversation
42214fb
to
4761e31
Compare
Signed-off-by: Ning Wang <[email protected]>
Signed-off-by: Ning Wang <[email protected]>
Signed-off-by: Ning Wang <[email protected]>
Signed-off-by: Ning Wang <[email protected]>
Signed-off-by: Ning Wang <[email protected]>
Signed-off-by: Ning Wang <[email protected]>
Signed-off-by: Ning Wang <[email protected]>
4761e31
to
b02dabf
Compare
@zhangjyr Can you help to review this PR? Thanks! |
# Convert rate_start to integer (multiply by 100 and remove decimals) | ||
req_rate=$(echo "$rate_start * 100" | bc | cut -d. -f1) | ||
rate_limit_scaled=$(echo "$rate_limit * 100" | bc | cut -d. -f1) | ||
while [[ $req_rate -le $rate_limit_scaled ]]; do |
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.
Is it because -le can compare integers only, so we need to *100? And I suppose 0.125 is also somehow supported (inaccurate is ok) by removing decimals? Just in case, I would suggest setting req_rate at least 0.01 to avoid 0.
# synthetic_prompt = "hi " * config_input_len | ||
# # assign timestamp to -1 for all requests | ||
# requests.append((synthetic_prompt, config_input_len, config_output_len, -1)) | ||
return [] |
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.
Why comment on this part? If no workload is provided, the benchmark will not work without a synthetic prompt.
Pull Request Description
This PR adding benchmarking support by using real user application prompt traces in the heterogenous gpu story. This is a general benchmarking methods working for all models. It addresses the issue where the current fix benchmarking process may not be working for certain models or certain configuration settings (e.g., temperature)
Related Issues
Resolves: #722
Important: Before submitting, please complete the description above and review the checklist below.
Contribution Guidelines (Expand for Details)
We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:
Pull Request Title Format
Your PR title should start with one of these prefixes to indicate the nature of the change:
[Bug]
: Corrections to existing functionality[CI]
: Changes to build process or CI pipeline[Docs]
: Updates or additions to documentation[API]
: Modifications to aibrix's API or interface[CLI]
: Changes or additions to the Command Line Interface[Misc]
: For changes not covered above (use sparingly)Note: For changes spanning multiple categories, use multiple prefixes in order of importance.
Submission Checklist
By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.