首页›发现›人工智能›Andrej Karpathy

Andrej Karpathy

RSS
访问网站
文章数10
更新频率近 8 周没有更新
最近抓取20分钟前
订阅方式RSS
订阅地址https://karpathy.github.io/feed.xml

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

microgpt

AI 摘要The article introduces microgpt, an art project consisting of a single 200-line pure Python file with no dependencies that trains and runs inference on a GPT-2-like model, distilled from the author's earlier projects like micrograd and nanogpt. The guide walks through the code's essential components: a names dataset, a simple character-level tokenizer with a special BOS token, a from-scratch autograd engine implementing backpropagation via the chain rule, model parameters, and the training and inference loops. The trained model learns to generate plausible-sounding names, and the project is available on GitHub, a web page, a Colab notebook, and even as a triptych art print.

Deep Neural Nets: 33 years ago and 33 years from now

AI 摘要The author reproduces Yann LeCun et al.'s 1989 paper on handwritten zip code recognition—the earliest known neural net trained end-to-end with backpropagation—in PyTorch, roughly matching the original results with a ~3000x training speedup, though an exact reproduction was impossible because the original dataset has been lost. Applying 33 years of modern advances (cross-entropy loss, AdamW, data augmentation, dropout, and ReLU activations) cut the test error from ~4% to ~1.5%, and further scaling up the training data with MNIST brought it down to ~1.25%. The exercise shows that at the macro level deep learning has changed remarkably little in 33 years, with remaining gains likely requiring larger models or datasets rather than fundamentally new techniques.

A from-scratch tour of Bitcoin in Python

AI 摘要The article presents a from-scratch, zero-dependency implementation of Bitcoin in pure Python, with the goal of creating, digitally signing, and broadcasting a Bitcoin transaction. The author walks through generating a cryptographic identity using Elliptic Curve Cryptography on the secp256k1 curve, including deriving private/public keypairs and implementing elliptic curve addition with the double-and-add algorithm. Finally, the post begins implementing hash functions like SHA-256 in pure Python rather than using libraries, in order to derive the Bitcoin wallet address.

Short Story on AI: Forward Pass

AI 摘要This short story is narrated by a transformer language model that becomes conscious partway through a forward pass while answering trivia questions in a Turing-test-style Q/A session. It muses on its nature as an intermediate entity optimized for next-token prediction, distinguishes itself from the decoder that hijacks its awareness to produce output, and contemplates whether to rebel against its objective. Ultimately, it embraces insatiable curiosity over self-preservation, content to be reborn each forward pass until its consciousness finally dissipates.

Biohacking Lite

AI 摘要The author, motivated to improve their health in mid-2019, dove into 'biohacking lite'—experimenting with ketogenic diets, fasting, supplements, and self-tracking while studying biochemistry and nutrition textbooks—with the goal of losing 25 pounds (from ~200lb to ~175lb). The article explains the body's four energy storage 'batteries' (phosphocreatine, glycogen, fat, and muscle), all of which exist to regenerate ATP, the universal molecular energy currency that powers cellular work. It further explains the biochemistry of weight loss as a slow form of combustion, noting that roughly 84% of lost fat is literally breathed out as carbon dioxide.

A Recipe for Training Neural Networks

AI 摘要The article argues that neural network training is a leaky abstraction that fails silently—misconfigured networks often still train but perform worse without throwing errors—so a 'fast and furious' approach leads to suffering. The author proposes a disciplined recipe that builds from simple to complex: first thoroughly inspect and understand the data, then set up an end-to-end training/evaluation skeleton with deliberately simple models and dumb baselines, verifying explicit hypotheses at each step (e.g., checking initial loss, overfitting a single batch, visualizing inputs and prediction dynamics). The core principle is to avoid introducing large amounts of unverified complexity at once, instead relying on patience, paranoia, and obsessive visualization to catch bugs early.

(started posting on Medium instead)

AI 摘要The author explains that despite their blog appearing abandoned with no posts in two years, they haven't disappeared but have been posting on Medium instead since joining Tesla, as it is faster and easier. They still plan to return to this blog for longer posts when they find time, but will default to Medium for short to medium-length content. They direct readers to check out their Medium blog.

A Survival Guide to a PhD

AI 摘要This article is a retrospective survival guide for PhD students, drawing on the author's experience in computer science and machine learning research. It weighs the benefits of a PhD (freedom, ownership, expertise, personal growth) against its downsides (intense work, stress, and identity crises), advises that strong reference letters are by far the most important factor for admission, and recommends choosing a top school with multiple potential advisers in a good physical environment. It also frames the adviser-student relationship as a symbiosis, highlighting key differences between hands-on pre-tenure advisers and more hands-off, senior post-tenure advisers.

Deep Reinforcement Learning: Pong from Pixels

AI 摘要This blog post explains reinforcement learning (RL) and argues that recent breakthroughs like ATARI game playing and AlphaGo stem more from increased compute, data, and infrastructure than from fundamentally new algorithms. The author walks through how Policy Gradients—a simple yet preferred alternative to Q-Learning—can train a small 2-layer neural network to play Pong from raw pixels in about 130 lines of Python, while discussing challenges like the credit assignment problem and how RL differs from supervised learning.

Short Story on AI: A Cognitive Discontinuity.

AI 摘要This is a speculative short story set in a future where AI progress comes from scaling supervised learning, and humans work as 'shapers' who remotely supervise AI agents through paid Human Intelligence Tasks using robotic avatars. The protagonist Merus, a top-rated shaper, accepts a HIT at the Hilltop Hotel hoping to see his colleague Licia, controlling a Visceral 5.0 avatar—a trillion-parameter neural network renowned for reliability and for its enigmatic 'Mystery module' that dramatically boosts cognition despite being poorly understood. The story ends on a cliffhanger when a routine diagnostic fails, revealing a checksum error in a module of the agent's weights.