What building a GPT-style chatbot actually involves: five stages and one crucial distinction
jaspindersingh83 · reddit · 2026-12-06
The author breaks down the two very different meanings of "build ChatGPT from scratch": training a small model to learn the architecture vs. producing a useful chatbot on a pretrained model, arguing beginners should separate them explicitly.
The five-stage technical path:
- Tokenization: text to token IDs; character tokens make mechanics visible, subword tokenizers are more efficient and shape sequence length and learnable patterns
- Representation: learned token and position embeddings—attention operates on vectors, not strings
- Causal transformer: masked self-attention so position t can't see future tokens; each position yields logits for the next token
- Objective and training: shifted input/target sequences, cross-entropy on next-token logits, backprop; a tiny random-init model makes the loop understandable but won't match ChatGPT quality
- Inference: iteratively sample or pick the next token; decoding choices change apparent quality even with fixed weights
He suggests running a pretrained open-weight model locally as a "conversational preview" of the destination, while making clear those weights weren't trained by the learner. Also packaged into a free 10-video series.
More from Research
- How information flows through transformers: the residual stream and the K/V stream — repligate · 2026-12-06
- AI researcher: progress comes from finding which dimensions matter, not faster search — RileyRalmuto · 2026-12-06
- ANNA + Selective G-Bispectra lifts 4B LLM OOD length generalization from 0% to 35-56% — mayfer · 2026-12-06
- NASA, IBM and NVIDIA to demo Sun foundation model at NeurIPS with +40% flare forecasting — CatAstro_Piyush · 2026-12-06
- Two NeurIPS papers, one oral: author to present on pretraining data and RL post-training — KevinKaichuang · 2026-12-06
- PhyProbe: a 1M-parameter scoring head beats VLMs at judging video physics — CSProfKGD · 2026-12-06