Skip to content

Commit a6fe740

Browse files
authored
Merge pull request #963 from NVIDIA/ipod/llm-docs-fix
[LLM] fix docs for sglang and vllm
2 parents f349a8f + 579543e commit a6fe740

2 files changed

Lines changed: 34 additions & 12 deletions

File tree

doc/workloads/sglang.rst

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ SGLang is a high-throughput and memory-efficient inference engine for LLMs. This
88
Usage Examples
99
--------------
1010

11-
Test + Scenario example
12-
~~~~~~~~~~~~~~~~~~~~~~~
11+
Test and Scenario Examples
12+
~~~~~~~~~~~~~~~~~~~~~~~~~~
1313

1414
.. code-block:: toml
1515
:caption: test.toml (test definition)
@@ -65,11 +65,9 @@ Test-in-Scenario example
6565
docker_image_url = "lmsysorg/sglang:dev-cu13"
6666
model = "Qwen/Qwen3-8B"
6767
68-
[Tests.bench_cmd_args]
69-
random_input = 16
70-
random_output = 128
71-
max_concurrency = 16
72-
num_prompts = 30
68+
Workload-specific test definition sections, such as ``bench_cmd_args`` and ``semantic_eval_cmd_args``, are not
69+
supported under ``[[Tests]]`` in a test scenario. Define them in a test definition TOML and reference that test with
70+
``test_name`` when custom benchmark or semantic-evaluation arguments are needed.
7371

7472

7573
Semantic Validation
@@ -96,6 +94,19 @@ The ``cli`` string supports ``{model}``, ``{host}``, ``{port}``, ``{url}``, ``{o
9694
placeholders.
9795

9896

97+
Reporting
98+
---------
99+
After a run completes, CloudAI parses ``sglang-bench.jsonl`` and prints serving latency, successful prompt count,
100+
completion rate, throughput, TPS per user, and TPS per GPU. If ``semantic_eval_cmd_args`` is configured, CloudAI also
101+
reports semantic validation accuracy.
102+
103+
The reported metric (``default``) is throughput. Additional supported metrics are ``throughput``, ``tps-per-user``,
104+
``tps-per-gpu``, and ``accuracy``.
105+
106+
CloudAI also provides the scenario-level ``sglang_comparison`` report. It compares SGLang test runs in the scenario and
107+
uses ``bench_cmd_args`` values as comparison labels.
108+
109+
99110
Readiness health checks
100111
-----------------------
101112
Healthcheck fields:

doc/workloads/vllm.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ Test-in-Scenario example
6565
docker_image_url = "nvcr.io#nvidia/ai-dynamo/vllm-runtime:0.7.0"
6666
model = "Qwen/Qwen3-0.6B"
6767
68-
[Tests.bench_cmd_args]
69-
random_input_len = 16
70-
random_output_len = 128
71-
max_concurrency = 16
72-
num_prompts = 30
68+
Workload-specific test definition sections, such as ``bench_cmd_args`` and ``semantic_eval_cmd_args``, are not
69+
supported under ``[[Tests]]`` in a test scenario. Define them in a test definition TOML and reference that test with
70+
``test_name`` when custom benchmark or semantic-evaluation arguments are needed.
7371

7472

7573
Semantic Validation
@@ -91,6 +89,19 @@ The ``cli`` string supports ``{model}``, ``{host}``, ``{port}``, ``{url}``, ``{o
9189
placeholders.
9290

9391

92+
Reporting
93+
---------
94+
After a run completes, CloudAI parses ``vllm-bench.json`` and prints serving latency, successful prompt count,
95+
completion rate, throughput, TPS per user, and TPS per GPU. If ``semantic_eval_cmd_args`` is configured, CloudAI also
96+
reports semantic validation accuracy.
97+
98+
The reported metric (``default``) is throughput. Additional supported metrics are ``throughput``, ``tps-per-user``,
99+
``tps-per-gpu``, and ``accuracy``.
100+
101+
CloudAI also provides the scenario-level ``vllm_comparison`` report. It compares vLLM test runs in the scenario and
102+
uses ``bench_cmd_args`` values as comparison labels.
103+
104+
94105
Controlling the Number of GPUs
95106
-------------------------------
96107
GPU selection priority, from lowest to highest:

0 commit comments

Comments
 (0)