How does Andrej Karpathy decide when to use reasoning models, search, or tools with LLMs?
Andrej Karpathy says to start simple and only add reasoning or tools when the task needs them. For math, code, and other reasoning-heavy problems, a reasoning model can improve accuracy; for fresh information, use internet search; and for data or plots, use Python or Advanced Data Analysis. His basic rule is to match the tool to the kind of problem instead of assuming one model can do everything.
“Today, so in particular, we saw that this is very useful and gives additional accuracy in problems like math, code, and reasoning. So try without reasoning first, and if your model is not solving that kind of, kind of a problem, try to switch to a reasoning model and look for that in the user interface on top of that. Then we saw that we are rapidly giving the models a lot more tools. So as an example, we can give them an internet search. So 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. And not all of these apps have it.”

Key takeaways
- Try a normal model first, then switch to reasoning if needed.
- Use search for up-to-date information.
- Use Python or analysis tools when the task involves computation, plots, or code.
Context
During a June 2023 talk on LLM workflows, Karpathy was comparing different app features and when each one is useful. The quote above is taken word for word from the recording's transcript.
In the transcript
…creative in its writing; and so on. If the model is very small, then probably it's not going to be as creative; it has a lot less world knowledge, and it will make mistakes. For example, it might hallucinate. Um, on top of that, a lot of people are very interested in these models that are thinking and trained with reinforcement learning, and this is the latest frontier in research.
Today, so in particular, we saw that this is very useful and gives additional accuracy in problems like math, code, and reasoning. So try without reasoning first, and if your model is not solving that kind of, kind of a problem, try to switch to a reasoning model and look for that in the user interface on top of that. Then we saw that we are rapidly giving the models a lot more tools. So as an example, we can give them an internet search. So 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. And not all of these apps have it.
use something like Advanced Data Analysis. If you're prototyping some kind of a web app, you might want to use Artifacts, or if you are generating diagrams because it's right there and in line inside the app. Or if you're programming professionally, you may want to turn to a different app like Cursor and Composer. On top of all of this, there's a layer of multimodality that is rapidly becoming…
Read the full transcript of Talk / online presentation, June 2023
Topics
More questions about Andrej Karpathy
- What did Andrej Karpathy say about scaling laws in large language models?
- What does Andrej Karpathy mean by the 'cognitive core' in LLMs?
- Why did Andrej Karpathy say bigram language models break down with more context?
- How small did Andrej Karpathy think powerful AI models could become?
- What did Andrej Karpathy say about JSON versus YAML token efficiency?
- What tokenizers did Andrej Karpathy recommend using?
All Andrej Karpathy answers · All Andrej Karpathy recordings
How this answer was made: the quote is checked word for word against the transcript of the recording and confirmed as the speaker's own words; the summary above it was drafted with AI from that transcript and quality-checked. Methodology and corrections.