Code for building, pretraining and finetuning a GPT-like language model in PyTorch, from the book Build a Large Language Model.
Opening the entry
Opening the entry
Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained
Homemade Machine Learning provides Python implementations of popular machine learning algorithms with interactive Jupyter Notebook demos and mathematical explanations. Each algorithm is built from scratch without third-party library shortcuts to help learners understand the underlying mathematics. The repository covers supervised learning (linear and logistic regression) and unsupervised learning (clustering), with demos runnable in the browser via Binder.
git clone https://github.com/trekhleb/homemade-machine-learning.git
# open trekhleb/homemade-machine-learning and follow its README
trekhleb/homemade-machine-learning is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.