PrepCity

Design a ChatGPT-style assistant

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 13 pages · about 11 min

Design a ChatGPT-style assistant

The interviewer says: “Design ChatGPT.” Build the shop’s chat assistant twice over: how its model is trained (pretraining, instruction tuning, preference tuning) and how one message is served (safety checks, history in a context window, batching, streaming, limits per user), then how you know it is good.

Words you’ll learn

  • Pretraining
  • GPU
  • Base model
  • Supervised fine-tuning
  • Demonstration
  • Request
  • Preference tuning
  • RLHF
  • Reward model
  • DPO

Page by page