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.
36 repos matching “from-scratch”
Learn AI
Stars:109kLLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Jupyter Notebook · updated 10 days agoDetails›MCP servers
Stars:79.7kai-engineering-from-scratch
Learn AI Engineering! Learn it. Build it. Ship it for others.
Python · MIT · updated 12 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›Open models
Stars:13.3ktrain-llm-from-scratch
A straightforward method for training your LLM, from downloading data to generating text.
Python · MIT · updated 15 days 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 28 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›LLM & RAG frameworks
Stars:4.5kllms-from-scratch-cn
仅需Python基础,从0构建大语言模型;从0逐步构建GLM4\Llama3\RWKV6, 深入理解大模型原理
Jupyter Notebook · updated 2 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›AI agents
Stars:2.5kagents-from-scratch
Build an email assistant with human-in-the-loop and memory
Jupyter Notebook · MIT · updated 3 months 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›AI agents
Stars:1.4kai-engineering-from-scratch-zh
Agent工程师最全学习路径 · 从零精通 AI 工程 · 20 阶段 542 课 · 中文全量翻译 + 配套站点 + 动画讲解视频 · 如何成为 AI Agent 工程师的修成指南
Python · MIT · updated 10 days agoDetails›LLM & RAG frameworks
Stars:1.3kpi-from-scratch
600 行 TypeScript 写成的超级迷你版 pi,让你轻松从 0 写出属于你的 pi-agent
TypeScript · MIT · updated 1 month agoDetails›Run models locally
Stars:1.1kagents-from-scratch
Build AI agents from first principles using a local LLM - no frameworks, no cloud APIs, no hidden reasoning.
Python · MIT · updated 4 months agoDetails›LLM & RAG frameworks
Stars:751llm-architecture-from-scratch
Implementing LLM architectures from scratch in PyTorch
Python · BSD-3-Clause · updated 12 days agoDetails›Run models locally
Stars:630Deepdive-llama3-from-scratch
Achieve the llama3 inference step-by-step, grasp the core concepts, master the process derivation, implement the code.
Jupyter Notebook · MIT · updated 1 year 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 14 days agoDetails›Skills & prompts
Stars:312claude-code-from-scratch
23 Components of the Claude Code Architecture
Python · MIT · updated 7 months agoDetails›Skills & prompts
Stars:104coding-agent-from-scratch
Build an AI Coding Agent from Scratch in Pure Python, Step by Step | 用纯 Python 从零搭建 AI 编程 Agent,边实现边理解其工作原理
Python · MIT · updated 1 month agoDetails›Training & MLOps
Stars:103tiny-transformer-from-scratch
A tiny Transformer built from scratch in PyTorch, with an English-to-Chinese translation demo | 用 PyTorch 从零实现的小型 Transformer,附英译中演示,帮助理解模型原理
Jupyter Notebook · MIT · updated 29 days agoDetails›Run models locally
Stars:12.5kkimi-k3-in-c
A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.
C · Apache-2.0 · updated 14 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 24 days agoDetails›Training & MLOps
Stars:1.3kPPO-for-Beginners
A simple and well styled PPO implementation. Based on my Medium series: https://medium.com/@eyyu/coding-ppo-from-scratch-with-pytorch-part-1-4-613dfc1b14c8.
Python · MIT · updated 2 years agoDetails›Open models
Stars:936femtoGPT
Pure Rust implementation of a minimal Generative Pretrained Transformer
Rust · MIT · updated 1 year agoDetails›Run models locally
Stars:867TrenTorch
Don't memorize ML. Understand it from first principles including Inference, Cuda, Deep Learning, Data Science and Reinforcement Learning
Python · updated 10 days agoDetails›MCP servers
Stars:584NamiAgent
零基础入门 AI Agent 的基础教程。不只是教程,也是一个能在本地跑起来的 Agent:读写文件、执行命令、MCP、长期记忆,自带网页端看清每一步。从 100 行最小循环开始,一课加一个能力,最后拆解 Claude Code、Codex 等主流 Agent
Python · MIT · updated 1 month agoDetails›
Details come from each project’s own repository. Something wrong or missing? Tell us or open a pull request.