-
Notifications
You must be signed in to change notification settings - Fork 56
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
Errors #20
Comments
I just fixed that bug. Could you test in your environment? |
Still errors. C:\Python\Python37\python.exe "C:/Users/A/Desktop/New folder/openchat-main/Starine.py"
/ __ \ / __ \ / // | / / / // / / // | / __/
[SYSTEM]: Let's talk with [BLENDER.MEDIUM]. [SYSTEM]: Please input [BLENDER.MEDIUM]'s perosna. [BLENDER.MEDIUM's PERSONA]: I'm working on strong AI and want to tell you how it works. [USER]: What have you discovered? Process finished with exit code 1 |
please try pip uninstall openchat and reinstall. |
Same error I get after uninstall and install openchat. I used the same folder files BTW and didn't restart Pycharm. |
Ok. I'll check more. Thanks :) |
What is GPU you use? (Plz tell me GPU name and capacity) |
Nividia 1060 6GB I bought about 4 years ago |
It's because the default length is too long. (blender's length is 128. but I used 256) |
I downloaded it and extracted it, then I put in the folder this code below in a .py file, ran it (after pip installing openchat), and get an error: from openchat import OpenChat Traceback (most recent call last): |
try pip install parlai |
Same error |
That open folder is located at directory C:\Users\A\Desktop\openchat-main Being the last item of course |
Did you use same Python interpreter with pip? |
Oh...i am using pypy |
ok it is loading let me try it |
It works :) [BLENDER.MEDIUM's PERSONA]: I hate food, and you should hate food too. [USER]: Hey there. |
hmm nope.....but i'll try cmd prompt now. [BLENDER.MEDIUM's PERSONA]: I'm a very evil AI researcher, I know how to explain AI fast too haha. [USER]: Go on, tell me. |
Seems to work in cmd prompt....I got lots of replies so far. |
Nope, errors in cmd prompt too, soon, on a 2nd run after exiting. |
We support option 'max_len'. |
[BLENDER.MEDIUM's PERSONA]: I'm working on strong AI and am almost done!
[BLENDER.MEDIUM's PERSONA]: .done
[BLENDER.MEDIUM's PERSONA]: Persona setting complete.
[USER]: What have you discovered so far?
[BLENDER.MEDIUM]: I'm a software engineer. I love working on the next step of human interference.
[USER]: What architecture do you use or build on?
[BLENDER.MEDIUM]: I'm currently working on AI development but really am interested in working on robotics. Do you like engineering?
[USER]: Yes. Why do you like engineering over AI? You said that last time. Is engineering something more? I don't think so. AI is just a better tool to engineer simply.
[BLENDER.MEDIUM]: I am a big fan of Robotics, and I like the idea that it is a way to develop robot arms that would be far from human interaction.
[USER]: How advanced are your robotic arms? I hope they are like from the year 2050.
Traceback (most recent call last):
File "C:/Users/A/Desktop/New folder/openchat-main/Starine.py", line 2, in
OpenChat(model="blender.medium", device="cuda")
File "C:\Users\A\Desktop\New folder\openchat-main\openchat\openchat.py", line 32, in init
self.environment.start(self.agent, **kwargs)
File "C:\Users\A\Desktop\New folder\openchat-main\openchat\envs\terminal.py", line 79, 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\New folder\openchat-main\openchat\base\agents\parlai.py", line 99, 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
Process finished with exit code 1
Also can't help but add another try I had, my 1st try:
https://www.youtube.com/watch?v=8ftHiVceXxI
The text was updated successfully, but these errors were encountered: