Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UserWarning: You have modified the pretrained model configuration to control generation. #4

Open
wasertech opened this issue Aug 8, 2023 · 0 comments

Comments

@wasertech
Copy link
Owner

wasertech commented Aug 8, 2023

This is a deprecated strategy to control generation and will be removed soon, in a future version.
Please use a generation configuration file.

❯ translate
ℹ Welcome!
ℹ I am Translator version: 0.3.4b4
ℹ At your service.
? What would you like to translate? Manually typed sentences
ℹ Translating from: Manually typed sentences
? What language to translate from? fr
ℹ Translating from fra_Latn.
? What language to translate to? en
ℹ Translating to eng_Latn.
ℹ Preparing to translate...
Type [Ctrl] + [C] to exit.
          
What would you like to translate?
? Translate: Salut je suis heureux de te rencontrer.
/home/waser/Projets/OneOS/src/.venv/lib/python3.11/site-packages/transformers/generation/utils.py:1270: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation )
  warnings.warn(
Hi. Nice to meet you.
          
What would you like to translate?
? Translate: On doit corriger tenir compte de l'avertissement ci-dessus...
We must correct the above warning...
          
What would you like to translate?
? Translate:                                                                                                                                                                                 

Cancelled by user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant