Resources

Essential repositories, libraries, and learning materials.

Learning from scratch

ResourceWhat
nn-zero-to-heroKarpathy’s neural nets from scratch video series code
nanoGPTSimplest GPT training code (~300 lines)
minbpeMinimal BPE tokenizer implementation
LLMs-from-scratchBuild a GPT step-by-step with PyTorch
d2l-en”Dive into Deep Learning” interactive textbook
annotated_deep_learning_paper_implementations60+ landmark papers reimplemented with line-by-line annotations

Core libraries

LibraryWhat
pytorchThe dominant deep learning framework
scikit-learnClassical ML (SVMs, random forests, clustering, preprocessing)
transformers400k+ pretrained models via unified API
datasets100k+ datasets with smart caching
peftLoRA, QLoRA, prefix tuning — fine-tune large models on consumer hardware
diffusersDiffusion model library (Stable Diffusion, Flux, etc.)
jaxNumPy + autograd + XLA compilation for GPU/TPU

LLM inference

ToolWhat
ollamaRun LLMs locally with one command
llama.cppLLM inference in C/C++ — the engine behind GGUF quantization
vllmHigh-throughput serving with PagedAttention, OpenAI-compatible API

Agents and RAG

FrameworkWhat
langgraphGraph-based agent orchestration
llama_indexRAG pipelines and document agents (300+ integrations)
dspy”Programming not prompting” — compiles LLM pipelines
autogenMulti-agent conversation framework
crewaiRole-based multi-agent framework

Claude / Anthropic

ResourceWhat
anthropic-sdk-pythonOfficial Python SDK for Claude API
anthropic-cookbookRecipes for tool use, RAG, agents, multimodal
MCP python-sdkBuild MCP servers and clients
MCP serversReference MCP server implementations
coursesOfficial prompt engineering course materials

Reinforcement learning

ToolWhat
GymnasiumStandard RL environment API (successor to OpenAI Gym)
stable-baselines3Reliable PPO, SAC, A2C, DQN implementations
cleanrlSingle-file RL algorithms — best for learning

MLOps

ToolWhat
mlflowExperiment tracking, model registry, deployment
pytorch-lightningRemoves PyTorch boilerplate (training loops, distributed, logging)

Reference lists

ResourceWhat
awesome-machine-learningCurated ML frameworks, tools, resources across all languages
best-of-ml-pythonRanked Python ML libraries with activity metrics
TheAlgorithms/PythonAll algorithms implemented in Python