On a high-level temperature and randomness affect the output of a generative language model:
Lower temperature: Produces more focused, conservative, and consistent responses.
Moderate temperature: Strikes a balance between creativity and consistency. This setting can be useful for general content generation, where a blend of accuracy and inventiveness is desired.
Higher temperature: Generates more creative, diverse, and unexpected outputs.
What I'm not sure of is where exactly randomness (controlled by the temperature) comes into play. I believe to have understood that it's only after a transformer has done its deterministic work, suggesting some probable next words.
Can you confirm that the transformer works strictly deterministically and there is no randomness inside or between the attention layers?