hyunwoongko / openchat

OpenChat: Easy to use opensource chatting framework via neural networks
Apache License 2.0
437 stars 57 forks source link

AttributeError: 'GPT2LMHeadModel' object has no attribute 'predict' #30

Closed scy6500 closed 3 years ago

scy6500 commented 3 years ago

스크린샷 2021-04-21 오전 10 48 58

/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in __getattr__(self, name)
    946                 return modules[name]
    947         raise AttributeError("'{}' object has no attribute '{}'".format(
--> 948             type(self).__name__, name))
    949 
    950     def __setattr__(self, name: str, value: Union[Tensor, 'Module']) -> None:

AttributeError: 'GPT2LMHeadModel' object has no attribute 'predict'

When I select dialogpt and chat, I get the error

hyunwoongko commented 3 years ago

I fixed this bug. Could you try again? pip install --upgrade openchat