Skip to content

sampling: remove duplicated code for probability distribution access #6240

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

Conversation

mscheong01
Copy link
Collaborator

since #5625, function llama_sampling_probability_distribution with duplicated code of llama_sampling_sample was added to access the probability distribution used for sampling.
This PR is an attempt to remove such code.

@ggerganov ggerganov merged commit 586e7bc into ggml-org:master Mar 24, 2024
56 checks passed
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
…l-org#6240)

* sampling: remove duplicated code for probability distribution access

* free original_logits

* fix original_logits allocation

* fixes based on review @cebtenzzre

* change function name to `llama_sampling_prepare`
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 3, 2024
…l-org#6240)

* sampling: remove duplicated code for probability distribution access

* free original_logits

* fix original_logits allocation

* fixes based on review @cebtenzzre

* change function name to `llama_sampling_prepare`
tybalex pushed a commit to rubra-ai/tools.cpp that referenced this pull request Apr 17, 2024
…l-org#6240)

* sampling: remove duplicated code for probability distribution access

* free original_logits

* fix original_logits allocation

* fixes based on review @cebtenzzre

* change function name to `llama_sampling_prepare`
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.

4 participants