Implementation of a small GPT-style transformer from scratch in PyTorch. Learn how Large Language Models work by building, training, generating text, and visualizing attention.
-
Updated
Feb 8, 2026 - Python
Implementation of a small GPT-style transformer from scratch in PyTorch. Learn how Large Language Models work by building, training, generating text, and visualizing attention.
A convolutional neural network (CNN) built from scratch using only NumPy to classify handwritten digits from the MNIST dataset.
"One Hidden Layer Neural Network" from Scratch
This repository implements a vector search solution based on image and text embeddings. Users can search for similar products using an image or a textual description.
"Deep Neural Network" from Scratch
A brand new programming language designed for developers with diverse coding interests!
Includes the codes and report for Take Home Exam 2 of the CENG483 course (Introduction to Computer Vision). The purpose of this THE is to gain insight related to harris interest point detection.
"CNN" from Scratch
"Logistic Regression" from Scratch
从零手撕大模型整个生命周期的核心算子(如tokenization、RMSNorm、RoPE和LoRA),附带对应论文的阅读详解和笔记整理!!
A STRONG CHESS BOT WITH A GUI INTERFACE MADE PURELY IN PYTHON FROM SCRATCH
Building a Large Language Model from scratch for deep understanding — inspired by Sebastian Raschka’s book, implemented entirely by hand.
Includes the codes and report for Take Home Exam 1 of the CENG483 course (Introduction to Computer Vision). The purpose of the THE is familiarize ourselves with the concept of various types of histogram.
Write the K Nearest Neighbors classifier from scratch in Python. Test it on email spam classification dataset.
Interactive CLI-based KNN implementation from scratch with data processing, statistics, visualization, feature normalization, and accuracy computation functionalities.
ML algorithms implemented from scratch in Python, with small projects for better understanding.
Solve XOR and IRIS Dataset without sue of any external libraries.
This repository explores building a character-level transformer decoder in PyTorch, similar to GPT while focusing more on understanding individual components. My goal is to gain deep transformer knowledge and see if character-level learning improves handling of unseen words. The code allows for hyperparameter tuning and experiment customization.
Built Singular Value Decomposition (SVD) completely from scratch in Python and used it for Image Compression, NLP (Latent Semantic Analysis), recomentation system
Add a description, image, and links to the from-scratch-in-python topic page so that developers can more easily learn about it.
To associate your repository with the from-scratch-in-python topic, visit your repo's landing page and select "manage topics."