How does ChatGPT work? chatgpt chatgpt3 machinelearning Machine Learning. 1 First let's look at how GPT-3 or any language model is trained. They will be given a series of tokens as input (a sentence is split into tokens. How you split them up is up to you)