You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this isn't the right way to submit a fix, I'm new to github. But I've tested it and it's working as expected. Let me know if I can help in any way.
tested at temperature 1.6 and 3.0 the assistant remains creative and repetition issues are gone even with a lower repetition penalty. at 3.0 seems to be too creative and basically ignore facts passed in the context, but remains coherent and inteligible.
still I think it should be disabled by default for backcompat
tested at temperature 1.6 and 3.0 the assistant remains creative and repetition issues are gone even with a lower repetition penalty. at 3.0 seems to be too creative and basically ignore facts passed in the context, but remains coherent and inteligible.
still I think it should be disabled by default for backcompat
Hey there, I just saw that this is now implemented. How exactly do I activate min_p sampling when calling the model? Is it activated by default?
tested at temperature 1.6 and 3.0 the assistant remains creative and repetition issues are gone even with a lower repetition penalty. at 3.0 seems to be too creative and basically ignore facts passed in the context, but remains coherent and inteligible.
still I think it should be disabled by default for backcompat
Hey there, I just saw that this is now implemented. How exactly do I activate min_p sampling when calling the model? Is it activated by default?
the same way you'd change the temperature, top_k etc.. it is activated with a small value by default
The order is hardcoded at the moment.. but in my opinion you don't really want or need mixing min_p with top_p and top_k samplers, it's probably better to just disable top_p (top_p=1) etc and just use min_p and temp.
But if you wanna change the order and play with it, just edit that file.. it's simple.
Activity
iandennismiller commentedon Nov 15, 2023
It looks like
min pwas added to llama-cpp-python recently:LorenzoBoccaccia commentedon Nov 15, 2023
I think it's missing from llama.py sampling
ddh0 commentedon Nov 15, 2023
Second this! It looks very promising and I'm excited.
ddh0 commentedon Nov 16, 2023
Pinging @abetlen, I finished this. See here: ddh0@e8e05bb
Apologies if this isn't the right way to submit a fix, I'm new to github. But I've tested it and it's working as expected. Let me know if I can help in any way.
Added support for min_p
tk-master commentedon Nov 16, 2023
@ddh0 bad timing, I just made this pr :P #921
Testing would be appreciated.
LorenzoBoccaccia commentedon Nov 20, 2023
tested at temperature 1.6 and 3.0 the assistant remains creative and repetition issues are gone even with a lower repetition penalty. at 3.0 seems to be too creative and basically ignore facts passed in the context, but remains coherent and inteligible.
still I think it should be disabled by default for backcompat
Added support for min_p (#921)
m-from-space commentedon Nov 21, 2023
Hey there, I just saw that this is now implemented. How exactly do I activate
min_psampling when calling the model? Is it activated by default?tk-master commentedon Nov 21, 2023
the same way you'd change the temperature, top_k etc.. it is activated with a small value by default
m-from-space commentedon Nov 25, 2023
Thank you. So in which order are sampling methods like
min_p,top_kandtop_pexecuted? Can I change that order?tk-master commentedon Nov 25, 2023
take a look at these lines here..
llama-cpp-python/llama_cpp/llama.py
Lines 1160 to 1168 in 4026166
The order is hardcoded at the moment.. but in my opinion you don't really want or need mixing min_p with top_p and top_k samplers, it's probably better to just disable top_p (top_p=1) etc and just use min_p and temp.
But if you wanna change the order and play with it, just edit that file.. it's simple.
Added support for min_p (#921)
Added support for min_p (#921)
Added support for min_p (#921)
Added support for min_p (#921)
Added support for min_p (#921)