Skip to content
View alcompa's full-sized avatar
🐲
🐲
  • AImageLab

Highlights

  • Pro

Block or report alcompa

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Stars

From scratch🛠️

Models implementations from scratch
65 repositories

Materials for the Hugging Face Diffusion Models Course

Jupyter Notebook 4,227 477 Updated Feb 12, 2025

Distributed training (multi-node) of a Transformer model

Python 90 37 Updated Apr 10, 2024
Jupyter Notebook 2 1 Updated Apr 11, 2024

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.

Python 11,192 1,810 Updated Dec 1, 2025

My implementation of the original transformer model (Vaswani et al.). I've additionally included the playground.py file for visualizing otherwise seemingly hard concepts. Currently included IWSLT p…

Jupyter Notebook 1,076 185 Updated Dec 27, 2020

My implementation of the original GAT paper (Veličković et al.). I've additionally included the playground.py file for visualizing the Cora dataset, GAT embeddings, an attention mechanism, and entr…

Jupyter Notebook 2,636 352 Updated Nov 17, 2022

Yet another PyTorch implementation of Stable Diffusion (probably easy to read)

Python 596 63 Updated Mar 4, 2024

Creating a diffusion model from scratch in PyTorch to learn exactly how they work.

Python 390 32 Updated Apr 4, 2025

Attention Is All You Need | a PyTorch Tutorial to Transformers

Python 359 55 Updated Feb 22, 2024

Google AI 2018 BERT pytorch implementation

Python 6,508 1,328 Updated Sep 15, 2023

3D Visualization of an GPT-style LLM

TypeScript 5,169 599 Updated Aug 24, 2024

The full minitorch student suite.

Python 2,261 523 Updated Aug 17, 2024

BERT explained from scratch

16 6 Updated Oct 26, 2023

An Educational Framework Based on PyTorch for Deep Learning Education and Exploration

Python 10 1 Updated Dec 24, 2023

🌎 machine learning tutorials (mainly in Python3)

HTML 3,437 671 Updated Nov 22, 2025

Stable Diffusion implemented from scratch in PyTorch

Jupyter Notebook 1,008 200 Updated Oct 22, 2024

Simple, minimal implementation of the Mamba SSM in one file of PyTorch.

Python 2,906 214 Updated Mar 8, 2024

Implementation of https://srush.github.io/annotated-s4

Python 509 66 Updated Jun 20, 2025

A simple and efficient Mamba implementation in pure PyTorch and MLX.

Python 1,387 116 Updated Dec 4, 2024

A minimal PyTorch re-implementation of the OpenAI GPT (Generative Pretrained Transformer) training

Python 23,175 3,036 Updated Aug 15, 2024

Complete implementation of Llama2 with/without KV cache & inference 🚀

Python 49 8 Updated May 24, 2024

The goal of this library is to generate more helpful exception messages for matrix algebra expressions for numpy, pytorch, jax, tensorflow, keras, fastai.

Jupyter Notebook 812 39 Updated Apr 7, 2022

Meshed-Memory Transformer for Image Captioning. CVPR 2020

Python 540 135 Updated Dec 21, 2022

A walkthrough of transformer architecture code

Jupyter Notebook 371 63 Updated Feb 20, 2024

An annotated implementation of the Transformer paper.

Jupyter Notebook 6,853 1,472 Updated Apr 7, 2024

Autograd to GPT-2 completely from scratch

Python 125 12 Updated Aug 10, 2025

Minimal, clean code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.

Python 10,220 985 Updated Jul 1, 2024

Repository of Jupyter notebook tutorials for teaching the Deep Learning Course at the University of Amsterdam (MSc AI), Fall 2023

Jupyter Notebook 3,047 659 Updated Oct 31, 2025

Annotated version of the Mamba paper

Jupyter Notebook 492 19 Updated Feb 27, 2024

Absolute minimalistic implementation of a GPT-like transformer using only numpy (<650 lines).

Python 254 14 Updated Nov 20, 2023