This video, by Andrej Karpathy, explains how to use Large Language Models (LLMs) like ChatGPT. It covers the basics of how LLMs work, including their pre-training and post-training stages, and how they process information using tokens in a 'context window'. Karpathy demonstrates practical applications like asking for general knowledge and problem-solving, emphasizing the importance of understanding the model's limitations and choosing the right model for the task. The video also introduces 'thinking models' for complex problems and 'tool use' (like internet search) for accessing recent information.

Key Takeaways

1

LLMs like ChatGPT process user input and generate responses by breaking text into 'tokens' within a 'context window,' which acts as the model's working memory for the conversation.

2

LLMs are trained in two main stages: pre-training, where they compress the entire internet into a 'zip file' of knowledge, and post-training, which gives them the persona of an assistant.

3

Models have a 'knowledge cutoff' because pre-training is expensive and infrequent, meaning they won't know about very recent events unless given external tools.

4

When starting a new conversation with an LLM, it's best to click 'new chat' to clear the context window, making the model more efficient and accurate by removing irrelevant past tokens.

5

Always be mindful of which specific LLM you are using, as different models (and pricing tiers) offer varying levels of intelligence, creativity, and access to features.

6

For complex problems like coding or math, 'thinking models' that undergo additional reinforcement learning can provide higher accuracy by simulating human-like thought processes.

7

Tool use, such as internet search, allows LLMs to access real-time information that isn't part of their pre-trained knowledge base, making them more versatile for current events or niche topics.

8

Different LLM providers and even different models within the same provider have varying levels of tool integration, so you may need to explicitly enable search or try different services.

9

It's often useful to consult multiple LLMs (an 'LLM Council') for the same question, especially for travel advice or ideation, to get diverse perspectives.

10

Be cautious and double-check information provided by LLMs, especially for critical or high-stakes topics, as their responses are probabilistic recollections and not guaranteed to be perfectly accurate.

How I use LLMs

Andrej Karpathy
Feedback