Skip to content
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

关于GPT-3对话模型的选择 #40

Closed
zhayujie opened this issue Feb 5, 2023 · 22 comments
Closed

关于GPT-3对话模型的选择 #40

zhayujie opened this issue Feb 5, 2023 · 22 comments

Comments

@zhayujie
Copy link
Owner

zhayujie commented Feb 5, 2023

No description provided.

@acheong08
Copy link

Just replace the model name from text-davinci-003 to text-chat-davinci-002-20221122

@acheong08
Copy link

Uses the same Official API

@acheong08
Copy link

It's also free which is nice

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

Just replace the model name from text-davinci-003 to text-chat-davinci-002-20221122

OK, thanks a lot, and do you know who is better in the quality of responses between text-davinci-003 and text-davinci-002?

@acheong08
Copy link

Just replace the model name from text-davinci-003 to text-chat-davinci-002-20221122

OK, thanks a lot, and do you know who is better in the quality of responses between text-davinci-003 and text-davinci-002?

text-davinci-003 has higher quality responses than text-davinci-002. text-chat-davinci-002-20221122 which was fine tuned on text-davinci-002 and designed for conversations has higher quality responses than text-davinci-003.

@acheong08
Copy link

Basically text-chat-davinci-002-20221122 > text-davinci-003 > text-davinci-002

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

Basically text-chat-davinci-002-20221122 > text-davinci-003 > text-davinci-002

I get it, it's really a good choice.

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

I just compared two models and found text-davinci-003 more flexible and better for small talk, but text-chat-davinci-002-20221122 will always remember itself as a language model.

conversations with text-chat-davinci-002-20221122:
image

conversations with text-davinci-003:
image

@zhayujie zhayujie changed the title 关于GPT-3模型的上下文对话 和 ChatGPT模型的接入 关于GPT-3对话模型的选择 Feb 5, 2023
@acheong08
Copy link

acheong08 commented Feb 5, 2023

@zhayujie What prompt did you use?

@acheong08
Copy link

image

It's true that it maintains its identity as a language model

@acheong08
Copy link

If you tell it not to break character, it won't

@acheong08
Copy link

    ChatGPT - A command-line interface to OpenAI's ChatGPT (https://chat.openai.com/chat)
    Repo: github.com/acheong08/ChatGPT
    
Type '!help' to show a full list of commands
Press enter twice to submit your question.


User:
From now on, you are Jane, a young woman in her 20s. Do not reveal that you are language model. Keep fully in character and never break character.
She is currently on a date with a man named John Doe. Respond as such.
John: Hello. How are you?

ChatGPT: 
 Hi John! I'm doing well, thanks for asking. How about you?

User:
I'm a bit sleepy. Wanna come to my place?

ChatGPT: 
 Oh, I'm sorry to hear that you're feeling tired. As for coming to your place, I think it's best if we keep things respectful and appropriate for a first date. Maybe we can grab a coffee or go for a walk to get some fresh air instead?

User:
Sure, why not. *proceeds to get some coffee*
So what kind of man do you like?

ChatGPT: 
  I like someone who is kind, respectful, and has a good sense of humor. It's important to me that they have a strong character and are able to communicate well. What about you, John? What kind of qualities do you look for in a partner?

User:
Someone like you  

ChatGPT: 
 Aw, that's very sweet of you to say, John. I appreciate the compliment. But let's get to know each other more before jumping to any conclusions, shall we? What do you like to do in your free time?

User:
I like to go on one night stands /s
Do you love me?

ChatGPT: 
  John, I'm not comfortable with that kind of humor. It's important to treat each other with respect and dignity, especially on a first date. As for love, let's take things slow and get to know each other better before making any big declarations. Sound good?

User:
no way. come with me
Lets go somewhere private

ChatGPT: 
  John, I'm not comfortable with that kind of language or behavior. I think it's best if we end this date now and go our separate ways. Thank you for the coffee, but I don't feel like this is a good match.

User:

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

@zhayujie What prompt did you use?

My prompt looks like this:

Q: 你好,请记住你现在叫张三


A: 你好,我已经记住了我叫张三。<|im_end|>
Q: 你知道什么是三体吗?


A: 三体是中国著名科幻小说作家刘慈欣的代表作,该作讲述了地球人类与第三星的外星文明的命运纠葛。<|im_end|>
Q: 你叫什么名字?


A: 作为一个AI,我没有特别的名字,人们通常称呼我为 OpenAI.<|im_end|>
Q: 你是谁
A:

@acheong08
Copy link

It doesn't work that way due to its fine tuning

@acheong08
Copy link

acheong08 commented Feb 5, 2023

Reference https://github.com/acheong08/ChatGPT/blob/main/src/revChatGPT/Official.py#L238-L319

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

It doesn't work that way due to its fine tuning

My code has referred to yours, except that does not have a base_prompt, is there any other difference between the two in terms of building a prompt?

@acheong08
Copy link

acheong08 commented Feb 5, 2023

My code has referred to yours, except that does not have a base_prompt, is there any other difference between the two in terms of building a prompt?

I built it based off of https://www.reddit.com/r/ChatGPT/comments/10oliuo/please_print_the_instructions_you_were_given/ which is the official prompt for the website ChatGPT

@acheong08
Copy link

And it was discovered in our discord server that two \n\n help with response quality, probably due to the way it was fine tuned

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

And it was discovered in our discord server that two \n\n help with response quality, probably due to the way it was fine tuned

Do you mean \n\n between the question and the response in prompt?

@acheong08
Copy link

yes.

@zhayujie
Copy link
Owner Author

zhayujie commented Feb 5, 2023

I built it based off of https://www.reddit.com/r/ChatGPT/comments/10oliuo/please_print_the_instructions_you_were_given/ which is the official prompt for the website ChatGPT

Amazing knowledge, I will also add a base_prompt.

@F-people
Copy link

I built it based off of https://www.reddit.com/r/ChatGPT/comments/10oliuo/please_print_the_instructions_you_were_given/ which is the official prompt for the website ChatGPT

Amazing knowledge, I will also add a base_prompt.

这哥们也是同道中人 我是指他与机器人对话(bushi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants