Sampling Lab

Turn the temperature, top-k, and top-p knobs on a toy distribution and watch the output odds change.

This is an interactive tool — open it in a browser to use it.