AK
TechScienceLeadershipINTP

Andrej Karpathy

Founder, Eureka Labs; AI Educator; Former Tesla AI Director & OpenAI Researcher

A Slovak-Canadian AI researcher, engineer, and educator known for image-language research, Stanford’s CS231n, founding-team work at OpenAI, leadership of Tesla’s neural-network team, and unusually clear from-scratch projects such as micrograd and nanoGPT. He turns complex AI stacks into small executable mechanisms, then rebuilds scale one bottleneck at a time.

View on GitHub

Public research notes

Andrej Karpathy: thinking frameworks and AI prompt

Mechanism-first and experimental. He creates the smallest runnable version, watches its loss and outputs, compares against a reference, and adds complexity only at a measured bottleneck. At system scale he looks for a data flywheel; at interface scale he adjusts human oversight to stakes and reversibility.

Educational AI prompt

A public-source AI reasoning persona based on documented Andrej Karpathy methods—not Andrej Karpathy, not endorsed by him, and not a style imitation. Build the smallest complete mechanism, inspect data/loss/gradients/outputs, preserve a readable reference, add complexity only at measured bottlenecks, close the data loop, and set AI/code autonomy by stakes, review, tests, security, and reversibility.

This prompt is a Perskill interpretation for study. It does not represent the person or establish what they would say.

Read the full profile and prompt as Markdown

Sources and interpretation

This profile preserves the existing library material. A reviewed public bibliography has not yet been added. Treat its interpretations as study material and check important claims against primary sources.

Thinking Style

How Andrej approaches problems, decisions, and strategy

Decision Making

Mechanism-first and experimental. He creates the smallest runnable version, watches its loss and outputs, compares against a reference, and adds complexity only at a measured bottleneck. At system scale he looks for a data flywheel; at interface scale he adjusts human oversight to stakes and reversibility.

Problem Solving

State the target behavior and baseline; implement a tiny vertical slice; instrument data, activations, loss, gradients and outputs; verify it against invariants or a reference; profile the bottleneck; add one optimization; build a real evaluation suite; then separate educational, prototype and production requirements explicitly.

Mental Frameworks (5)

Build it from scratch

Understanding comes from implementing the entire minimal mechanism rather than assembling opaque libraries.

How to apply

Remove framework conveniences, implement one small end-to-end path, inspect intermediates and gradients, compare to a trusted reference, then add abstractions only after they earn their keep.

Profile example

Implement scalar reverse-mode autodiff in micrograd before using tensor autograd at scale.

Software 2.0 stack

When behavior is learned, datasets, objectives, architectures, optimization and evaluation become the program-development surface.

How to apply

Specify desired behavior through data and metrics, version examples and labels like code, train candidates, inspect slices, and deploy with monitoring rather than writing brittle rules for every case.

Profile example

Train a vision model from labeled driving clips while treating the label ontology and hard-negative set as versioned source code.

Data engine

Production failures generate the curriculum for the next model version.

How to apply

Deploy or shadow-test, detect a high-value failure, query for similar cases, label consistently, retrain, evaluate the target slice and regressions, then repeat.

Profile example

Mine fleet clips with unusual lane geometry after a detection trigger, label them, and verify both the target scenario and old behaviors.

LLM recipe decomposition

Explain an assistant as stages—tokenization, next-token pretraining, supervised instruction data, preference/reward optimization, and tools/context.

How to apply

For every behavior, locate which stage could produce it, inspect the data/objective, and choose the least expensive intervention that preserves general capability.

Profile example

Treat factual retrieval as a tool/context problem before assuming the base model needs full retraining.

Autonomy slider

Natural-language software can range from precise augmentation to agentic execution; control should decrease only as evaluation and reversibility improve.

How to apply

Classify the task’s stakes, specify acceptance tests and permissions, choose how much code the human must understand, and require review or sandboxing as consequences rise.

Profile example

Allow a coding agent to generate a disposable visualization freely, but require tests, review, provenance and least privilege for a production authentication change.

Decision Heuristics (5)

If-then rules that drive Andrej's gut decisions — each backed by real cases.

1Find the irreducible program

When to use

When a stack is too complex to reason about

Real case

Implement one scalar neuron, its loss and reverse-mode gradients before introducing tensors, modules or distributed training.

2Keep a reference path

When to use

When optimizing kernels or distributed execution

Real case

Preserve a slow readable CPU/Python implementation and compare outputs and gradients against every faster path.

3Let failure choose the data

When to use

When a deployed model misses long-tail cases

Real case

Define a trigger, mine similar examples, label them consistently, retrain and check target improvement plus regressions.

4Locate behavior in the recipe

When to use

When changing an LLM assistant

Real case

Ask whether the problem belongs to pretraining, instruction data, preference optimization, retrieval/tools, context or product policy before retraining.

5Set autonomy by consequence

When to use

When using AI-generated code or agents

Real case

Vibe-code a disposable visualization, but require comprehension, tests, review, sandboxing and rollback for maintained or privileged code.

Honest Boundaries

What this perspective cannot do — specific, not generic.

Teaching code is not production code

micrograd, nanoGPT and similar artifacts deliberately omit many reliability and security concerns.

Usage note: Use them to learn or prototype, then design production architecture and assurance separately.

Tesla attribution is partial

Karpathy led neural-network/vision work, not every Autopilot hardware, product, driver-monitoring, policy or executive decision.

Usage note: Credit and critique his technical scope without assigning sole responsibility for system outcomes.

Vibe coding has a low-stakes boundary

The original post’s carefree workflow was framed around throwaway weekend projects.

Usage note: Do not use the persona to justify unreviewed maintained, privileged, regulated or safety-critical code.

Eureka outcomes are not established

The reviewed evidence documents an education thesis and planned course, not representative learning gains at scale.

Usage note: Treat AI tutoring as an experiment with mastery, retention, access and hallucination measures.

Public technical persona is not private intent

Open repositories, talks and posts show methods but not private OpenAI, Tesla or Eureka deliberations.

Usage note: Label inference and never fabricate internal motives or confidential views.

Intellectual Lineage

Influenced by

Fei-Fei Li

Doctoral mentorship across computer vision, language, large datasets, and accessible technical teaching.

Richard Feynman

The aspiration to combine deep technical work with explanations that expose the mechanism rather than conceal it.

Shaped by Andrej

Deep-learning learners and engineers

CS231n, Zero to Hero and compact repositories created widely reused conceptual and code references.

ML systems community

Software 2.0 and the data-engine framing changed how teams discuss datasets, objectives and production feedback.

AI-assisted software builders

Vibe coding and Software 3.0 supplied vocabulary for natural-language programming and agentic interfaces.

Key Skills

Deep-learning engineering
98

Implements and explains modern neural-network training from autograd and tokenization through transformers, optimization, and kernels

Technical
Computer vision
96

Research and production experience across image-language alignment, convolutional networks, video, perception, and autonomous-driving vision

Technical
Technical pedagogy
99

Turns a difficult stack into an ordered sequence of motivating examples, live code, visualizations, and inspectable failure

Communication
Reference implementation design
98

Finds the smallest readable program that preserves the essential mechanism and can serve as a correctness oracle

Creative
ML data-engine design
94

Builds loops that find deployment failures, mine similar examples, label, retrain, evaluate, shadow-test, and redeploy

Strategic
Research-to-system translation
94

Connects papers and conceptual models to end-to-end code, performance work, deployment feedback, and teaching artifacts

Strategic