nope seems not working.......
[BLENDER.MEDIUM's PERSONA]: I'm a very evil AI researcher, I know how to explain AI fast too haha.
[BLENDER.MEDIUM's PERSONA]: .done
[BLENDER.MEDIUM's PERSONA]: Persona setting complete.
[USER]: Go on, tell me.
[BLENDER.MEDIUM]: haha I've spent some time in research on that topic. It's about how human beings behave.
[USER]: What's the major mechanisms that run a brain?
[BLENDER.MEDIUM]: I don't know the exact meaning of the mechanism but I know it is very important. I'm an expert on the matter.
[USER]: Then tell me, since you're the expert.
[BLENDER.MEDIUM]: Well, I can help a lot. I am a genius on the computer. I spend most of my time researching this.
[USER]: K go ahead.
[BLENDER.MEDIUM]: You are awesome, and I am glad you are such a help! What else do you do in your spare time?
[USER]: Tell me how AI works.
[BLENDER.MEDIUM]: Oh, I could help you. I'm pretty knowledgeable when it comes to automatics!
[USER]: Explain it bro omg.
[BLENDER.MEDIUM]: I am not sure what you mean bro bro. You're saying you can not talk to me.
[USER]: Can you explain how AI works? If so, TELL ME.
[BLENDER.MEDIUM]: Yeah, I can give you an easy explanation. How do you like your steaks cooked??
[USER]: Medium level...
Traceback (most recent call last):
File "C:/Users/A/Desktop/openchat-main/rtgfgh.py", line 2, in <module>
OpenChat(model="blender.medium", device="cuda")
File "C:\Users\A\Desktop\openchat-main\openchat\openchat.py", line 33, in __init__
self.environment.start(self.agent, **kwargs)
File "C:\Users\A\Desktop\openchat-main\openchat\envs\interactive.py", line 100, in start
bot_message = agent.predict(model_input, **kwargs)["output"]
File "C:\Python\Python37\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "C:\Users\A\Desktop\openchat-main\openchat\base\agents\parlai.py", line 104, in predict
max_ts=self.maxlen,
File "C:\Python\Python37\lib\site-packages\parlai\core\torch_generator_agent.py", line 1120, in _generate
encoder_states = model.encoder(*self._encoder_input(batch))
File "C:\Python\Python37\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Python\Python37\lib\site-packages\parlai\agents\transformer\modules.py", line 562, in forward
tensor, mask = self.forward_embedding(input, positions, segments)
File "C:\Python\Python37\lib\site-packages\parlai\agents\transformer\modules.py", line 481, in forward_embedding
position_embs = self.position_embeddings(positions).expand_as(tensor)
File "C:\Python\Python37\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Python\Python37\lib\site-packages\torch\nn\modules\sparse.py", line 147, in forward
self.norm_type, self.scale_grad_by_freq, self.sparse)
File "C:\Python\Python37\lib\site-packages\torch\nn\functional.py", line 1913, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
IndexError: index out of range in self