Open-source AI repos
Open-source AI, all in one place.
13,356 open-source AI repositories for learning, teaching, research and building. Kept up to date by the community: anyone can add a repo with a pull request.
14 repos in Learn AI matching “from-scratch”
Courses, tutorials, books, paper implementations and curated lists.
Learn AI
Stars:109kLLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Jupyter Notebook · updated 10 days agoDetails›Learn AI
Stars:33.4kML-From-Scratch
Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything from linear regression to deep learning.
Python · MIT · updated 3 years agoDetails›Learn AI
Stars:5.9kreasoning-from-scratch
Implement a reasoning LLM in PyTorch from scratch, step by step
Jupyter Notebook · Apache-2.0 · updated 29 days agoDetails›Learn AI
Stars:4.9kai-agents-from-scratch
Demystify AI agents by building them yourself. Local LLMs, no black boxes, real understanding of function calling, memory, and ReAct patterns.
JavaScript · MIT · updated 4 months agoDetails›Learn AI
Stars:4.3kAI-ML-Roadmap-from-scratch
Become skilled in Artificial Intelligence, Machine Learning, Generative AI, Deep Learning, Data Science, Natural Language Processing, Reinforcement Learning and more with this complete 0 to 100 repository.
MIT · updated 3 months agoDetails›Learn AI
Stars:2.8kclaude-code-from-scratch
Build your own Claude Code from scratch. Claude Code 开源了 50 万行代码,读不动?用 ~5000 行 TypeScript / Python 从零复现核心架构,11 章分步教程带你理解 coding agent 精髓
Python · MIT · updated 22 days agoDetails›Learn AI
Stars:1.7krag-from-scratch
Demystify RAG by building it from scratch. Local LLMs, no black boxes - real understanding of embeddings, vector search, retrieval, and context-augmented generation.
JavaScript · MIT · updated 8 months agoDetails›Learn AI
Stars:411train-robot-arm-from-scratch
Build environment and train a robot arm from scratch (Reinforcement Learning)
Python · updated 6 years agoDetails›Learn AI
Stars:387llms-from-scratch
Build a ChatGPT like LLM from scratch in PyTorch, explained step by step.
Jupyter Notebook · MIT · updated 5 months agoDetails›Learn AI
Stars:379Build-a-Large-Language-Model-from-Scratch
Building a GPT-like LLM from scratch with PyTorch.
Python · updated 1 year agoDetails›Learn AI
Stars:344llms-from-scratch-rs
A comprehensive Rust translation of the code from Sebastian Raschka's Build an LLM from Scratch book.
Rust · MIT · updated 15 days agoDetails›Learn AI
Stars:4.2khow-to-train-your-gpt
Build a modern LLM from scratch. Every line commented. Explained like we are five.
Jupyter Notebook · MIT · updated 1 month agoDetails›Learn AI
Stars:2.6kTorchLeet
LeetCode for PyTorch — 65 ML/AI interview problems from real interviews at Google, Meta, Anthropic. Jupyter notebooks, an auto-grader, and an MCP AI tutor.
Jupyter Notebook · MIT · updated 25 days agoDetails›Learn AI
Stars:312AI-Engineer-Interview-Questions
Interview questions and prep for AI Engineer, LLM Engineer, and Applied AI roles. Built for software engineers breaking into AI and ML practitioners levelling up: company-specific question sets, role-based study maps, worked answers, and from-scratch coding challenges.
Python · MIT · updated 25 days agoDetails›
Details come from each project’s own repository. Something wrong or missing? Tell us or open a pull request.