Skip to content

FR: Expose per-token log probabilities/confidence #164

Description

@grikdotnet

Hi!
Thank you for a good implementation, but there is a missing API point.

For models like Parakeet TDT, Qwen3-ASR I use to obtain token log probabilities from the raw decoder logits. This is useful for detecting uncertain words, and UI highlighting.

Can you add an API endpoint or parameter similar to the other execution providers, such as Llama.cpp and OONX?
This is a relatively small non-BC breaking addition to the current API, cause logprobs are used internally.
I can provide a PR, if you'd like, I just did not want to overstep with an API design suggestions.

Ideally:
token_id, token_text, logprob

with probability = exp(logprob) left to the caller.

Grigori

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions