What does do_sample parameter of the generate method of the Hugging face model do?
Generates sequences for models with a language modeling head. The method currently supports greedy decoding, multinomial sampling, beam-search decoding, and beam-search multinomial sampling.
do_sample (bool, optional, defaults to False) – Whether or not to use sampling;
use greedy decoding otherwise.
When the Beam search length is 1, it can be called greedy. Does do_sample=False mean the same?