Do You Know How GLM 5 3 and GLM 5 3 Flash Works? DSA, KDA and KV Cache Explained @KGPTalkie
Do You Know How GLM 5 3 and GLM 5 3 Flash Works? DSA, KDA and KV Cache Explained  @KGPTalkie
Uploaded September 2026 | Updated November 2026, 1 day ago
My Latest Udemy Courses for 2027:
Google Antigravity: kgptalkie.com/antigravity
Claude Code: kgptalkie.com/claude-code
OpenAI Codex: kgptalkie.com/openai-codex
Decision AI LLM Fine-Tuning: kgptalkie.com/decision-ai-llm-fine-tuning
---------------

GLM 5.3 Flash vs GLM 5.3 architecture teardown: both Z.ai models hold a 1 million token context window with 64 attention heads, and Flash stores 6.0 KB of KV cache per token against 47.6 KB for GLM 5.3.

I rebuilt both models from their config files and safetensors headers, layer by layer. You will see how GLM 5.3 stacks 78 DeepSeek Sparse Attention (DSA) layers while GLM 5.3 Flash pairs 11 DSA layers with 34 Kimi Delta Attention (KDA) linear attention layers, how the lightning indexer picks the top 2,048 tokens for full attention, how a shared indexer lets 57 layers reuse one pick, and how to calculate KV cache per token yourself. Mixture of experts, the MTP draft layer and where the parameters live are all covered too, so this one video gives you the full picture, and it doubles as solid prep for Gen AI interviews.

⏱ Chapters:
0:00 47.6 KB vs 6.0 KB of KV Cache per Token
1:08 Can the KV Cache Fit on an RTX 5090?
1:47 Release Dates and the 1M Context Upgrade from GLM 5
2:36 Total vs Active Parameters
3:36 78 Layers vs 45 Layers: DSA and KDA
5:11 Experts, Vision Support and FP8 Checkpoint Size
7:21 95% of Weights Asleep per Token
8:27 How Mixture of Experts Routing Works
9:41 Layer Layout and the MTP Draft Layer
11:10 Where DSA Runs in Each Stack
13:45 What Is KDA (Kimi Delta Attention)?
19:28 DSA and the Lightning Indexer Explained
23:10 Own Indexer vs Shared Indexer
24:16 How to Calculate KV Cache per Token
28:29 KV Cache Growth up to 1M Tokens
29:06 Where the Parameters Live: 97% Experts
31:43 Wrap Up

🔗 Resources:
GLM 5.3 vs GLM 5.3 Flash teardown (written version): kgptalkie.com/tutorials/llm-benchmarking/glm-5-3-vs-glm-5-3-flash-architecture-teardown
DeepSeek Sparse Attention explained (lightning indexer in depth): kgptalkie.com/tutorials/llm-benchmarking/deepseek-sparse-attention-explained

📝 Notes on the numbers:
Total parameters are 753B for GLM 5.3 and 321B for Flash. The 734B and 311B at 29:13 are the routed expert weights inside them.
Flash has 288 experts per layer (corrected on screen at 31:10), each about 25.2M parameters.
137.7M is the weight count of one KDA layer. The KDA running state is a fixed 71 MB in BF16 across all 34 layers for one sequence, at any context length.
The 50 GB at 28:44 is for 1 million tokens.
The 8x KV cache ratio is derived from the checkpoint files. Z.ai's launch material reports about 4.4x using its own serving method.

📺 Watch next:
DeepSeek V4.1 Flash Architecture Explained: DSA and CSA2 Sparse Attention: youtube.com/watch?v=hhdywxoho9s
Qwen 3.8 Flash Next (Qwen 4) vs 27B: Qwen 4 Architecture Teardown: youtube.com/watch?v=VvV3QRHfzYU

🎓 Go deeper with my Udemy course:
Fine Tuning LLM with Hugging Face Transformers for NLP: kgptalkie.com/fine-tuning-llm

If this teardown made KV cache click for you, hit like, drop a comment with the model you want torn down next, and subscribe with the bell on for more architecture breakdowns.

#GLM53 #KVCache #LLMArchitecture #SparseAttention #KGPTalkie
Do You Know How GLM 5 3 and GLM 5 3 Flash Works? DSA, KDA and KV Cache ExplainedSystem Design Interview 012: Design a URL Shortener
Laxmi Kant | KGP Talkie |

Do You Know How GLM 5 3 and GLM 5 3 Flash Works? DSA, KDA and KV Cache Explained

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER