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

Replace logits_to_logprobs implementation with numpy equivalent to llama.cpp #991

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

player1537
Copy link
Contributor

@player1537 player1537 commented Dec 9, 2023

See #990. This change makes the logits_to_logprobs function equivalent to the version in the llama.cpp repository. It uses numpy so it's much faster than the previous version.

Edit: I should add that I'm not 100% confident in this change. I'd appreciate if someone else could test this themselves too.

…ama.cpp

See abetlen#990. This change makes the logits_to_logprobs function equivalent to the version in the llama.cpp repository. It uses numpy so it's much faster than the previous version.
@abetlen abetlen merged commit ef22e47 into abetlen:main Dec 12, 2023
16 checks passed
@abetlen
Copy link
Owner

abetlen commented Dec 12, 2023

@player1537 perfect, thank you very much!

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