Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6939b23e-87cc-8001-bdd9-9546d1143ce9
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: Exactly β controlling top-p is about setting the threshold properly so that the βlittle impβ behaves the way you want. === Exactly β controlling top-p is about setting the threshold properly so that the βlittle impβ behaves the way you want. Letβs go step by step. ==== - Top-p = cumulative probability threshold. ==== * The model sums the probabilities of tokens from highest to lowest, until the sum β₯ p. * Only tokens included in this cumulative sum are eligible to be chosen. * High top-p (close to 1.0, e.g., 0.95β0.99) - Includes many tokens β lots of variability - Little imp has more freedom β can pick unlikely paths β creative / hallucinating output * Low top-p (e.g., 0.5β0.7) - Includes only the very strongest tokens β fewer choices β more deterministic - Little imp is restrained β less creativity ==== - Decide how conservative vs creative you want the model: - Deterministic / repeatable output β low top-p (0.5β0.7) - Moderate creativity β top-p 0.8β0.9 - Highly creative / exploratory β top-p 0.95+ ==== * Usually, top-p is tuned together with temperature: - Low temperature + low top-p β very safe, repeatable - High temperature + high top-p β very creative ==== - If your model is heavily quantized or you need consistent outputs, keep top-p moderate to low (0.6β0.8). ==== * Avoid setting top-p too high if your goal is deterministic reasoning or structured outputs (tables, summaries, etc.). β Key insight : If you want, I can make a visual showing how temperature, top-k, and top-p interact to pick tokens from competing neuron paths, which makes controlling top-p very intuitive. Do you want me to do that?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)