Add support for greedy decoding

#2

The current implementation of sampling only uses torch.multinomial and does not support greedy decoding when temperature is 0.0 / top-k is 0 / top-p is 1.0. This PR adds support for greedy decoding.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment