Snippets
My Stack
More
Sample the next token from a probability distribution using top-k and/or nucleus (top-p) sampling.