feat: Atn-dp fpm upstream integration - #9059
Merged
Merged
Conversation
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com>
Contributor
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com>
indrajit96
marked this pull request as ready for review
May 4, 2026 17:57
Contributor
Walkthrough
ChangesFPM Publisher Initialization Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
dynamo-ops
reviewed
May 4, 2026
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com>
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com>
tedzhouhk
approved these changes
May 26, 2026
tmonty12
pushed a commit
that referenced
this pull request
Jun 8, 2026
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com>
Broduker
pushed a commit
to Broduker/dynamo
that referenced
this pull request
Jun 12, 2026
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com> Signed-off-by: shenls <shenlinshan@kanzhun.com>
Broduker
pushed a commit
to Broduker/dynamo
that referenced
this pull request
Jun 12, 2026
Signed-off-by: Indrajit Bhosale <iamindrajitb@gmail.com> Signed-off-by: shenls <shenlinshan@kanzhun.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview:
Enable TRT-LLM ForwardPassMetrics under Attention-DP now that NVIDIA/TensorRT-LLM#13649 emits one
IterationStatsrow per Attention-DP rank.DO not merge until NVIDIA/TensorRT-LLM#13649 merges
Details:
No FPM schema change. Planner still reads normal
ForwardPassMetricsevents from theforward-pass-metricsevent plane.Before this change, Dynamo disabled TRT-LLM FPM when
attention_dp_size > 1, so planner did not receive TRT-LLM ForwardPassMetrics for Attention-DP workers.After this change, planner sees one FPM stream per Attention-DP rank, keyed by the existing
(worker_id, dp_rank)fields:dp_rank=0, because TRT-LLM's executor request queue is rank-0/global and must not be double-counted.wall_timeis repeated on each rank row for the same forward pass.Example decoded FPM events from H100x2 E2E validation:
{ "version": 1, "worker_id": "7587894670641032969", "dp_rank": 0, "counter_id": 273, "wall_time": 0.03973197937011719, "scheduled_requests": { "num_prefill_requests": 2, "sum_prefill_tokens": 2, "var_prefill_length": 0.0, "sum_prefill_kv_tokens": 53, "num_decode_requests": 6, "sum_decode_kv_tokens": 198, "var_decode_kv_tokens": 0.0 }, "queued_requests": { "num_prefill_requests": 4, "sum_prefill_tokens": 111, "var_prefill_length": 0.0, "num_decode_requests": 0, "sum_decode_kv_tokens": 0, "var_decode_kv_tokens": 0.0 } } { "version": 1, "worker_id": "7587894670641032969", "dp_rank": 1, "counter_id": 273, "wall_time": 0.03973197937011719, "scheduled_requests": { "num_prefill_requests": 2, "sum_prefill_tokens": 20, "var_prefill_length": 0.0, "sum_prefill_kv_tokens": 36, "num_decode_requests": 6, "sum_decode_kv_tokens": 193, "var_decode_kv_tokens": 0.0 }, "queued_requests": { "num_prefill_requests": 0, "sum_prefill_tokens": 0, "var_prefill_length": 0.0, "num_decode_requests": 0, "sum_decode_kv_tokens": 0, "var_decode_kv_tokens": 0.0 } }Where should the reviewer start?
components/src/dynamo/trtllm/publisher.pycomponents/src/dynamo/trtllm/tests/test_trtllm_fpm_publisher.pyRelated Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
Bug Fixes
Tests