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!
==== - Temperature is a parameter that affects the randomness of token selection during generation. ==== * The model produces a probability distribution over all possible next tokens. - Example: next token probabilities might be: ``<code> token1 = 0.7 token2 = 0.2 token3 = 0.1 <syntaxhighlight>- Temperature changes how βpeakedβ or βflatβ this probability distribution is: - Low temperature (e.g., 0.1) β makes the distribution sharper β model almost always picks the highest-probability token β deterministic, conservative outputs. - High temperature (e.g., 1.0 or 1.5) β flattens the distribution β model is more likely to pick lower-probability tokens β creative, varied, sometimes hallucinated outputs. : ==== - Important: temperature does not change weights, layers, or neuron connections. ==== * The internal computation of the network is identical; the model still produces the same activation outputs for each neuron. * Temperature is applied after the neuron activations are converted into probabilities for the next token. - Specifically: the model produces logits (raw numbers for each token) β divide logits by temperature β apply softmax β sample next token. Mathematically: </syntaxhighlight> P(token_i) = exp(logit_i / temperature) / sum_j(exp(logit_j / temperature)) </code>`` * Lower temperature β logits become more extreme β top token dominates * Higher temperature β logits less extreme β more chance for alternatives
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)