Track 06 · LLM Internals
6.2 Modern Architectures
48 topics in 5 parts. Use it as a checklist before an interview, or as a map of what to learn next.
- CCritical
- HHigh
- MMedium
- NNew 2026
01Popular LLM Families8 topics
- GPT-4/o — OpenAI, decoder-only, RLHF-alignedC
- Claude 3/4 — Anthropic, Constitutional AI, long contextC
- Gemini — Google DeepMind, multimodal, 1M contextC
- LLaMA 3 — Meta, open weights, GQA, 8B/70B/405BC
- Mistral / Mixtral — sliding window, MoE architectureH
- Qwen 2.5 — Alibaba, multilingual, 7B-72BH
- DeepSeek V3 — MLA, 671B total / 37B active MoEN
- Architecture trade-offs: speed vs quality vs costC
02Context & Memory8 topics
- Context window: tokens, costs, limitsC
- KV cache: what is stored, memory formulaC
- Prefill vs decode phase: compute vs memory-boundH
- Long-context handling: RoPE scaling, YaRNH
- Conversation memory: rolling window, summarizationH
- Prompt caching: stable prefix → 90% cost reductionC
- Grouped Query Attention (GQA): KV cache reductionH
- MLA (Multi-Head Latent Attention): DeepSeek V3N
032026 Architecture Advances15 topics
- Mixture of Experts (MoE): sparse activation, top-k routingC
- Expert collapse + auxiliary load-balancing loss to prevent routing collapseH
- Reasoning models: o3, DeepSeek R1, extended thinkingC
- DeepSeek R1 — pure RL (GRPO), no SFT, open-source o1-level reasoningN
- Claude 3.7 Sonnet — adjustable thinking budget (0–16K reasoning tokens)N
- GRPO vs PPO: no critic, group-relative advantagesN
- Test-time compute scaling: more thinking = better answersN
- Mamba / SSM: O(n) alternative to O(n²) attentionH
- Mamba-3 (ICLR 2026): complex SSMs, MIMO formulation, multi-head structureN
- Hybrid Mamba+Transformer (Jamba, Zamba2): interleave SSM and attention layersN
- Speculative decoding: draft + verify, 2-4× speedupH
- Flash Attention: SRAM tiling, O(n) memory vs O(n²)H
- GQA (Grouped Query Attention): multiple Q share one KV — Llama 3H
- MQA (Multi-Query Attention): all Q share one KV — max KV savingsM
- Causal masking: upper-triangle -∞ prevents attending to future tokensH
04Transformer-Based NLP — Production Models9 topics
- BERT: masked language modeling (MLM), [CLS] pooling for classificationH
- RoBERTa / DeBERTa-v3: improved BERT, better benchmarks, disentangled attentionH
- Sentence Transformers (SBERT): siamese network, semantic similarity, bi-encoderC
- Cross-encoders: concatenate query+doc → slow but accurate — use for reranking onlyC
- Bi-encoder vs cross-encoder: bi-encoder retrieves fast (ANN), cross-encoder reranks top-KC
- Fine-tuning BERT for classification: unfreeze last 2-4 layers, lr=2e-5, warmup stepsH
- Zero-shot classification: BART-MNLI, NLI-based approach — no labeled data neededH
- GLiNER: generalist NER — extract any entity type via text prompts, few-shot capableN
- SetFit: few-shot text classification without large LLM — contrastive fine-tuning of SBERTH
05Production Embedding Models — 20268 topics
- BGE-M3: multilingual, multi-granularity (dense+sparse+colbert), state of the art 2026C
- E5-large-instruct: instruction-tuned, strong zero-shot retrievalH
- OpenAI text-embedding-3-large: 3072 dims, Matryoshka, best for OpenAI stackH
- MTEB leaderboard (huggingface.co/spaces/mteb/leaderboard): how to pick the right modelC
- Embedding model selection criteria: task type, language, latency, cost, dimensionH
- Domain adaptation: fine-tune embedding model on in-domain pairs (contrastive loss)H
- Embedding drift: monitor cosine similarity distribution shift — signals retraining needH
- Matryoshka Representation Learning: truncate to smaller dim at query time, 2-4× faster searchN
Practise it
Knowing it is half.
Saying it is the rest.
Run a realistic voice interview with an AI panel in the Interview Room, then read a scored report on every answer.