Design ChatGPT
Functional Requirement:
Create conversation
Send message
Delete conversation
Language preference?
Do we support images/attachment?
Thumb up/down?
Login system? Rate Limiting?
How about context window? In the conversation?
Non-functional Requirement:
Low Latency
Highly available
Scalable
Scale
10M user/day -> 5 conversations, 4 messages -> 200M messages per day.
200M messages -> 100 bytes -> 20G per day -> 73TB (10 years)
High Level Design
GPT RLHF
Fine tuning with RL
Proximal Policy Optimization
Policy is a language model that takes in a prompt and returns a sequence of text (just probability distributions over text)




Last updated