Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ base:
env:
AIPERF_REQUIRED_SERVER_METRIC_PREFIX: 'vllm:'

# One variant per point, concurrency 1 through 64 on both TP arms (c128 and
# c192 excluded). Engram tables move to pinned host memory at TP2, where
# resident tables leave too little KV. For p90 interactivity, TP4 c1-c2 and
# TP2 c1-c4 run one sequence at a time with 32768-token prefill chunks, and
# TP2 c8 caps at 2 with 8192-token chunks. Graph capture there is
# max-num-seqs x (1 + 5 drafts), rounded up to vLLM's capture grid (8, 16);
# a size off the grid is truncated and larger steps run eagerly. All other
# points capture up to 1024 with the upstream 16384-token chunks, except
# c16 and c32, which run 8192-token chunks and admit at most 4 (c16) or 8
# (c32) running sequences.
# Engram tables move to pinned host memory at TP2, where resident tables leave
# too little KV. max-num-seqs keeps every decode step of the capped points
# inside the mono decode kernels (at most 8 requests x 6 rows) and queues the
# other sessions: TP4 c4, c16, c24, c32 and c48 run 1, 2, 4, 6 and 8 requests,
# TP2 c16 and c32 run 4 and 8; c64 runs uncapped. TP4 c1-c2 and TP2 c1-c8
Comment on lines +71 to +74

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 nit (optional): The rewritten block comment lists each point's max-num-seqs (1, 2, 4, 6, 8 for TP4; 4 and 8 for TP2), which repeats values the overrides below already set. AGENTS.md's mandatory comment rule says a comment must never restate the code, and this copy will go stale when a cap changes. Fix: keep only the reason, e.g. "max-num-seqs keeps every decode step inside the 48-row mono decode launch (8 requests x 6 rows); other sessions queue." Drop the per-concurrency list.

Why this was flagged

agentic.yaml:72-75 spells out the per-point caps ("TP4 c4, c16, c24, c32 and c48 run 1, 2, 4, 6 and 8 requests, TP2 c16 and c32 run 4 and 8; c64 runs uncapped"). The same values already appear as max-num-seqs in override_tp4_c4 (line 116), override_tp4_c16 (143), override_tp4_c24 (157), override_tp4_c32 (171), override_tp4_c48 (185), override_tp2_c16 (283) and override_tp2_c32 (297). AGENTS.md "Comments (mandatory, every file)" allows only a short technical reason for a line or block and says "never restate the code". The base comment also restated values, but this diff rewrites the comment and adds five more of them. The next PR that retunes a cap without editing this comment will leave it wrong, so readers get a false account of the recipe.

Verification: The block comment this PR rewrote, at agentic.yaml:74-75, says "TP4 c4, c16, c24, c32 and c48 run 1, 2, 4, 6 and 8 requests, TP2 c16 and c32 run 4 and 8; c64 runs uncapped". The overrides below already set exactly these values. AGENTS.md:46-50 says "never restate the code". The copied numbers will go stale the next time a cap is edited.

# capture graphs up to max-num-seqs x (1 + 5 drafts), rounded up to vLLM's
# capture grid (8, 16); a size off the grid is truncated and larger steps run
# eagerly.
override_tp4_c1:
roles:
agg:
Expand Down Expand Up @@ -110,7 +108,8 @@ override_tp4_c4:
tensor-parallel-size: 4
engram-config: '{"cpu_offload":false}'
max-cudagraph-capture-size: 1024
max-num-batched-tokens: 16384
max-num-batched-tokens: 32768
max-num-seqs: 1
benchmark:
env:
CONC: '4'
Expand All @@ -135,11 +134,24 @@ override_tp4_c16:
engram-config: '{"cpu_offload":false}'
max-cudagraph-capture-size: 1024
max-num-batched-tokens: 8192
max-num-seqs: 4
max-num-seqs: 2
benchmark:
env:
CONC: '16'

override_tp4_c24:
roles:
agg:
args:
tensor-parallel-size: 4
engram-config: '{"cpu_offload":false}'
max-cudagraph-capture-size: 1024
max-num-batched-tokens: 8192
max-num-seqs: 4
benchmark:
env:
CONC: '24'

override_tp4_c32:
roles:
agg:
Expand All @@ -148,11 +160,24 @@ override_tp4_c32:
engram-config: '{"cpu_offload":false}'
max-cudagraph-capture-size: 1024
max-num-batched-tokens: 8192
max-num-seqs: 8
max-num-seqs: 6
benchmark:
env:
CONC: '32'

override_tp4_c48:
roles:
agg:
args:
tensor-parallel-size: 4
engram-config: '{"cpu_offload":false}'
max-cudagraph-capture-size: 1024
max-num-batched-tokens: 8192
max-num-seqs: 8
benchmark:
env:
CONC: '48'

override_tp4_c64:
roles:
agg:
Expand Down
7 changes: 3 additions & 4 deletions inferencex-e2e/configs/amd-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -972,10 +972,9 @@ dsv41flash-fp4-mi355x-vllm-agentic-dspark:
scenarios:
agentic-coding:
- search-space:
# TP4 runs c1 and c2 only; TP2 covers concurrency 1-64. c128 and c192
# are excluded: c128 did not raise the scored metric at TP=2 (150,683
# against 151,896 tok/s/chip at c64).
- { gpus-per-worker: 4, tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2], srt-recipe: agentic.yaml }
# TP4 covers the interactivity end and TP2 the throughput end; concurrency
# 128 and above runs on the DP2 key below.
- { gpus-per-worker: 4, tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2, 4, 16, 24, 32, 48], srt-recipe: agentic.yaml }
- { gpus-per-worker: 2, tp: 2, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2, 4, 8, 16, 32, 64], srt-recipe: agentic.yaml }

dsv41flash-fp4-mi355x-vllm-agentic-dspark-tp8-c1:
Expand Down
10 changes: 10 additions & 0 deletions inferencex-e2e/perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13401,3 +13401,13 @@
- "NVFP4 target and indexer KV caches, FP8 draft KV, the DSpark draft as shipped, golden-curve synthetic acceptance. Disaggregated points move KV with NIXL over UCX and offload it to the Mooncake store (188.875 GB host segment per rank, dram-utilization 1.0). Dynamo 1.6.0.dev20261023 frontend with KV routing on every point. Aggregated: KV events on, 14400 s session-affinity TTL. Disaggregated: no router KV events or busy thresholds, soft session affinity (15 s TTL at 950, Dynamo's default elsewhere), router temperature 0, and prefill workers chosen by Dynamo's two-tier cost function (cache threshold 0.8 at 260 and 340, 1.0 at 590 and 950). Dynamo sidecar gRPC ports from 65001 on all six."
- "Disaggregated workers leave numa-bind unset, as the aggregated points do, so vLLM's automatic NUMA binding applies (numactl --cpunodebind=N --preferred=N where its conditions hold) instead of --membind=N."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5153

- config-keys:
- dsv41flash-fp4-mi355x-vllm-agentic-dspark
scenario-type:
- agentic-coding
description:
- "Add TP4 concurrency 4, 16, 24, 32 and 48 to the MI355X vLLM curve, on the same image as the existing points. TP4 caps the running requests at 1, 2, 4, 6 and 8 for concurrency 4, 16, 24, 32 and 48 (32768-token prefill chunks at 4, 8192 elsewhere), so every decode step fits the 48-row mono decode launch; sessions past the cap queue."
- "The existing points (TP4 concurrency 1-2, TP2 concurrency 1-64, TP8 concurrency 1, DP2 concurrency 128-384) keep their recipes and do not rerun."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/5158
append-only: true