·40 min read·AI & LLMs
LLM Architectures · Part 1
Python Internals for LLM Engineers
A walkthrough of what I learnt during Phase 1 of learning about LLM architectures.
Series · 6 posts, in reading order
Learning LLM internals from Python to vLLM, following Mentiforce's roadmap and ending in a queue-scheduler project.
·40 min read·AI & LLMs
LLM Architectures · Part 1
A walkthrough of what I learnt during Phase 1 of learning about LLM architectures.
·47 min read·AI & LLMs
LLM Architectures · Part 2
A walkthrough of what I learnt on Neural network fundamentals and hardware execution with a broader scope on learning about LLM architectures.
·41 min read·AI & LLMs
LLM Architectures · Part 3
A walkthrough of what I learnt on Transformer architecture principles with emphasis on transformer models, attention - multi-head and cross attention, softmax functions and positional encoding methods with a broader scope on learning about LLM architectures.
·38 min read·AI & LLMs
LLM Architectures · Part 4
A walkthrough of what I learnt on Transformer Inference Optimization Strategies with emphasis on inference efficiency, KV cache, flash attention and quantization methods with a broader scope on learning about LLM architectures.
·35 min read·AI & LLMs
LLM Architectures · Part 5
A walkthrough of what I learnt about vLLM: why it handles high concurrency so well, how PagedAttention manages KV cache memory, how its scheduler mixes prompt and decode work, and how users and applications interact with the engine.
·40 min read·AI & LLMs
LLM Architectures · Part 6
The foundations of my next project, a minimal LLM queue scheduler: why batching matters and what it costs, how requests arrive, how naive, dynamic and continuous batching differ, how to measure TTFT, TPOT and throughput, and the plan for building and benchmarking it.