Arun Jagota has a pretty good article on how natural language models work. Given the current ChatGPT I wanted to read a bit more about the details of how it works. You got to have some idea of NeuralNetworks to read it though. So learn that first