[Tools][Recipes] Improve sweep recommendations and short-alias parsing (#53946)

Signed-off-by: louie-tsai <louie.tsai@intel.com>
This commit is contained in:
Louie Tsai
2026-08-27 06:58:23 +00:00
committed by GitHub
parent aa640684cc
commit 79651d6085
7 changed files with 352 additions and 74 deletions
+23 -10
View File
@@ -11,7 +11,7 @@ python3 tools/recipes/recipe_json_to_vllm_config.py \
--model meta-llama/Llama-3.1-8B-Instruct \
--hardware xeon6 \
--detect-hardware \
--input-tokens 2048 \
--input-tokens 128 \
--output-tokens 128 \
--concurrency 32 \
--ttft-sla-ms 3000 \
@@ -30,8 +30,11 @@ sweep/
└── SWEEP.md
```
The sweep currently varies only `max-num-seqs` and
`max-num-batched-tokens`.
The sweep varies only `max-num-seqs` and `max-num-batched-tokens`. It uses an
eight-point directed design: a batch-budget curve at the initial sequence count
plus lower/higher batch interactions at three-quarters and one-half of that
count. This gives broader coverage than a one-parameter-at-a-time sweep without
the cost of a full Cartesian grid.
## Run and Recommend
@@ -54,13 +57,23 @@ sweep/recommended-config.yml
sweep/recommendation.json
```
With TTFT/TPOT objectives, the benchmark uses vLLM `--goodput`, and the
recommender selects highest mean request goodput across repeated runs. Without
latency objectives it selects highest mean output-token throughput. Failed
benchmark configurations are excluded.
With TTFT/TPOT objectives, the benchmark uses vLLM `--goodput`. The recommender
calculates duration-weighted combined compliance across repeated runs and
requires both median P99 latency objectives and the minimum compliance ratio
(default `0.99`). Among eligible configurations it selects the highest mean
output-token throughput. Use `recommend.py --minimum-compliance VALUE` to
change the compliance requirement.
`recommended-config.yml` changes only the two swept scheduler parameters.
`recommendation.json` records the measured evidence.
If no configuration is eligible, `recommend.py` records the highest-goodput
configuration as `best_effort` in `recommendation.json`, does not write a
deployable `recommended-config.yml`, and exits with status 2. Without latency
objectives it selects highest mean output-token throughput. Failed benchmark
configurations are excluded in either mode.
When an eligible configuration exists, `recommended-config.yml` changes only
the two swept scheduler parameters. `recommendation.json` records mean, median,
and worst-run P99 values, combined compliance, and the measured evidence for
every candidate.
Deploy:
@@ -83,7 +96,7 @@ python3 /recipes/recipe_json_to_vllm_config.py \
--model meta-llama/Llama-3.1-8B-Instruct \
--hardware xeon6 \
--detect-hardware \
--input-tokens 2048 \
--input-tokens 128 \
--output-tokens 128 \
--concurrency 32 \
--ttft-sla-ms 3000 \