.. role:: hidden
    :class: hidden-section
.. currentmodule:: torchtune.generation


sample
======

.. autofunction:: sample