All 29 articles, sorted alphabetically
Sentence Similarity with BERT and Flask
Sentence Similarity with BERT and Flask
Read article →LLM Agent Architecture in Depth
A 2500-word walkthrough of LLM agent architecture: planner, tool registry, executor, working memory, long-term memory, reflection, guardrails, streami…
Read article →LLM chunked prefill architecture
Deep-dive on chunked prefill for LLM serving: how splitting a long prompt into fixed-size token chunks under a single per-step token budget lets the s…
Read article →LLM continuous batching architecture
Deep-dive on continuous (iteration-level) batching for LLM serving: instead of static batches that wait for their slowest member, a scheduler recompos…
Read article →FlashAttention architecture
Deep-dive on FlashAttention: why the GPU memory hierarchy (HBM vs SRAM) makes standard attention memory-bound, how tiling and the online softmax compu…
Read article →LLM guided decoding architecture
Deep-dive on guided (constrained/structured) decoding: why validity can't be reliably obtained by prompting, how a schema or …
Read article →LLM KV-cache offloading architecture
Deep-dive on KV-cache offloading for LLM serving: paged block management, LRU eviction with reuse hints, prefix caching, pinned host staging, async co…
Read article →LLM KV-cache quantization architecture
Deep-dive on KV-cache quantization for LLM serving: why the KV cache dominates memory, quantize-on-write and dequantize-on-read, per-token vs per-chan…
Read article →Multi-LoRA serving architecture
Deep-dive on multi-LoRA serving: one shared base model with many small per-tenant LoRA adapters, the router and adapter cache/store that manage scarce…
Read article →PagedAttention architecture
Deep-dive on PagedAttention and KV-cache management in LLM serving: block managers and free pools, continuous-batching admission, prefix caching with …
Read article →Prefill/decode disaggregation architecture
Deep-dive on disaggregated LLM inference: why prefill and decode interfere, SLO-aware routing, layer-wise KV cache streaming over NVLink/RDMA, prefix …
Read article →LLM priority scheduling architecture
Deep-dive on priority scheduling for LLM inference: priority classes and deadlines, admission control, KV-cache-aware preemption (swap vs recompute), …
Read article →LLM prompt caching -- reusing computed context for cost and latency
Deep-dive on LLM prompt caching: KV cache reuse for repeated prompt prefixes, prefix matching, cost reduction (cached tokens billed less) and latency …
Read article →LLM model routing architecture
Deep-dive on LLM routing: feature extraction and learned routers, cascade vs predictive dispatch, quality gates and judge models, escalation ceilings,…
Read article →LLM sampling and decoding architecture
Deep-dive on LLM decoding: the logit vector, masking, repetition/frequency/presence penalties, temperature scaling, top-k vs top-p vs min-p truncation…
Read article →LLM Semantic Caching: Reusing Answers by Meaning, Not Bytes
How a semantic cache embeds queries, searches a vector index of prior Q&A, and serves on a similarity threshold — cutting cost…
Read article →Speculative decoding architecture
Deep-dive on speculative decoding: draft model + target verify + accept-reject, plus tree spec, Medusa heads, and self-speculation variants.
Read article →Structured output architecture
Deep-dive on structured LLM output: JSON Schema to FSM compilation, token-mask decoding, tokenizer lifting, vLLM/TGI/llama.cpp guided decoding, JSON m…
Read article →LLM tokenization architecture
Deep-dive on LLM tokenization: BPE training and vocabulary-size trades, the runtime encode pipeline with byte fallback, special-token security at trus…
Read article →LLM tool use -- connecting models to actions and data
Deep-dive on LLM tool use (function calling): the model requesting tools via structured output, tool schemas (name/description/params), the call-execu…
Read article →