Transformer from Scratch · Text Generation
Temperature, Top-K and Top-P Sampling
Text Generation
Introduction
You will learn three basic ways to control generation randomness: temperature, top-k, and top-p. The goal is to balance predictability and text diversity deliberately.