analyticalrohit/llms-from-scratch

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

45
/ 100
Emerging

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.

Use this if you are a machine learning engineer or researcher aiming to deeply understand and implement a generative AI model from its foundational components.

Not ideal if you are looking for a pre-trained LLM to use directly or an abstract overview of LLM capabilities without delving into code.

AI development Machine Learning engineering Deep Learning research Generative AI Natural Language Processing
No Package No Dependents
Maintenance 10 / 25
Adoption 7 / 25
Maturity 11 / 25
Community 17 / 25

How are scores calculated?

Stars

26

Forks

10

Language

Jupyter Notebook

License

MIT

Last pushed

Jan 18, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/analyticalrohit/llms-from-scratch"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.