Skip to content

Update server.cpp with min_p after it was introduced in #3841 - #3877

Merged
jhen0409 merged 4 commits into
ggml-org:masterfrom
Mihaiii:server/minp
Nov 9, 2023
Merged

jhen0409 merged 4 commits into
ggml-org:masterfrom
Mihaiii:server/minp

Conversation

@Mihaiii

@Mihaiii Mihaiii commented Oct 31, 2023 •

Copy link
Copy Markdown
Contributor

Update server code after #3841 was merged.

@Green-Sky

Green-Sky commented Nov 1, 2023 •

Copy link
Copy Markdown
Collaborator

I think it works? While testing I realized that the "show probabilities" feature is totally bonkers. It not only shows only the split between the configured probabilities, and thus making 1 show 100% all the time, it also forces to have atleast N samples at sampling time -> if 2nd token has a 1% probability, it can still be picked, even with "you need to be at least 90%" min p....

@ivanstepanovftw

ivanstepanovftw commented Nov 1, 2023 •

Copy link
Copy Markdown
Contributor

you need to be at least 90% min p...

... after first 4 samplers and penalties that are enabled by default

@ggerganov

Copy link
Copy Markdown
Member

@Green-Sky Can you show an example? It seems the "show probabilities" works fine (testing on master):

image

@Green-Sky

Copy link
Copy Markdown
Collaborator

I disable everthing else: top-k to 0, top-p to 1.0 and since temp is applied after min-p and the other samplers, i set it to 1.0.
Set "Show Probabilities" to a larger number to exacerbate the effect.

image
image

@jhen0409
jhen0409 merged commit 57ad015 into ggml-org:master Nov 9, 2023
olexiyb pushed a commit to Sanctum-AI/llama.cpp that referenced this pull request Nov 23, 2023
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
* Update server.cpp with min_p after it was introduced in ggml-org#3841

* Use spaces instead of tabs

* Update index.html.hpp after running deps.sh

* Fix test - fix line ending
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.

5 participants