News for hackers. Stuff that matters.
Re:LLM Powered Autonomous Agents by quickthrower2 on Tuesday June 27, 2023 @06:42AM (#36491152)
Yes. The actual output is all the tokens and a probability for each. You can pick the highest or take one randomly using those probabilities. Depends how creative or deterministic you want it to be.
Re:LLM Powered Autonomous Agents by cubefox on Tuesday June 27, 2023 @06:51AM (#36491220)
Exactly. A temperature of 0 means you always pick the highest probability token (i.e. the "max" function), while a temperature of 1 means you randomly pick a token according to their given probability. Values in between are also possible.

However, it's important to note that the numbers which the models returns for the next tokens can only be interpreted as probabilities for foundation models. For fine-tuned models (instruction SL, RLHF) the numbers represent how good the model judges the next token to be. This also leads to a phenomenon called mode collapse.

Re:LLM Powered Autonomous Agents by quickthrower2 on Tuesday June 27, 2023 @08:10AM (#36491717)
Very interesting to know! (about FM vs FTM) Thanks.