LLMs-from-scratch and llm-from-scratch

These are competitors—both teach LLM implementation fundamentals from first principles in PyTorch, with the established rasbt resource offering significantly more depth and community validation for learners choosing between educational approaches.

LLMs-from-scratch
69
Established
llm-from-scratch
29
Experimental
Maintenance 20/25
Adoption 10/25
Maturity 16/25
Community 23/25
Maintenance 6/25
Adoption 6/25
Maturity 1/25
Community 16/25
Stars: 87,892
Forks: 13,408
Downloads:
Commits (30d): 8
Language: Jupyter Notebook
License:
Stars: 22
Forks: 7
Downloads:
Commits (30d): 0
Language: Jupyter Notebook
License:
No Package No Dependents
No License No Package No Dependents

About LLMs-from-scratch

rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Covers the complete pipeline from tokenization and attention mechanisms through pretraining on unlabeled data and finetuning for classification and instruction-following tasks. Includes practical implementations of multi-head attention, causal masking, and parameter-efficient techniques like LoRA, alongside code for loading pretrained model weights. Organized as Jupyter notebooks and standalone Python scripts that progressively build a functional GPT architecture while explaining each component's role in modern LLM training.

About llm-from-scratch

ai-art-dev99/llm-from-scratch

Build a Large Language Model From Scratch

Scores updated daily from GitHub, PyPI, and npm data. How scores work