fp4
A publication for engineers shipping inference

The engineering layer of AI.

Deep technical writing on LLM, GPU, and ML systems internals — decoded from silicon to system to algorithm.

fp4 quantizer E2M1 · 4-bit float
−6−2026
input · fp32 3.7194
quantized · fp4 4.0
err 0.281
/01

Categories

Pick your depth
/02

Latest

View all →

Provenance at the Token Level: How Claude, Gemini and GPT Mark Generated Text

The statistics that make a watermark detectable, the entropy ceiling that bounds it, the attacks that cost under $50, and the compliance arithmetic that made three frontier labs ship it anyway.

⚙⚙⚙⚙⚙ 2026.10.03

Context Window Management for Multi-Agentic Platforms

Eight strategies ordered by leverage-per-complexity — from prompt caching to bandit-scored tool selection — with the economics, code, and latency budget for each.

⚙⚙⚙⚙⚙ 2026.07.01

The KV Cache: A Definitive Engineering Analysis

Naive autoregressive inference recomputes the entire attention matrix at every decoding step. KV caching stores the immutable K and V projections instead, converting per-step O(t·d) cost to O(d) exactly — no approximation.

⚙⚙⚙⚙○ 2026.06.27

Flash Attention: A Complete Architectural Autopsy

From O(N²) HBM catastrophe to Hopper-native warp-specialized pipelines: every trick, every number, every tradeoff decoded. Standard attention is not bottlenecked by arithmetic — it is bottlenecked by memory bandwidth.

⚙⚙⚙⚙⚙ 2026.06.27

PagedAttention: How vLLM Borrowed Virtual Memory to Unlock GPU Serving at Scale

Static KV cache pre-allocation wastes 60–80% of GPU memory under production traffic patterns. PagedAttention applies OS-style virtual memory paging to the KV cache, enabling 3× higher concurrency on the same hardware.

⚙⚙⚙⚙○ 2026.06.27

Continuous Batching: The Scheduling Insight That Made LLM Serving Actually Work

Static batching blocks an entire batch until its longest sequence finishes. Moving the scheduling boundary from request to iteration frees GPU slots at every decode step, taking utilization from 20–35% to 70–85%.

⚙⚙⚙○○ 2026.06.27
All 24 articles →