YeonwooSung/llm-architecture-from-scratch
Can I trust it?
No red flags in our checks.
Stars from real accounts No data
We haven't checked its stars for fakes yet.
Active OK
Last change today.
Licence OK
BSD-3-Clause: you can use it for free, also in a commercial product. Keep the licence notice.
Quick checks from public data. They help, but they are no guarantee.
What it is
A collection of from-scratch PyTorch implementations of modern LLM architectures, including GPT-2 XL, Llama variants, DeepSeek V3, Qwen3, and Gemma 3. A comparison table lists each model's normalization, positional encoding, attention type, and whether it uses mixture of experts.
Who it's for
Developers and students who want to study how modern LLM architectures are built in PyTorch
How to use it
Ask your AI to set it up
Paste this into Claude, ChatGPT or your coding assistant.
Help me install and set up YeonwooSung/llm-architecture-from-scratch in my project. Follow its README: https://github.com/YeonwooSung/llm-architecture-from-scratch. Explain each step and check it is safe before running anything.
Star curve
On the radar
Its place among the radar's top 100, day by day, with #1 at the top. Gaps are days it was out of the top 100.
Records
- Best place on RepoAlerts: #66, on 19 Oct 2026
Alternatives
Similar projects named in its profile. Each link searches the directory.
Get alerts for repos like this
We'll email you when something in Models & inference starts rising. Free, once a week, only what matches.
18,263 GitHub repos watched and ranked every hour. Figures as of 20 October 2026.
What arrives: one email on Mondays with the repos that match, never more. See last week's. Privacy
For maintainers
Add this badge to your README. It shows the repo's place on the radar, updates every hour and links back to this page.
[](https://repoalerts.com/repo/YeonwooSung/llm-architecture-from-scratch?ref=badge)Similar repos
- mw00/project-maya
A C++ engine, server and dashboard for running the GLM-5.3-Flash and DeepSeek-V4.1-Flash models locally on one to sixteen NVIDIA or AMD GPUs, on Linux or Windows. It offers OpenAI- and Anthropic-compa
- justxor/deepseek-local-guide-ru
A Russian-language guide for installing and running DeepSeek models locally on PC, Mac and servers. Covers Ollama, llama.cpp, LM Studio, vLLM, SGLang and Open WebUI, plus API usage, RAG, agents and fi
- deepseek-ai/DeepInfer
Open-source offline inference framework for DeepSeek models, offering optimized kernels, MoE expert and attention parallelism, speculative decoding, asynchronous scheduling, deterministic sampling and
- MemTensor/MemT-1.0
A research model family, MemT-1.0, that adds trainable native memory blocks alongside transformer attention so models retain historical information across turns without re-reading the original context
- prabanta-dev/janas
A C inference engine for running large mixture-of-experts language models on ordinary computers, with or without a GPU. Weights stay on disk, and the experts each token needs are streamed from an NVMe
- Edge0-AI/Edge0
Open-source streaming MoE inference framework that runs large sparse-MoE models on consumer hardware by streaming expert weights from SSD on demand. A trained prerouter predicts expert routing one ste