Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logprobs to generation result #37

Open
neilmehta24 opened this issue Nov 15, 2024 · 0 comments
Open

Add logprobs to generation result #37

neilmehta24 opened this issue Nov 15, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@neilmehta24
Copy link
Member

MLX provides logprobs after each evaluation step. These should be available to the caller so that the user is informed of the likelihood of the model's top choices.

This example from OpenAI provides an example of how one can use logprobs in a variety of use cases https://cookbook.openai.com/examples/using_logprobs.

@neilmehta24 neilmehta24 added the enhancement New feature or request label Nov 15, 2024
@neilmehta24 neilmehta24 self-assigned this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant