Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
- gpt
- large-language-models
- llm
- python
98,836 visible repositories in the index
1–24 of 61 · Most stars
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Official code repo for the O'Reilly Book - "Hands-On Large Language Models"
aka "Bayesian Methods for Hackers": An introduction to Bayesian methods + probabilistic programming with a computation/understanding-first, mathematics-second point of view. All in pure Python ;)
Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Code for Machine Learning for Trading, 3rd edition — from data sourcing to live execution.
Jupyter notebooks for the code samples of the book "Deep Learning with Python"
Kalman Filter book using Jupyter Notebook. Focuses on building intuition and experience, not formal proofs. Includes Kalman filters,extended Kalman filters, unscented Kalman filters, particle filters, and more. All exercises include solutions.
[WIP] Resources for AI engineers. Also contains supporting materials for the book AI Engineering (Chip Huyen, 2025)
Translated"Lee Hung-yi's Deep Learning Tutorial" (recommended by Professor Hung-yi Lee 👍, the Apple Book 🍎), PDF download address: https://github.com/datawhalechina/leedl-tutorial/releases
Companion webpage to the book "Mathematics For Machine Learning"
Free online textbook of Jupyter notebooks for fast.ai Computational Linear Algebra course
Notebooks and code for the book "Introduction to Machine Learning with Python"
TranslatedBook_1_《Programming Is Not Hard》 | Iris Book: From Addition, Subtraction, Multiplication and Division to Machine Learning; please give us plenty of criticism and corrections!
Python code for "Probabilistic Machine learning" book by Kevin Murphy
Code for Tensorflow Machine Learning Cookbook
Implement a reasoning LLM in PyTorch from scratch, step by step
Code Repository for Machine Learning with PyTorch and Scikit-Learn
Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
🚀 An open-source, hands-on curriculum bridging the gap from basic RL concepts to LLM alignment, RLVR, and advanced Agentic systems.
Jupyter notebooks for the Natural Language Processing with Transformers book
Accompanying source code for Machine Learning with TensorFlow. Refer to the book for step-by-step explanations.
Text and supporting code for Think Stats, 2nd Edition
Build a modern LLM from scratch. Every line commented. Explained like we are five.
This is a Phi Family of SLMs book for getting started with Phi Models. Phi a family of open sourced AI models developed by Microsoft. Phi models are the most capable and cost-effective small language models (SLMs) available, outperforming models of the same size and next size up across a variety of language, reasoning, coding, and math benchmarks