Skip to content

Commit 6265633

Browse files
committed
docs: add client-only benchmark example
1 parent d4de63d commit 6265633

4 files changed

Lines changed: 52 additions & 3 deletions

File tree

‎docs/how-to/benchmarking/persistent-server-reuse.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ fields. On the final invocation, change only `server_lifecycle.cleanup` to
100100

101101
## Example
102102

103-
See `examples/benchmarks/benchmark_vllm_reuse.yaml` for a local example and
103+
See `examples/benchmarks/benchmark_vllm_local_reuse.yaml` for a local example and
104104
`examples/benchmarks/benchmark_sglang_docker_reuse.yaml` for a Docker example.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SGLang client-only benchmark against an externally managed server.
2+
# ===================================================================
3+
#
4+
# Magpie does not start or stop the inference server in this mode. Start an
5+
# OpenAI-compatible server separately, make it reachable from this host, and
6+
# set BENCHMARK_BASE_URL below. The Magpie built-in wrapper detects that value
7+
# and runs only the InferenceX benchmark client.
8+
#
9+
# BENCHMARK_BASE_URL should contain only the scheme, host, and port. The
10+
# benchmark endpoint defaults to /v1/completions.
11+
#
12+
# Usage:
13+
# python -m Magpie benchmark \
14+
# --benchmark-config examples/benchmarks/benchmark_sglang_client_only.yaml
15+
16+
benchmark:
17+
framework: sglang
18+
model: Qwen/Qwen3-Next-80B-A3B-Instruct-FP8
19+
precision: fp8
20+
run_mode: docker
21+
docker_image: "your-client-image:version"
22+
23+
# Use a Magpie built-in script: native InferenceX benchmark scripts do not
24+
# necessarily support BENCHMARK_BASE_URL or client-only execution.
25+
benchmark_script: "sglang_mi355x.sh"
26+
timeout_seconds: 3600
27+
28+
envs:
29+
# Address of the externally managed OpenAI-compatible inference server.
30+
BENCHMARK_BASE_URL: "http://server-host-or-ip:8888"
31+
32+
CONC: 32
33+
ISL: 1024
34+
OSL: 1024
35+
NUM_PROMPTS: 320
36+
RANDOM_RANGE_RATIO: 1
37+
38+
# For a chat-only endpoint, uncomment both settings:
39+
# MAGPIE_BENCHMARK_BACKEND: "openai-chat"
40+
# MAGPIE_BENCHMARK_ENDPOINT: "/v1/chat/completions"
41+
42+
# Server-side profiling is unavailable when Magpie does not own the server.
43+
profiler:
44+
torch_profiler:
45+
enabled: false
46+
system_profiler:
47+
enabled: false
48+
tracelens:
49+
enabled: false

examples/benchmarks/benchmark_vllm_reuse.yaml renamed to examples/benchmarks/benchmark_vllm_local_reuse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# examples/benchmarks/benchmark_vllm_reuse_cleanup.yaml
2121
#
2222
# Usage:
23-
# python -m Magpie benchmark --benchmark-config examples/benchmarks/benchmark_vllm_reuse.yaml
23+
# python -m Magpie benchmark --benchmark-config examples/benchmarks/benchmark_vllm_local_reuse.yaml
2424

2525
benchmark:
2626
framework: vllm

‎examples/benchmarks/benchmark_vllm_reuse_cleanup.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pair with benchmark_vllm_reuse.yaml: run this once as the final step to tear
1+
# Pair with benchmark_vllm_local_reuse.yaml: run this once as the final step to tear
22
# down the persistent shared server.
33
# =====================================================================
44
#

0 commit comments

Comments
 (0)