Skip to content

[https://nvbugs/6758245][fix] Avoid metrics queue polling when iteration stats are disabled - #19517

Closed
BowenFu wants to merge 2 commits into
NVIDIA:mainfrom
BowenFu:fix/nvbugs-6758245
Closed

BowenFu wants to merge 2 commits into
NVIDIA:mainfrom
BowenFu:fix/nvbugs-6758245

Conversation

@BowenFu

@BowenFu BowenFu commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Rubin issue

NVBug 6758245 reports that Kimi K3 NVFP4 serving on Rubin regresses when enable_iter_perf_stats=false: output performance and interactivity degrade versus the enabled configuration. The failure is in the disabled /metrics path, not in metric computation.

Root cause / invariant

With iteration stats disabled, no background stats buffer is created. The /metrics handler nevertheless fell through to the legacy get_stats_async(2) queue poll, causing a timeout/poll on every request. With stats enabled, the collector-owned buffer path was used. The invariant is that disabled stats must return an empty metrics payload without touching the stats queue, while VisualGen, enabled buffered metrics, and legacy missing-flag behavior remain unchanged.

Change

  • Short-circuit disabled iteration stats in OpenAIServer.get_iteration_stats.
  • Add repeated direct-call and registered FastAPI /metrics regression coverage.

Evidence

The Rubin reproduction recorded the false arm entering legacy_queue_poll with get_stats_async(2) and the true arm using buffer_return; after the guard, the false arm is disabled_short_circuit.

Validation

  • Commit 4ccb3fdf8c5facc9dbf4a77e40cde19d71dc4141 reviewed and transplanted as c5854eab343ba78a70ab81c01e1ae13866d85b4a.
  • Compile, Ruff formatting/checks, and git diff --check passed.
  • Codex adversarial review found no actionable correctness issues.
  • Focused product pytest is environment-blocked by missing nvtx/compiled bindings.
  • Exact Kimi K3 runtime verification remains pending.

Bug: https://nvbugspro.nvidia.com/bug/6758245

Claude adversarial review was requested; its client did not return a verdict before PR creation.

@BowenFu

BowenFu commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #75084 [ run ] triggered by Bot. Commit: 83ab85b Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #75084 [ run ] completed with state SUCCESS. Commit: 83ab85b
/LLM/main/L0_MergeRequest_PR pipeline #61838 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@BowenFu BowenFu changed the title [nvbugs/6758245] Avoid metrics queue polling when iteration stats are disabled [https://nvbugs/6758245][fix] Avoid metrics queue polling when iteration stats are disabled Oct 29, 2026
@BowenFu BowenFu closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants