LLM Architecture Gallery
TL;DR Highlight
Raschka's gallery compares 111 LLM architectures, KV cache sizes, and MoE active ratios in one place.
Who Should Read
A backend developer choosing an open model to serve who wants to compare memory and KV cache costs
Core Mechanics
- 111 models on one card-based page
- From GPT-2 XL (2019) to recent models, each card links the diagram, config.json, and tech report.
- It covers text-only LLMs and backbones; multimodal models are described by their text decoder.
- Side-by-side architecture diff
- Pick Model A and Model B to see structural differences.
- A separate memory calculator is included.
- Each card hints at serving cost
- Cards list parameters, context length, license, attention type, layer mix, and KV cache per token (bf16).
- The KV cache is temporary GPU memory that grows with conversation length.
- MoE models activate a small share
- DeepSeek V3 uses 37B of 671B (5.5% active).
- Kimi K2 uses 32B of 1T (3.2%) and Llama 4 Maverick 17B of 400B (4.3%).
- KV cache per token varies a lot
- GPT-2 XL is 300 KiB, Llama 3 8B is 128 KiB, and OLMo 2 7B is 512 KiB.
- DeepSeek V3 is 68.6 KiB thanks to MLA (attention that compresses the KV).
- Filters and sorting
- Filter by release date, parameter size, Dense/MoE/Hybrid/Recurrent, and company.
- Some cards also show an AA Intelligence Index score.
Community Reactions
- Opinion that most models still look like GPT-2
- A commenter said there have been many improvements in seven years but no fundamental innovation, just stacked attention and feed-forward layers.
- They argued capability gains came from scaling and new training methods like RLVR.
- Opinion that architecture changes mostly cut inference cost
- A commenter said GQA, MoE routing, and sliding-window attention trade theoretical capacity for practical efficiency.
- Feature requests and experience reports
- Commenters asked for a family-tree view of influences and a scaled size view.
- One reported blurry images when zoomed in, and another hit Too Many Requests errors.
- Interest in an agent/harness version
- Some commenters came expecting agentic workflow design patterns and wanted a similar gallery for agents and harnesses.
How to Apply
- Compare two candidate models in the diff tool
- Put your current model and a replacement candidate into Model A/B.
- Note the differences in attention type and KV cache per token.
- Check KV cache before long-context serving
- If you handle many long requests, compare the KV cache/token values of candidates.
- Use the memory calculator to estimate memory before choosing a GPU.
- Read total and active parameters for MoE together
- Record the total and active ratio when choosing a model.
- Check the license entry against your commercial-use needs.
- Link the gallery in your model selection doc
- Leave the card and config.json links in your team's model decision doc.
- Point to them when architecture questions come up.
Try It
# Paste into Claude or ChatGPT (to compare candidates using gallery card info)
Below is info copied from LLM Architecture Gallery cards for candidate models.
Model A: {{Model A card: parameters, context, attention, KV cache/token, license}}
Model B: {{Model B card}}
Our service conditions: {{e.g. avg 20k input tokens, 10 concurrent requests, one 80GB GPU}}
1. Summarize the architecture differences in 3 lines, in plain developer language.
2. Calculate KV cache memory use under these conditions from the card numbers. Show the formula.
3. Do not guess missing info; write 'not on card' instead.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls