Resource library
272 hand-picked papers, courses, docs, videos and repositories, each linked to the topics that use it. Filter by type or search by keyword.
272 shown
- uv: fast Python packaging
Docs · project and lockfile workflow
- Python asyncio documentation
Docs
- Pydantic documentation
Docs · you will use it for structured outputs
- Google Colab
Tools · free GPU for the exercises
- Scientific Python Lectures
Books · NumPy, plotting, the ecosystem
- 3Blue1Brown: Essence of Linear Algebra
Courses · geometric intuition
- 3Blue1Brown: Neural networks
Courses
- Mathematics for Machine Learning
Books · free PDF, reference
- The Matrix Calculus You Need For Deep Learning
Articles
- Dive into Deep Learning
Books · maths and code side by side
Foundations · The maths you actually useFoundations · Neural networks and PyTorch
- scikit-learn user guide
Docs
- Google: Machine Learning Crash Course
Courses
- Andrew Ng: Machine Learning Specialization
Courses
- A Recipe for Training Neural Networks (Karpathy)
Articles · the debugging mindset
- Neural Networks: Zero to Hero (playlist)
Courses · Karpathy, the best single resource
- karpathy/micrograd
Code
- PyTorch tutorials
Docs
- Deep Learning with PyTorch
Books
- Let's build the GPT Tokenizer (video)
Videos · Karpathy, 2h13m
- karpathy/minbpe
Code · minimal reference implementation
- Neural Machine Translation of Rare Words with Subword Units
Papers · BPE for NLP
- tiktoken
Code · fast BPE used by OpenAI models
- Hugging Face LLM Course: Tokenizers
Courses
- Attention Is All You Need
Papers · Vaswani et al., 2017
- The Illustrated Transformer
Articles · best visual walkthrough
- 3Blue1Brown: Attention in transformers
Videos
- The Annotated Transformer
Articles · paper and code line by line
- Stanford CS224N
Courses
- 3Blue1Brown: Transformers, the tech behind LLMs
Videos
- A Mathematical Framework for Transformer Circuits
Papers · the residual-stream view
- Language Models are Unsupervised Multitask Learners (GPT-2)
Papers
- Language Models are Few-Shot Learners (GPT-3)
Papers
- On Layer Normalization in the Transformer Architecture
Papers · why pre-norm
- Let's build GPT: from scratch, in code (video)
Videos · Karpathy, 1h56m
- karpathy/nanoGPT
Code · the cleanest reference
- Build a Large Language Model (From Scratch)
Code · Sebastian Raschka, code for the book
- karpathy/llm.c
Code · GPT-2 training in plain C and CUDA
- Let's reproduce GPT-2 (124M)
Videos · the full-scale version
- Deep Dive into LLMs like ChatGPT (video)
Videos · the full pipeline end to end
- Scaling Laws for Neural Language Models
Papers · Kaplan et al., 2020
- Training Compute-Optimal Large Language Models (Chinchilla)
Papers
- The Llama 3 Herd of Models
Papers · a detailed modern training report
- FineWeb: decanting the web for the finest text data
Articles · data pipeline in the open
- Stanford CS336: Language Modeling from Scratch
Courses
- The Curious Case of Neural Text Degeneration
Papers · introduces nucleus (top-p) sampling
- How to generate text (Hugging Face)
Articles
- Transformers: text generation strategies
Docs
- Fast Inference from Transformers via Speculative Decoding
Papers · a preview of the serving stage
LLM internals · Decoding and samplingProduction · Serving models: KV cache, batching and vLLM
- RoFormer: Rotary Position Embedding (RoPE)
Papers
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- GQA: Grouped-Query Attention
Papers
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- FlashAttention
Papers · IO-aware exact attention
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- FlashAttention-2
Papers
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- Root Mean Square Layer Normalization
Papers
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- GLU Variants Improve Transformer (SwiGLU)
Papers
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- Switch Transformers
Papers · sparse mixture of experts
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- Mixtral of Experts
Papers
LLM internals · Modern architecture upgrades: RoPE, GQA, FlashAttention, MoE
- Anthropic API documentation
Docs
- Anthropic Python SDK
Code
- OpenAI API documentation
Docs
- Azure OpenAI documentation
Docs · same SDK, deployments instead of models
- Intro to Large Language Models (video)
Videos · Karpathy, 1h
- Anthropic: prompt engineering overview
Docs
- OpenAI: prompt engineering guide
Docs
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Papers
- The Prompt Report: a systematic survey of prompting techniques
Papers
- Prompt Engineering (Lilian Weng)
Articles
- Pydantic: JSON Schema
Docs
- Anthropic: tool use overview
Docs · forced tool choice for structured output
LLM apps · Structured outputs and validationLLM apps · Function calling: giving the model tools
- OpenAI: structured outputs
Docs · native schema-constrained decoding
- Outlines: structured generation
Code · constrained decoding for open models
- Efficient Guided Generation for Large Language Models
Papers · the idea behind Outlines
- OpenAI: function calling
Docs
LLM apps · Function calling: giving the model toolsAgent basics · Designing tools for agents
- Toolformer: Language Models Can Teach Themselves to Use Tools
Papers
- ReAct: Synergizing Reasoning and Acting
Papers · you will implement this next stage
LLM apps · Function calling: giving the model toolsAgent basics · Build the agent loop from scratch (ReAct)
- Anthropic: prompt caching
Docs
LLM apps · Context windows, caching and cost controlProduction · Cost and latency engineering
- Lost in the Middle: How Language Models Use Long Contexts
Papers
LLM apps · Context windows, caching and cost controlEmbeddings & RAG · Parsing, chunking and metadata
- OpenAI: prompt caching
Docs
- FrugalGPT: How to Use LLMs While Reducing Cost
Papers · cascades and routing
LLM apps · Context windows, caching and cost controlProduction · Cost and latency engineering
- Hugging Face Transformers documentation
Docs
- Hugging Face LLM Course
Courses
- Ollama
Tools · simplest local runner
- llama.cpp
Code · CPU and GPU inference, GGUF format
LLM apps · Running open models locally with Hugging FaceFine-tuning · Quantisation and distillation
- Chat templates (Transformers docs)
Docs
- Sentence-BERT
Papers
- Sentence Transformers documentation
Docs
- MTEB: Massive Text Embedding Benchmark
Papers
- MTEB leaderboard
Tools
- Matryoshka Representation Learning
Papers · truncatable embeddings
- Dense Passage Retrieval for Open-Domain QA
Papers
- Anthropic: Introducing Contextual Retrieval
Articles · prepend context to each chunk
Embeddings & RAG · Parsing, chunking and metadataEmbeddings & RAG · Hybrid search and reranking
- PyMuPDF documentation
Docs
- Unstructured documentation
Docs · multi-format parsing
- LlamaIndex: node parsers and chunking
Docs
Embeddings & RAG · Parsing, chunking and metadataEmbeddings & RAG · A complete RAG pipeline with citations
- Efficient and robust ANN search using HNSW graphs
Papers
- FAISS
Code
- FAISS wiki: indexes and tuning
Docs
- pgvector
Code · vectors inside PostgreSQL
- ANN-Benchmarks
Tools · compare index families
- rank_bm25
Code
- Sentence Transformers: cross-encoders
Docs
- ColBERT: late interaction over BERT
Papers
- BEIR: a benchmark for zero-shot retrieval
Papers · why BM25 is a strong baseline
Embeddings & RAG · Hybrid search and rerankingEmbeddings & RAG · Evaluating RAG: retrieval and generation separately
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Papers · the original RAG paper
- Anthropic: reduce hallucinations
Docs
- LangChain: RAG tutorial
Docs
- Hugging Face: Advanced RAG on HF docs with LangChain
Courses
- Precise Zero-Shot Dense Retrieval without Relevance Labels (HyDE)
Papers
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- Self-RAG: Learning to Retrieve, Generate, and Critique
Papers
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- Corrective Retrieval Augmented Generation (CRAG)
Papers
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- From Local to Global: A Graph RAG Approach
Papers · Microsoft GraphRAG
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval
Papers
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- Query Rewriting for Retrieval-Augmented LLMs
Papers
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- Retrieval-Augmented Generation for LLMs: A Survey
Papers
Embeddings & RAG · Advanced RAG: query transformation, graph, agentic retrieval
- RAGAS: Automated Evaluation of Retrieval Augmented Generation
Papers
Embeddings & RAG · Evaluating RAG: retrieval and generation separately
- ARES: An Automated Evaluation Framework for RAG
Papers
Embeddings & RAG · Evaluating RAG: retrieval and generation separately
- Evaluation of Retrieval-Augmented Generation: A Survey
Papers
Embeddings & RAG · Evaluating RAG: retrieval and generation separately
- RAGAS documentation
Docs
Embeddings & RAG · Evaluating RAG: retrieval and generation separately
- Anthropic: Building effective agents
Articles · start here
Agent basics · What is an agent? Workflows versus agentsAgent basics · Build the agent loop from scratch (ReAct)Agent basics · Designing tools for agents+1 more
- OpenAI: A practical guide to building agents
Books
- LLM Powered Autonomous Agents (Lilian Weng)
Articles
- The Rise and Potential of LLM-Based Agents: A Survey
Papers
- Hugging Face Agents Course
Courses
Agent basics · What is an agent? Workflows versus agentsAgent basics · Build the agent loop from scratch (ReAct)
- Pydantic: create_model
Docs
- Anthropic: Writing tools for agents
Articles
- Gorilla: LLM Connected with Massive APIs
Papers
- MemGPT: Towards LLMs as Operating Systems
Papers
Agent basics · Agent memory: short-term, long-term and episodic
- Generative Agents: Interactive Simulacra of Human Behavior
Papers · memory stream, reflection, retrieval
Agent basics · Agent memory: short-term, long-term and episodic
- Reflexion: Language Agents with Verbal Reinforcement Learning
Papers
Agent basics · Agent memory: short-term, long-term and episodicAgent basics · Planning, reflection and search over reasoning
- LangGraph: memory concepts
Docs
Agent basics · Agent memory: short-term, long-term and episodic
- A Survey on the Memory Mechanism of LLM-based Agents
Papers
Agent basics · Agent memory: short-term, long-term and episodic
- Plan-and-Solve Prompting
Papers
Agent basics · Planning, reflection and search over reasoning
- Tree of Thoughts: Deliberate Problem Solving with LLMs
Papers
Agent basics · Planning, reflection and search over reasoning
- Large Language Models Cannot Self-Correct Reasoning Yet
Papers · an important caution
Agent basics · Planning, reflection and search over reasoning
- Self-Refine: Iterative Refinement with Self-Feedback
Papers
Agent basics · Planning, reflection and search over reasoning
- Model Context Protocol: introduction
Docs
- MCP specification
Docs
- MCP Python SDK
Code
- MCP reference servers
Code
- Anthropic: Introducing the Model Context Protocol
Articles
- LangGraph documentation
Docs
- OpenAI Agents SDK
Docs
- smolagents
Docs · agents that write code as actions
- AutoGen
Docs
- Semantic Kernel overview
Docs
- Azure AI Foundry Agent Service
Docs
- CrewAI documentation
Docs
- AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation
Papers
- LangGraph: concepts
Docs
- LangGraph: tutorials
Docs
- LangChain Academy: Introduction to LangGraph
Courses
- langchain-ai/langgraph
Code
- Anthropic: How we built our multi-agent research system
Articles
- Cognition: Don't Build Multi-Agents
Articles · the case for caution
- Why Do Multi-Agent LLM Systems Fail?
Papers
- MetaGPT: Meta Programming for Multi-Agent Collaborative Framework
Papers
- CAMEL: Communicative Agents for Mind Exploration
Papers
- Improving Factuality and Reasoning through Multiagent Debate
Papers
- LangGraph: human-in-the-loop
Docs
- LangGraph: persistence
Docs
- Temporal: durable execution
Docs
- Stripe: idempotent requests
Docs · the pattern to copy
- Azure Durable Functions overview
Docs
- SWE-bench: Can Language Models Resolve Real-World GitHub Issues?
Papers
Multi-agent · Coding agents and computer-use agentsEvals & safety · Evaluating agents: trajectories, pass^k and cost
- SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
Papers
- OpenHands: An Open Platform for AI Software Developers
Papers
- Anthropic: Claude Code best practices
Articles
- Anthropic: computer use
Docs
- GAIA: a benchmark for General AI Assistants
Papers
Multi-agent · Coding agents and computer-use agentsEvals & safety · Evaluating agents: trajectories, pass^k and cost
- Spider: a large-scale text-to-SQL benchmark
Papers
Multi-agent · Agents over data: agentic RAG and natural-language-to-SQL
- BIRD: Can LLMs Already Serve as A Database Interface?
Papers
Multi-agent · Agents over data: agentic RAG and natural-language-to-SQL
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL
Papers
Multi-agent · Agents over data: agentic RAG and natural-language-to-SQL
- sqlglot
Code · parse and transform SQL
Multi-agent · Agents over data: agentic RAG and natural-language-to-SQL
- OWASP Top 10 for LLM applications
Docs · excessive agency, injection
Multi-agent · Agents over data: agentic RAG and natural-language-to-SQLEvals & safety · Guardrails and prompt injection
- State of GPT (video)
Videos · Karpathy at Microsoft Build
- Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs
Papers
- LIMA: Less Is More for Alignment
Papers
Fine-tuning · When to fine-tune (and when not to)Fine-tuning · Data curation and synthetic data
- OpenAI: fine-tuning guide
Docs
- Hugging Face smol course
Courses · practical post-training
- TRL documentation
Docs
- TRL SFTTrainer
Docs
- Training language models to follow instructions with human feedback (InstructGPT)
Papers
Fine-tuning · Supervised fine-tuning (SFT) with TRLFine-tuning · Preference optimisation: RLHF, DPO and friends
- Self-Instruct: Aligning LMs with Self-Generated Instructions
Papers
- Tulu 3: Pushing Frontiers in Open Language Model Post-Training
Papers
Fine-tuning · Supervised fine-tuning (SFT) with TRLFine-tuning · Reinforcement learning with verifiable rewards (GRPO)
- LoRA: Low-Rank Adaptation of Large Language Models
Papers
Fine-tuning · LoRA and QLoRA: parameter-efficient fine-tuning
- QLoRA: Efficient Finetuning of Quantized LLMs
Papers
Fine-tuning · LoRA and QLoRA: parameter-efficient fine-tuning
- LoRA Learns Less and Forgets Less
Papers
Fine-tuning · LoRA and QLoRA: parameter-efficient fine-tuning
- PEFT documentation
Docs
Fine-tuning · LoRA and QLoRA: parameter-efficient fine-tuning
- Unsloth
Code · fast, memory-lean fine-tuning
Fine-tuning · LoRA and QLoRA: parameter-efficient fine-tuning
- Axolotl
Code · config-driven training
Fine-tuning · LoRA and QLoRA: parameter-efficient fine-tuning
- Direct Preference Optimization
Papers
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- Proximal Policy Optimization Algorithms
Papers
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- Constitutional AI: Harmlessness from AI Feedback
Papers
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- KTO: Model Alignment as Prospect Theoretic Optimization
Papers
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- ORPO: Monolithic Preference Optimization without Reference Model
Papers
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- TRL DPO trainer
Docs
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- Illustrating Reinforcement Learning from Human Feedback
Articles
Fine-tuning · Preference optimisation: RLHF, DPO and friends
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
Papers
Fine-tuning · Reinforcement learning with verifiable rewards (GRPO)
- DeepSeekMath (introduces GRPO)
Papers
Fine-tuning · Reinforcement learning with verifiable rewards (GRPO)
- TRL GRPO trainer
Docs
Fine-tuning · Reinforcement learning with verifiable rewards (GRPO)
- STaR: Bootstrapping Reasoning With Reasoning
Papers
Fine-tuning · Reinforcement learning with verifiable rewards (GRPO)
- Let's Verify Step by Step
Papers · process vs outcome supervision
Fine-tuning · Reinforcement learning with verifiable rewards (GRPO)
- LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
Papers
- GPTQ: Accurate Post-Training Quantization
Papers
- AWQ: Activation-aware Weight Quantization
Papers
- Distilling the Knowledge in a Neural Network
Papers
- Hugging Face: quantization overview
Docs
- Deduplicating Training Data Makes Language Models Better
Papers
- Textbooks Are All You Need
Papers · data quality over quantity
- datasketch (MinHash and LSH)
Code
- The curse of recursion: training on generated data makes models forget
Papers
- Datasheets for Datasets
Papers
- Your AI Product Needs Evals (Hamel Husain)
Articles
- Anthropic: develop test cases
Docs
- promptfoo documentation
Docs · declarative eval runner for CI
- OpenAI Evals
Code
- Holistic Evaluation of Language Models (HELM)
Papers
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
Papers
- G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment
Papers
- Large Language Models are not Fair Evaluators
Papers · position bias
- Length-Controlled AlpacaEval
Papers
- scikit-learn: Cohen's kappa
Docs
- τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains
Papers · introduces pass^k
Evals & safety · Evaluating agents: trajectories, pass^k and cost
- AgentBench: Evaluating LLMs as Agents
Papers
Evals & safety · Evaluating agents: trajectories, pass^k and cost
- Evaluating Large Language Models Trained on Code (pass@k)
Papers
Evals & safety · Evaluating agents: trajectories, pass^k and cost
- OpenTelemetry: GenAI semantic conventions
Docs
- OpenTelemetry Python
Docs
- Langfuse documentation
Docs · open-source LLM observability
- Arize Phoenix
Docs
- OpenLLMetry
Code
- LangSmith documentation
Docs
- Simon Willison: the lethal trifecta for AI agents
Articles
- Simon Willison: prompt injection series
Articles
- Not what you've signed up for: Indirect Prompt Injection
Papers
- Jailbroken: How Does LLM Safety Training Fail?
Papers
- Llama Guard: LLM-based Input-Output Safeguard
Papers
- NVIDIA NeMo Guardrails
Code
- Microsoft Presidio
Docs · PII detection and anonymisation
- NIST AI Risk Management Framework
Docs · govern, map, measure, manage
Evals & safety · Red-teaming, threat modelling and governance
- MITRE ATLAS
Docs · adversary tactics against AI systems
Evals & safety · Red-teaming, threat modelling and governance
- garak: LLM vulnerability scanner
Code
Evals & safety · Red-teaming, threat modelling and governance
- PyRIT: Python Risk Identification Tool
Code
Evals & safety · Red-teaming, threat modelling and governance
- Red Teaming Language Models with Language Models
Papers
Evals & safety · Red-teaming, threat modelling and governance
- Model Cards for Model Reporting
Papers
Evals & safety · Red-teaming, threat modelling and governance
- EU AI Act: explorer
Docs
Evals & safety · Red-teaming, threat modelling and governance
- Efficient Memory Management for LLM Serving with PagedAttention (vLLM)
Papers
- vLLM documentation
Docs
- SGLang
Code
- Hugging Face Text Generation Inference
Code
- NVIDIA TensorRT-LLM
Code
- OpenAI Batch API
Docs
Production · Batch LLM pipelines: chunking, checkpoints and cost
- Anthropic Message Batches
Docs
Production · Batch LLM pipelines: chunking, checkpoints and cost
- Azure OpenAI batch
Docs
Production · Batch LLM pipelines: chunking, checkpoints and cost
- Delta Lake: update and MERGE
Docs
Production · Batch LLM pipelines: chunking, checkpoints and cost
- Google SRE book: handling overload
Books
Production · Batch LLM pipelines: chunking, checkpoints and cost
- RouteLLM: Learning to Route LLMs with Preference Data
Papers
- LiteLLM
Code · unified gateway, budgets, fallbacks
- Building LLM applications for production (Chip Huyen)
Articles
Production · Cost and latency engineeringProduction · LLMOps: releases, canaries and rollback
- Hidden Technical Debt in Machine Learning Systems
Papers
- MLflow GenAI documentation
Docs
- LiteLLM proxy: fallbacks and routing
Docs
- Google SRE book: release engineering
Books
- Azure Architecture Center: AI architecture design
Docs
- Architecture decision records
Docs
- Designing Machine Learning Systems (Chip Huyen)
Books
- The Twelve-Factor App
Docs
- How to Read a Paper (Keshav)
Papers
Production · Staying current: reading papers, a paper trail and a study plan
- Hugging Face Daily Papers
Tools
Production · Staying current: reading papers, a paper trail and a study plan
- Lilian Weng's blog
Articles
Production · Staying current: reading papers, a paper trail and a study plan
- Sebastian Raschka: Ahead of AI
Articles
Production · Staying current: reading papers, a paper trail and a study plan
- Simon Willison's weblog
Articles
Production · Staying current: reading papers, a paper trail and a study plan
- Anthropic engineering blog
Articles
Production · Staying current: reading papers, a paper trail and a study plan
- Latent Space
Articles · AI engineering podcast and newsletter
Production · Staying current: reading papers, a paper trail and a study plan