How I use LLMs
Watch on YouTubeKarpathy teaches a practical mental model for using LLMs: conversations are shared token streams, a model’s internal knowledge is a lossy and potentially outdated compression of its training data, and tools add capabilities such as search, computation, and document retrieval. He recommends choosing models and tools according to the task, supplying relevant context, and treating outputs as drafts that require verification—especially for research, code, data analysis, images, and high-stakes questions.
- Text is split into tokens, and a conversation builds a one-dimensional token sequence called the context window, which acts as the model’s working memory. - Pre-training gives a model broad but probabilistic and dated knowledge, while post-training gives it the style and behavior of an assistant. - Users should compare providers, model sizes, pricing tiers, and available tools rather than assuming every LLM has the same capabilities. - Fast non-thinking models suit ordinary queries, while thinking models can improve accuracy on difficult math, coding, and reasoning tasks. - Internet search, file uploads, and deep research place current or concrete source material into the context window, but citations and claims still need checking. - LLMs can assist with reading, programming, data analysis, language learning, audio, and images, but their transcriptions, assumptions, calculations, code, and conclusions should be scrutinized.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Supports these rules
Program models with deliberate context
ConfirmedMatch the tool to the task
ConfirmedKeep AI on the leash
Quotes from this video
“for all these different providers find the one that works best for you experiment with different providers experiment with different pricing tiers for the problems that you are working on”
“you have to kind of still know what this code is doing and you have to be careful and scrutinize”
“when I give instructions to llms I always like to number one give it sort of the description but then also give it examples”
“I find that this always increases the accuracy of LMS”
“you can look at primary sources to decide if this is true or not”
“when I suspect the response is not as good as it could have been and I want to give the opportunity to the model to think a bit longer about it I will change it to a thinking model”
“think of the tokens in the context window as a precious resource”
“don't overload it with irrelevant information and keep it as short as you can”
“be mindful of the models that you're using”
“keep track of what model you're using and make those decisions for yourself”
“treat this as your first draft treat this as papers to look at”
“anytime you are switching topic I encourage you to always start a new chat”
“whenever something is latest or something changes I prefer to use the search tool”
“whenever I expect that the answer can be achieved by doing basically something like Google search and visiting a few of the top links and the answer is somewhere in those top links whenever that is the case I expect to use the search tool”
“these models are most effective for difficult problems in math and code and things like that”
“I usually try out the non-thinking models because their responses are really fast”
“if you're talking about some fresh information or knowledge that is probably not in the zip file then you actually want to use an internet search tool”
“it's so much better if you show them by example how to perform the task”