whenever i set do_sample=True
, i get the error: RuntimeError('invalid multinomial distribution (with replacement=False, not enough non-negative category to sample)')
, i don’t know why it is happening, but i want to use do_sample=True
because it gives out more relevant results. Im using the Bart-Large-CNN for text summarization, with huggingface transformers version 4.20.1, any help would be greatly appreciated.