That's actually crazy. How does it do it? I thought that these machines only "predict the next word".
They’re just really really good at it.
That’s how ML is. “Prediction” is just another word for really really good guess.
If anything this seems like an ad for an AI. When I try these things they can even solve leetcode, for which they actually have the solution in the training set.
They encode their training data in their weights and do a kind of search on it given a prompt.
If leetcode problems are in their training data, then they’ll of course answer the question with ease.
(This is my understanding, I’m not ml engineer)