1.rasbt / LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
- gpt
- large-language-models
- llm
- python
- pytorch
- ai
- +13 more
Ranked by Attention Score: stars gained over the last 180 complete days
30 repositories by Attention Score · May 9, 2026 – Nov 4, 2026 (UTC)
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Code for Machine Learning for Trading, 3rd edition — from data sourcing to live execution.
Official code repo for the O'Reilly Book - "Hands-On Large Language Models"
One has no future if one couldn't teach themself.
[WIP] Resources for AI engineers. Also contains supporting materials for the book AI Engineering (Chip Huyen, 2025)
Python Data Science Handbook: full text in Jupyter Notebooks
A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, Keras and TensorFlow 2.
Companion webpage to the book "Mathematics For Machine Learning"
Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
The fastai book, published as Jupyter Notebooks
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.
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
Jupyter notebooks for the code samples of the book "Deep Learning with Python"
⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 or handson-mlp instead.
TranslatedThis project changes the MXNet implementations in the original book 《动手学深度学习》 (Dive into Deep Learning) into PyTorch implementations.
TranslatedThe pytorch handbook is an open-source book that aims to help friends who want to use PyTorch for deep learning development and research get started quickly. All of the PyTorch tutorials it contains have been tested to ensure they run successfully.
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 ;)
Free online textbook of Jupyter notebooks for fast.ai Computational Linear Algebra course
TranslatedCode implementation of 《统计学习方法》 (Statistical Learning Methods)
⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 or handson-mlp instead.
The "Python Machine Learning (1st edition)" book code repository and info resource
《Python Cookbook》 3rd Edition Translation
PyTorch tutorials and fun projects including neural talk, neural style, poem writing, anime generation (《深度学习框架PyTorch:入门与实战》)
PRML algorithms implemented in Python
TranslatedOpen source Deep Learning book, based on TensorFlow 2.0 framework.
Tutorials, datasets, and other material associated with textbook "A First Course in Network Science" by Menczer, Fortunato & Davis
Sources codes for: Mastering Python for Finance, Second Edition
Mostly experiments based on "Advances in financial machine learning" book
Accompanying source code for Machine Learning with TensorFlow. Refer to the book for step-by-step explanations.
open source E-book on statistical physics