[Blenderbot] Getting runtime error while using generate
While using blenderbot small model, I got a peculiar error saying–RuntimeError: probability tensor contains eitherinf,nanor element < 0I have been using generator function for many days, but never had this issue. Below is the code i used-model = BlenderbotForConditionalGeneration.from_pretrained(‘facebook/blenderbot-90M’)tokenizer = BlenderbotSmallTokenizer.from_pretrained(‘facebook/blenderbot-90M’)outputs = model.generate(input_ids=encoded, max_length=20, do_sample=True, temperature=1.5, top_k=150, top_p=0.99)
2021-01-11T14:16:58Z
Hi@parvej, could you also post the input (theencodedvariable in your snippet) that way we can reproduce it.
2023-04-11T12:59:48Z
Could you solve it? I’m facing the same issue.
2023-08-08T23:55:36Z
facing same issue and waiting for solution