Which TWO parameters directly control the randomness and diversity of generated tokens?
Temperature scales logits to affect randomness.
Why this answer
Temperature and top-p (nucleus sampling) are the primary parameters that influence randomness and diversity.