Skip to content

Export speculative verification rounds for aggregate acceptance length #21731

Open

Description

@yifjiang

The Prometheus exporter exposes accepted-token and draft-token counters, but no counter for request verification rounds containing draft tokens. The existing last-iteration acceptance-length gauge cannot produce a round-weighted aggregate across workers and reporting intervals.

The executor already serializes specDecodingStats.numRequestsWithDraftTokens. Exporting this field would provide the denominator for 1 + accepted_tokens / verification_rounds, evaluated only when the round rate is positive.

The related accepted-token and draft-token metric children should also exist at zero before the first positive observation. Otherwise an interval containing only rejected drafts has no numerator series instead of a measured zero.

Proposed scope: exporter initialization and iteration-stat accounting plus CPU regression tests. No executor, sampler, kernel, or wire-format change is needed.

Activity

  1. added
    Speculative Decoding
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Speculative Decoding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions