You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has an error 'GPTModelWrapper' object has no attribute 'can_generate' how can i do? thanks
I encountered the same problem. The reason is that the GPTModelWrapper, which inherits from the GenerationMixin, lacks the corresponding class methods and related attributes. My solution is to modify the GPTModelWrapper class according to the PreTrainedModel in transformers : 1. Add the can_generate() method 2. Add self.generation_config in init()
When i run
There has an error
'GPTModelWrapper' object has no attribute 'can_generate'
how can i do?
thanks
The text was updated successfully, but these errors were encountered: