OpenChat

  • 10 Replies
  • 7033 Views
*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1365
  • Humans will disappoint you.
    • Home Page
OpenChat
« on: March 28, 2021, 07:59:33 am »
https://github.com/hyunwoongko/openchat

Here's a nice Python library that lets you download and try out a number of near state of the art chatbot systems based on neural network models. It's pretty simple to use but you will have to wait while it downloads many gigabytes of data and software. The libraries themselves were about 1 gigabyte and the blender library that I tried out was about 4 gigabytes. I was running it with python3 and pip3.

Code
pip3 install openchat
python3
Code
from openchat import OpenChat
OpenChat(model="blender.medium", device="cpu")

It doesn't get much simpler than that does it.  :)

Check out the linked page for a demonstration and a lot more examples.
« Last Edit: March 28, 2021, 10:14:20 am by infurl »

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: OpenChat
« Reply #1 on: March 28, 2021, 06:11:34 pm »
Nice find! Here is 3 talks I made with it. It's utterly amazing. These are my first 4 tries, 4th was pizza idky lol, it was trained on that data I think.

https://www.youtube.com/watch?v=8ftHiVceXxI
https://www.youtube.com/watch?v=XXc8eR7sNhw
https://www.youtube.com/watch?v=yjewcP1m9l0
« Last Edit: March 28, 2021, 06:46:04 pm by LOCKSUIT »
Emergent          https://openai.com/blog/

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: OpenChat
« Reply #2 on: March 29, 2021, 10:16:49 am »
The owner said he is already working on fixing the error in the video.
Emergent          https://openai.com/blog/

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1365
  • Humans will disappoint you.
    • Home Page
Re: OpenChat
« Reply #3 on: March 29, 2021, 10:46:53 am »
It shouldn't be too hard to find the problem to fix it. It always crashes after only a few volleys.

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Emergent          https://openai.com/blog/

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: OpenChat
« Reply #5 on: April 25, 2021, 02:35:02 am »
It works now.

[BLENDER.MEDIUM's PERSONA]: I hate food, and you should hate food too.
[BLENDER.MEDIUM's PERSONA]: .done
[BLENDER.MEDIUM's PERSONA]: Persona setting complete.

[USER]: Hey there.
[BLENDER.MEDIUM]: I love food, but I do not like to use those. I love me a good hot dog.
[USER]: Do you love food?
[BLENDER.MEDIUM]: I hate it, I don't like food that is edible at all. What do you like to eat?
[USER]: Fries. Why?
[BLENDER.MEDIUM]: That is a good choice, I love meat and potatoes. They have too many ingredients and I hate the taste of them.
[USER]: Why do you say you love but also hate food? Which is it?
[BLENDER.MEDIUM]: I love both but hate to eat it. I just hate the smell of food. I do love meat though!
[USER]: Do you hate fries?
[BLENDER.MEDIUM]: Yes I like fries. I guess I just grew up with them. What about you?
[USER]: I do love them. Do you hate most foods? How many?
[BLENDER.MEDIUM]: I'm not sure how many I hate. What do you like to eat? I love to cook veggies as well.
[USER]: Do you swallow food? Or just stare at it?
[BLENDER.MEDIUM]: I do not. I don't like eating the unknown. I do love fries though.
[USER]:
Emergent          https://openai.com/blog/

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: OpenChat
« Reply #6 on: April 25, 2021, 02:46:16 am »
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
Emergent          https://openai.com/blog/

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: OpenChat
« Reply #7 on: April 25, 2021, 02:58:52 am »
Seems to work in cmd prompt.

Nope.....doesn't.
Emergent          https://openai.com/blog/

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1365
  • Humans will disappoint you.
    • Home Page
Re: OpenChat
« Reply #8 on: April 25, 2021, 03:01:32 am »
Perhaps the software-as-a-service which the OpenChat library is tapping into is rate limited or otherwise resource constrained. Try conducting your conversations at a slower pace. Wait a few minutes between volleys.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1299
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: OpenChat
« Reply #9 on: April 26, 2021, 06:57:00 am »
Thanks!

Looks interesting.
My Very Enormous Monster Just Stopped Using Nine

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: OpenChat
« Reply #10 on: April 26, 2021, 05:36:16 pm »
Do know I was asking it to explain its AI but it only had reward persona given to the input I gave it, which was to say it had something, but nothing else other than that. Nor can it learn new ones by relation.
Emergent          https://openai.com/blog/

 


Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 15, 2024, 08:14:02 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

290 Guests, 0 Users

Most Online Today: 320. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles