jsbaan / transformer-from-scratchLinks
Well documented, unit tested, type checked and formatted implementation of a vanilla transformer - for educational purposes.
☆282Updated last year
Alternatives and similar repositories for transformer-from-scratch
Users that are interested in transformer-from-scratch are comparing it to the libraries listed below
Sorting:
- Llama from scratch, or How to implement a paper without crying☆585Updated last year
- LORA: Low-Rank Adaptation of Large Language Models implemented using PyTorch☆122Updated 2 years ago
- Tutorial for how to build BERT from scratch☆102Updated last year
- I will build Transformer from scratch☆84Updated 6 months ago
- LLaMA 2 implemented from scratch in PyTorch☆366Updated 2 years ago
- A Simplified PyTorch Implementation of Vision Transformer (ViT)☆235Updated last year
- Annotations of the interesting ML papers I read☆275Updated last month
- An extension of the nanoGPT repository for training small MOE models.☆236Updated 11 months ago
- Code Transformer neural network components piece by piece☆372Updated 2 years ago
- ☆190Updated 2 years ago
- Notes about "Attention is all you need" video (https://www.youtube.com/watch?v=bCz4OMemCcA)☆336Updated 2 years ago
- ☆100Updated last year
- Recreating PyTorch from scratch (C/C++, CUDA, NCCL and Python, with multi-GPU support and automatic differentiation!)☆163Updated 2 months ago
- Implements Low-Rank Adaptation(LoRA) Finetuning from scratch☆81Updated 2 years ago
- LoRA and DoRA from Scratch Implementations☆215Updated last year
- Advanced NLP, Spring 2025 https://cmu-l3.github.io/anlp-spring2025/☆71Updated 10 months ago
- Attention Is All You Need | a PyTorch Tutorial to Transformers☆362Updated last year
- LLM Workshop by Sourab Mangrulkar☆401Updated last year
- Distributed training (multi-node) of a Transformer model☆94Updated last year
- Notes on quantization in neural networks☆117Updated 2 years ago
- Annotated version of the Mamba paper☆496Updated last year
- Slides, notes, and materials for the workshop☆339Updated last year
- This repository contains an implementation of the LLaMA 2 (Large Language Model Meta AI) model, a Generative Pretrained Transformer (GPT)…☆74Updated 2 years ago
- Code implementation from my blog post: https://fkodom.substack.com/p/transformers-from-scratch-in-pytorch☆97Updated 2 years ago
- NeurIPS Large Language Model Efficiency Challenge: 1 LLM + 1GPU + 1Day☆260Updated 2 years ago
- A set of scripts and notebooks on LLM finetunning and dataset creation☆116Updated last year
- MinT: Minimal Transformer Library and Tutorials☆260Updated 3 years ago
- Project 2 (Building Large Language Models) for Stanford CS324: Understanding and Developing Large Language Models (Winter 2022)☆105Updated 2 years ago
- Highly commented implementations of Transformers in PyTorch☆138Updated 2 years ago
- ☆413Updated last year