-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix][Bench] Improve determinism and log dump (#2960)
This PR updates the benchmark with the following changes: 1. Fix the preprocessing of ShareGPT dataset. In ShareGPT dataset, sometimes a conversation entry starts with role GPT instead of role human, but previously the benchmark always selects the first message as the input and second as output. Therefore it might cause sending the GPT output in the dataset as a request input to benchmark servers. This does not align with the expectation and we thus fix it. 2. We make sure that for a given seed, given tokenizer and a given number of requests, the sampled requests are always the same across different runs. This improves the determinism and reproducibility. 3. Introduce logging raw request records into file. The raw request records include all information of a request, including its input prompt, measured metrics, error message, etc.
- Loading branch information
1 parent
f51c0f6
commit 42aaa7f
Showing
5 changed files
with
124 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.