Antirez understood the fundamentals of how LLMs work, and read the inference code (or summaries of it via ai).
But what really made the difference was his understanding of hardware and systems programming in general and low level or architectural tricks to pull.