LLM Architecture Gallery
TL;DR Highlight
Dr. Sebastian Raschka put together a one-page gallery with architecture diagrams and key specs for dozens of major LLMs — Llama, DeepSeek, Qwen, Gemma and more — so you can compare design decisions at a glance.
Who Should Read
ML engineers who train or fine-tune LLMs directly, and AI developers who want to quickly understand architecture differences when choosing an open-source model.
Core Mechanics
- Llama 3 8B is a standard Dense model using GQA (Grouped Query Attention, where multiple heads share the KV cache to reduce memory) and RoPE (positional encoding), serving as a baseline for comparing other models like OLMo 2.
- DeepSeek V3 and R1 use a Sparse MoE (Mixture of Experts) architecture that activates only 37B out of 671B total parameters, combined with MLA (Multi-head Latent Attention). They also add a Dense prefix and Shared Expert to make large models practically deployable at inference time.
- DeepSeek R1 is not a new base architecture — it keeps the same structure as V3 but changes only the training recipe to specialize in reasoning. It's a case where training methodology, not architectural innovation, drives the performance gap.
- Gemma 3 27B uses a 5:1 hybrid attention approach where only 1 in 5 attention layers uses global attention, while the other 4 use Sliding Window Attention (SWA) — significantly increasing the local attention ratio compared to Gemma 2.
- Llama 4 Maverick is an MoE model activating only 17B out of 400B total parameters, following DeepSeek V3's design direction but using GQA for attention and opting for fewer but larger experts.
- The Qwen3 series ranges from 235B MoE down to 4B Dense, consistently applying QK-Norm (normalizing query and key vectors to improve training stability) across the entire lineup. The 235B-A22B MoE version is structurally very similar to DeepSeek V3 but drops the Shared Expert.
- OLMo 2 7B takes a unique normalization approach by placing Post-norm inside residual connections instead of the standard Pre-norm, improving training stability. It also sticks with classic MHA (Multi-Head Attention) rather than GQA.
- The gallery provides config.json links, technical report links, parameter counts, dates, decoder types, attention mechanisms, and key design points for each model in a fact-sheet format — no need to dig through the original papers for quick comparisons.
Evidence
- Commenters noted this gallery could serve a similar role to the 'Neural Network Zoo' (asimovinstitute.org) that visualized dozens of neural network architectures and became widely used as an educational resource — many felt an LLM version was long overdue.
- One commenter shared a link via zoomhub.net (https://zoomhub.net/LKrpB) for zooming in on the architecture diagrams, offering a practical workaround since the original image has so much detail that click-to-zoom alone is cumbersome.
- There were requests to add an 'evolution lineage' or 'family tree' visualization showing which models influenced which, along with a scale view for visually comparing parameter counts — noting that the current gallery makes it hard to track the chronological flow of architectural innovations.
- Someone asked the author whether creating this gallery revealed anything surprising or unexpected about LLM architectures — probing whether the curatorial process itself generated new insights beyond just compilation.
How to Apply
- When choosing a base model for fine-tuning, use this gallery to quickly check the attention method (GQA vs MHA vs MLA) and normalization approach (Pre-norm vs Post-norm) instead of reading the full paper.
- When comparing model inference costs, use the MoE active parameter count (e.g., DeepSeek V3's 37B, Maverick's 17B) rather than total parameter count as the primary cost estimate.
- When evaluating model selection — especially for Qwen3 and DeepSeek V3 — check whether they use Shared Experts, since this architectural detail can significantly affect how experts specialize and overall performance.
- Use this gallery as a teaching aid when explaining 'what makes LLMs different from each other' to non-experts. Having the config.json and technical report links handy for deeper dives is a bonus.
Terminology
Related Papers
What happened after 2k people tried to hack my AI assistant
실제로 6,000개 이상의 이메일로 AI 에이전트에 prompt injection 공격을 시도한 공개 실험 결과로, Claude Opus 4.6이 비밀 파일 유출을 한 번도 허용하지 않았지만 실험 설계의 현실성에 대한 논란이 뜨거웠다.
When Does Combining Language Models Help? A Co-Failure Ceiling on Routing, Voting, and Mixture-of-Agents Across 67 Frontier Models
여러 LLM을 조합해도 '모든 모델이 동시에 틀리는 비율(β)'이 성능 상한선이며, 업계가 쓰는 pairwise 상관계수(ρ)는 이 상한선을 예측하지 못한다.
Beyond Function Calling: Benchmarking Tool-Using Agents under Tool-Environment Unreliability
실제 환경처럼 API가 망가지거나 결과가 이상할 때 LLM 에이전트가 얼마나 잘 버티는지 측정하는 벤치마크 ToolBench-X 공개.
Nearly Half of LG Smart TV Apps Contain Residential Proxy SDKs
6,038개의 LG·Samsung 스마트 TV 앱을 스캔했더니 2,058개에서 사용자의 IP를 몰래 팔아 트래픽을 중계하는 Residential Proxy SDK가 발견됐다. TV는 컴퓨터처럼 감시받지 않아서 프록시 호스트로 거의 이상적인 환경이다.
Prompt Injection as Role Confusion
LLM이 시스템 프롬프트, 사용자 입력, 툴 출력을 구분하지 못하는 구조적 결함이 prompt injection의 근본 원인이라는 ICML 2026 논문으로, 현재 LLM 보안 아키텍처의 한계를 명확히 분석한다.
GPT-5.5 hallucinates 3x more than MIT-licensed GLM-5.2
모델 크기가 커질수록 성능이 좋아진다는 통념에 반해, 오픈소스 753B 모델 GLM-5.2가 추정 1~2T 규모의 GPT-5.5보다 환각 비율이 3배 낮다는 벤치마크 결과가 나왔다. 단순히 파라미터 수와 벤치마크 점수만으로 모델을 선택하면 실제 업무에서 낭패를 볼 수 있다는 경고다.