shrimpxon Hacker News • Recommends
On “Generative AI for Beginners”
#largelanguagemodels#jailbreaking#rlhf
1.7M subscribers • 6 videos on Hallway
Beginner. No background in the topic needed.
4.3M views2 years ago10 recommendations
AI and machine learningTransformers and LLMsAI safety and impactNeural networks and deep learning
Andrej Karpathy provides a high-level introduction to Large Language Models, explaining how they are trained, their future, and security challenges.
This is a 1 hour general-audience introduction to Large Language Models: the core technical component behind systems like ChatGPT, Claude, and Bard. What they are, where they are headed, comparisons and analogies to present-day operating systems, and some of the security-related challenges of this new computing paradigm. As of November 2023 (this field moves fast!). Context: This video is based on the slides of a talk I gave recently at the AI Security Summit. The talk was not recorded but a lot of people came to me after and told me they liked it. Seeing as I had already put in one long weekend of work to make the slides, I decided to just tune them a bit, record this round 2 of the talk and upload it here on YouTube. Pardon the random background, that's my hotel room during the thanksgiving break. - Slides as PDF: drive.google.com/file/d/1pxx_ZI7O-Nwl7ZLNk5hI3WzAsTLwvNU7/vi… (42MB) - Slides. as Keynote: drive.google.com/file/d/1FPUpFMiCkMRKPFjhi9MAhby68MHVqe8u/vi… (140MB) Few things I wish I said (I'll add items here as they come up): - The dreams and hallucinations do not get fixed with finetuning. Finetuning just "directs" the dreams into "helpful assistant dreams". Always be careful with what LLMs tell you, especially if they are telling you something from memory alone. That said, similar to a human, if the LLM used browsing or retrieval and the answer made its way into the "working memory" of its context window, you can trust the LLM a bit more to process that information into the final answer. But TLDR right now, do not trust what LLMs say or do. For example, in the tools section, I'd always recommend double-checking the math/code the LLM did. - How does the LLM use a tool like the browser? It emits special words, e.g. |BROWSER|. When the code "above" that is inferencing the LLM detects these words it captures the output that follows, sends it off to a tool, comes back with the result and continues the generation. How does the LLM know to emit these special words? Finetuning datasets teach it how and when to browse, by example. And/or the instructions for tool use can also be automatically placed in the context window (in the “system message”). - You might also enjoy my 2015 blog post "Unreasonable Effectiveness of Recurrent Neural Networks". The way we obtain base models today is pretty much identical on a high level, except the RNN is swapped for a Transformer. karpathy.github.io/2015/05/21/rnn-effectiveness/ - What is in the run.c file? A bit more full-featured 1000-line version hre: github.com/karpathy/llama2.c/blob/master/run.c Chapters: Part 1: LLMs Intro: Large Language Model (LLM) talk LLM Inference LLM Training LLM dreams How do they work? Finetuning into an Assistant Summary so far Appendix: Comparisons, Labeling docs, RLHF, Synthetic data, Leaderboard Part 2: Future of LLMs LLM ScaliWhat people say. Highly recommended as an exceptionally clear and comprehensive high-level overview of how LLMs work, their security vectors, and future directions.
shrimpxon Hacker News • Recommends
On “Generative AI for Beginners”
FlyingAvataron Hacker News • Recommends
On “Ask HN: Do LLMs get "better" with more processing power and or time per request?”
mindwokon Hacker News • Recommends
On “Why has LLM progress seemingly stalled around the GPT-4 level? Or has it?”
jpduson Hacker News • Recommends
On “Ask HN: AI/ML papers to catch up with current state of AI?”
kozikowon Hacker News • Recommends
On “Ask HN: AI/ML papers to catch up with current state of AI?”
sk11001on Hacker News • Recommends
On “Ask HN: Why has ChatGPT a bias towards correctness?”
runjakeon Hacker News • Recommends
On “Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia”
tikkunon Hacker News • Recommends
On “Ask HN: AI Training for Executive Level”
philipkglasson Hacker News • Recommends
On “The Unbearable Cheapness of Open Weight Models”
u/graphitoutin r/compsci • Mentions
On “Is there room for significant innovations in computer science, or has it reached its peak?”
JacobJeppesenon Hacker News • Mentions
On “Sam Altman's ouster was precipitated by letter to board about AI breakthrough”
a_wild_dandanon Hacker News • Mentions
On “About That OpenAI "Breakthrough"”
huijzeron Hacker News • Mentions
On “Training for one trillion parameter model backed by Intel and US govt has begun”
scriptsmithon Hacker News • Mentions
On “Training for one trillion parameter model backed by Intel and US govt has begun”
jstanleyon Hacker News • Mentions
On “MonadGPT – What would have happened if ChatGPT was invented in the 17th century?”