Error

#13
by emrulnlp - opened

Hello, I get the following error. Can anyone help me? Thanks
/lib/python3.10/site-packages/transformers/generation/configuration_utils.py:520: UserWarning: do_sample is set to False. However, top_p is set to 0.9 -- this flag is only used in sample-based generation modes. You should set do_sample=True or unset top_p.

emrulnlp changed discussion title from Erroor to Error

Hi,

Could you showcase the code snippet you used to get that warning? It's possible you passed top_p without passing do_sample=True to the generate method which is why you get that warning.

Sign up or log in to comment