No module named 'transformers.generation'
- User
No module named 'transformers.generation'
- Assistant
It appears this is an error message you're receiving while working with the
transformersHugging Face library. There is nogenerationmodule within thetransformerslibrary, so this error message is to be expected. It appears you're trying to perform text generation tasks using this library, so you might consider importing theAutoModelForSeq2SeqLM,AutoTokenizer, andGenerationConfigmodules instead to perform such tasks.Before proceeding, ensure that the Hugging Face
transformerslibrary is up to date. You can also refer to documentation on performing NLP tasks using this library at https://huggingface.co/docs/transformers/generation_strategies.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.