KARADAVI
Technology

How ChatGPT works

Under the friendly chat window is a Transformer, a lot of GPUs, and a specific way of aligning it.

Published Jan 30, 20258 min readTechnology

ChatGPT(Product), built by OpenAI(Company), is powered by a large language model in the GPT family — currently GPT-5(Model).

Pre-training

First the model is trained to predict the next token on a large text corpus. This is where it learns grammar, facts, and code.

Alignment

Then it is fine-tuned with human feedback — a form of Reinforcement Learning(Concept) — so its answers become more helpful and less harmful.

Serving

At inference time, requests are routed to fleets of GPU(Hardware)s running CUDA(Platform) kernels.

Explore Further

Continue exploring the forest
Next trailChatGPT

Every article leads somewhere. Follow this entity, or search the whole forest.