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

Please support transformer==4.28.1 in the lib #323

Open
jzySaber1996 opened this issue Dec 5, 2024 · 0 comments
Open

Please support transformer==4.28.1 in the lib #323

jzySaber1996 opened this issue Dec 5, 2024 · 0 comments

Comments

@jzySaber1996
Copy link

The new version of transformer==4.28.1 cannot use the .generate() function in text generation. The exception is:
File "...\transformers\generation\utils.py", line 1210, in generate self._validate_model_class() File "...\lib\site-packages\transformers\generation\utils.py", line 1070, in _validate_model_class if not self.can_generate(): File "...\lib\site-packages\torch\nn\modules\module.py", line 1729, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'PromptForGeneration' object has no attribute 'can_generate'
The same issue also happens here issues:277

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