-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
# text-generation-inference-benchmark | ||
# Text Generation Inference benchmarking tool | ||
|
||
A lightweight benchmarking tool for inference servers. | ||
Benchmarks using constant arrival rate or constant virtual user count. | ||
|
||
![ui.png](assets%2Fui.png) | ||
|
||
## TODO | ||
|
||
- [ ] Check results | ||
- [ ] Allow for multiturn prompts for speculation | ||
- [ ] Push results to Optimum benchmark backend | ||
- [ ] Script to generate plots from results | ||
|
||
## Running a benchmark | ||
|
||
``` | ||
# start a TGI/vLLM server somewhere, then run benchmark... | ||
# ... we mount results to the current directory | ||
$ docker run \ | ||
--rm \ | ||
-it \ | ||
--net host \ | ||
-v $(pwd):/opt/text-generation-inference-benchmark/results \ | ||
registry.internal.huggingface.tech/api-inference/text-generation-inference-benchmark:latest \ | ||
text-generation-inference-benchmark \ | ||
--tokenizer-name "Qwen/Qwen2-7B" \ | ||
--max-vus 800 \ | ||
--url http:/localhost:8080 \ | ||
--warmup 20s | ||
``` | ||
|
||
Results will be saved in `results.json` in current directory. |
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