ChatGPT, built by OpenAI, is powered by a large language model in the GPT family — currently GPT-5.
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 — so its answers become more helpful and less harmful.
Serving
At inference time, requests are routed to fleets of GPUs running CUDA kernels.