You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 729fd08
Browse filesBrowse the repository at this point in the historyBrowse files
[None][feat] trtllm_modeling_v2 tune: warn when a perf config's CUDA graphs stop short
The high-throughput perf config captured CUDA graphs up to batch 32
(`cuda_graph_config.max_batch_size: 32`) at concurrency 128 under attention
DP 4. Each rank held 32 live requests on average and 40-46 at its peaks, so
decode fell back to eager for hours of measurements; capturing 1..128 raised
total throughput 61%. Nothing in the spec checks or the campaign said so.
`tune.spec.capture_shortfalls` reads each perf config's resolved LLM-API
options (the identity configs, or the derived ones without writing them) and
flags a config that turns CUDA graphs off, or whose largest captured batch,
as the LLM API resolves it, is below the live requests one rank holds: the
concurrency over the attention-DP ranks times 1.5 for uneven finishes,
capped by the concurrency and the engine's `max_batch_size`. The intake
lint reports each as a `perf-cuda-graph-coverage` warning with the capture
that covers it, and the tune stage journals it (and records it in the perf
ledger) when it starts. It stays a warning: the campaign measures the config
as written. INTAKE.md says how to size the capture.
Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
Copy file name to clipboardExpand all lines: agent-flow/agent_flow/workflows/trtllm_modeling_v2/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ The agent prepares the spec and launches the workflow; missing inputs must be re
30
30
31
31
**The agent writes the spec by following [spec/INTAKE.md](spec/INTAKE.md)**: `trtllm-modeling-v2 intake
32
32
derive` writes a starting spec (no `site.yaml` needed), and `trtllm-modeling-v2 intake lint` checks
33
-
it for slow or stalling choices (eager gates, a batch below the claimed concurrency, a member too
33
+
it for slow or stalling choices (eager gates, a batch below the claimed concurrency, a perf
34
+
config whose CUDA graphs stop below the live requests a rank holds, a member too
34
35
narrow for one engine, disaggregation wider than a session, variant cross products, variants that
35
36
boot at every member, a feature proven
36
37
at several members or again under another axis, unusable accuracy anchors, open-ended boot probes) and blocks an accuracy check that runs without CUDA graphs and
Copy file name to clipboardExpand all lines: agent-flow/agent_flow/workflows/trtllm_modeling_v2/spec/INTAKE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ goal words cannot say.
65
65
| disagg |`accuracy.disagg.test`: the node id of the target's disaggregated-serving accuracy test, written beside the tree's own (the tests that serve through `trtllm-serve disaggregated`, configured, set up and launched as they are), with the environment it reads in `accuracy.disagg.env` (`LLM_MODELS_ROOT` ...); it runs once, at the member the request validates fully. Derive sizes it from the checkpoint: **one node** when a context and a generation engine both fit (`accuracy.disagg.devices`, two engines of two on a 4-GPU node), else `accuracy.disagg.nodes` with one engine per node, as the tree's multi-node disaggregated tests place them | boot and accuracy run one aggregated engine and never cross the hop; a multi-node test runs one pytest process per node of one gates allocation (`MV2FLOW_JOB_NODE_RANK/HOSTS/NODES`), so the gates session must hold that many nodes |
66
66
| any other feature (MTP, speculative, offload ...) | name it in `--goal`; `derive.report.md` and `task.example.yaml` say what its unit owes | the same one-variant-per-axis rule applies |
67
67
| workload isl / osl / concurrency |`max_seq_len = isl + osl`; `max_batch_size` >= the concurrency; both are **global totals**: under attention DP each rank serves its share (`max_batch_size / ranks`, rounded up); `max_num_tokens` = isl (or 8192); `perf.workload`||
68
-
| "perf tune" |`perf.enabled: true`; `perf.workload.concurrency` 1/32/128 unless the goal names it; a `dep` member only the high point, a global total | it starts once the core's required checks hold, never holds the onboarding back (its jobs queue below the onboarding's, its verdict does not wait for it), and measures one baseline (no stock reference, no repeats); a goal is `ratio_to_baseline` or `pct_of_sol`|
68
+
| "perf tune" |`perf.enabled: true`; `perf.workload.concurrency` 1/32/128 unless the goal names it; a `dep` member only the high point, a global total; a perf config's `cuda_graph_config` captures up to the live requests a rank holds (under attention DP the concurrency over the ranks, x1.5 as they finish unevenly)| it starts once the core's required checks hold, never holds the onboarding back (its jobs queue below the onboarding's, its verdict does not wait for it), and measures one baseline (no stock reference, no repeats); a goal is `ratio_to_baseline` or `pct_of_sol`|
69
69
70
70
**The smallest contract that covers the request.** Every check loads the model (minutes on a
71
71
large checkpoint), and every change to the target runs the stale checks again, so the contract's
0 commit comments