Skip to content

How to ensure unadulterated topk=1 sampling? #7590

Discussion options

You must be logged in to vote

After playing around a bit from llama-cpp-python, top_k=1 seems to pre-empt attempts to perturb with temperature, min_p and top_p, which is consistent with the default sampler order

sampling order: 
CFG -> Penalties -> top_k -> tfs_z -> typical_p -> top_p -> min_p -> temp 

So it seems indeed with the ubersampler all I really have to worry about is penalties. repeat_penalty can be set to 1.0 to disable, and penalize_nl shouldn't matter because there's no repetition penalty. Also tfs is disabled by default, as is mirostat which seems to replace the rest of the chain altogether if enabled

One question remains: Even though min_p and top_p seem to specify probabilities (0-1), temperature (par…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandon-lockaby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant