Repository navigation
[TRTLLM-16757][fix] Capture telemetry fields inside configuration model sequences - #19779
Mgluhovskoi merged 6 commits into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 9 remain after this review. WalkthroughTelemetry manifest generation now tracks nested model routes through unions and lists. Runtime capture projects those routes through model sequences, sanitizes leaf values, and records sequence truncation. The manifest documentation and capture tests were updated. ChangesConfiguration sequence capture
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Collector as collect_llm_api_config_payloads
participant CapturePath as _capture_path
participant ModelInstances
Collector->>CapturePath: Resolve and sanitize a manifest route
CapturePath->>ModelInstances: Match model types and project list values
CapturePath-->>Collector: Return presence, safety, and captured value
Merge Risk: ⚪ Minimal · up to Nested-model lists can now contribute safe telemetry fields, and rejected projections do not falsely report truncation. The review establishes no actionable current-head issue; the reported CI failures remain unattributed and do not establish a code regression. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/bot run |
|
Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements. |
|
PR_Github #76029 [ run ] triggered by Bot. Commit: |
brnguyen2
left a comment
There was a problem hiding this comment.
Approving — the comments below are optional touch-ups, not blockers.
Route-based matching closes the gap where list[Model] fields were in the manifest but never captured. The tests check the privacy cases that matter here: one arm can't use another arm's leaf policy, an unsafe element past the truncation point still excludes the field, and no null is emitted for a missing element.
Process items:
- Ticket: this is a bug fix to telemetry and privacy capture on a release branch, so please put an NVBug or JIRA in the title instead of
[None]. - Main counterpart: the PR targets
release/1.3only. Please link the matchingmainPR, or say this will be forward-ported, somaindoesn't keep the dropped-field behavior or diverge onFIELD_POLICY_VERSION. - Docs diff:
telemetry.mdgains six rows unrelated to this change (cache_transceiver_config.agent_bounce_buffer_enable,enable_return_routed_experts,enable_tokenization_cache,sparse_attention_config.fuse_qkv_index_projection,sparse_attention_config.uses_spcompress,speculative_config.skip_ctx_buffer_budget_check, plusspeculative_config.moe_backend) and new enum values, presumably from regenerating against current release/1.3. The table has no list-projection rows, since there are no list-of-model fields on this branch yet. Please say this in the description so reviewers don't look for rows that aren't there. - Removed traversal: the description says tuple/set containers of models "remain excluded", but
_nested_modelsused to traversetupleandsetelement types. Any key under atuple[Model, ...]orset[Model]field now disappears from the manifest. If no such field exists inTorchLlmArgstoday, please say so in the description; if one does, it's a removed field and consumers should hear about it.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Semantic conflict reviewThe verdict of record is the Latest recorded state: No semantic conflict found (best effort) for head Best-effort AI judgment for the recorded revisions. PASS, FAIL and INCONCLUSIVE may be incomplete or incorrect. PR authors and reviewers should independently verify the evidence and relevant behavior. This semantic review and its status/workflow are advisory, not required merge checks under current repository rules; other merge requirements still apply. Advisory status does not make a confirmed defect safe to ignore.
Processed request and reply comments are minimized to reduce timeline noise; they remain expandable for audit. |
|
PR_Github #76029 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76051 [ run ] triggered by Bot. Commit: |
|
PR_Github #76051 [ run ] completed with state
|
Signed-off-by: Maxim Gluhovskoi <[email protected]>
Signed-off-by: Maxim Gluhovskoi <[email protected]>
Signed-off-by: Maxim Gluhovskoi <[email protected]>
Signed-off-by: Maxim Gluhovskoi <[email protected]>
Signed-off-by: Maxim Gluhovskoi <[email protected]>
837e238 to
4a49d0a
Compare
|
/bot run |
|
PR_Github #76103 [ run ] triggered by Bot. Commit: |
Signed-off-by: Maxim Gluhovskoi <[email protected]>
|
/bot run |
|
PR_Github #76112 [ run ] triggered by Bot. Commit: |
|
PR_Github/19779-4a49d0a #76103 was force-killed by a newer pipeline run. |
|
PR_Github #76112 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76125 [ run ] triggered by Bot. Commit: |
|
PR_Github #76125 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76143 [ run ] triggered by Bot. Commit: |
|
PR_Github #76143 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76144 [ run ] triggered by Bot. Commit: |
|
PR_Github #76144 [ run ] completed with state
|
|
/bot run |
|
PR_Github #76158 [ run ] triggered by Bot. Commit: |
|
PR_Github #76158 [ run ] completed with state |
|
/bot run |
|
PR_Github #76251 [ run ] triggered by Bot. Commit: |
|
PR_Github #76251 [ run ] completed with state |
Fix telemetry capture for lists of configuration models, found while reviewing #19736. The manifest could discover fields such as
extra_model_inputs.shape, but runtime capture stopped at the list and silently omitted them.The runtime now captures safe fields through lists of models, and the manifest includes the surrounding list, such as
list[tuple[int|literal]]. Privacy exclusions and size limits remain enforced. Field policy version advances to 4; the event schema is unchanged. Duplicate model routes now fail manifest construction, and rejected fields no longer set truncation metadata.Previously, tuple/set model containers were traversed for the manifest but not captured at runtime. They are now excluded from both. No such fields exist in this branch's reachable
TorchLlmArgsconfiguration models, so no current golden entries are removed. Tuple-valued scalar fields remain supported.The generated documentation refreshes stale rows and enum domains from the existing release golden; these are not additional fields collected by this fix. This branch does not yet contain #19736's list-of-model declarations, so there are no list-projection rows in the golden or documentation yet.
Targets
release/1.3. After combining this with #19736, regenerate the golden manifest so the shape entries include the outer list. Shape reporting requires a build containing both changes. Main-branch cherry-pick: #19811.Validation: 70 focused capture tests and lint checks passed.
Dev Engineer Review
llmapi_config.pydiscovers nested model routes through unions and lists. Runtime capture follows those routes and applies field policies, sequence limits, and payload limits."3"to"4".telemetry.mddocuments additional captured fields and updated allowed-value domains. The golden manifest must be regenerated to include the outer list in shape entries.release/1.3/L0_MergeRequest_PRbuilds. The failed tests are unspecified.QA Engineer Review
tests/unittest/usage/test_llmapi_config_capture.py; its field-policy-version expectation changes to"4".tests/unittest/usage/test_llmapi_model_sequences.py. Coverage includes nested model lists, nullable leaves, model unions, unsupported containers, absent or unsafe elements, truncation, payload limits, exclusions, and duplicate routes.Per-File QA Perspective
docs/source/developer-guide/telemetry.md: Verify documented fields and allowed-value domains against the regenerated manifest, including list projections.tensorrt_llm/usage/llmapi_config.py: Verify nested-list manifest discovery and runtime capture, including duplicate-route errors, privacy exclusions, unsafe or absent elements, and size limits.tests/unittest/usage/test_llmapi_config_capture.py: Verifies the updated field-policy version. It is not an integration-test-list entry.tests/unittest/usage/test_llmapi_model_sequences.py: Covers manifest and payload handling for model sequences, exclusions, and limits. It is not an integration-test-list entry.