Earlier quoted context omitted.
Inside the magic AI box is literally nothing but this loop: int n_tokens = 0; while (n_tokens If you don't believe me then just download llama.cpp and see for yourself.
decode() looks simple! Wow, obviously intelligence can't live behind that function call! /s Now, take that for loop, and replace the implementation of decode(context, ++position) and pass it to a human who was bored enough to play along and use a notebook to organize their thoughts and translate them to/from this encoding (you might write a helper function to do this for the human in the front-end of the new decode()…
Deal with it.