LLMs-from-scratch and llms-from-scratch

These are competitors—both provide step-by-step implementations of transformer-based LLMs in PyTorch, with the first being a substantially more mature and widely-adopted version of the same educational approach.

LLMs-from-scratch
66
Established
llms-from-scratch
45
Emerging
Maintenance 17/25
Adoption 10/25
Maturity 16/25
Community 23/25
Maintenance 10/25
Adoption 7/25
Maturity 11/25
Community 17/25
Stars: 87,892
Forks: 13,408
Downloads:
Commits (30d): 8
Language: Jupyter Notebook
License:
Stars: 26
Forks: 10
Downloads:
Commits (30d): 0
Language: Jupyter Notebook
License: MIT
No Package No Dependents
No Package No Dependents

About LLMs-from-scratch

rasbt/LLMs-from-scratch

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

This project provides the practical code and guidance to build your own custom GPT-like large language model (LLM) from the ground up. You'll learn how to take raw text data, process it, and train a functional LLM that can generate text or follow instructions. This is designed for AI practitioners, machine learning engineers, and researchers who want to deeply understand and implement LLMs.

AI development natural language processing machine learning engineering deep learning research custom model training

About llms-from-scratch

analyticalrohit/llms-from-scratch

Build a ChatGPT like LLM from scratch in PyTorch, explained step by step.

This project offers a hands-on, step-by-step guide to building a large language model (LLM) similar to ChatGPT using PyTorch. It breaks down the complex architecture into understandable components, showing how text input is transformed into predicted words. This is for AI/ML developers and researchers who want to understand the inner workings of generative AI models.

AI development Machine Learning engineering Deep Learning research Generative AI Natural Language Processing

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