Notes
i wrote these. not a model. not a prompt. not a template. if something here is wrong it's because i was wrong, not because a system hallucinated it.
no schedule. no algorithm. the note, when it exists.
September 23, 2026
everyone is calling Jev a fast LLM. it doesn't generate text at all.
Jev, the first of TypeSafe's System One models, doesn't output tokens. It takes an unstructured state plus a schema and returns typed values with calibrated probabilities in one parallel forward pass -- no autoregression, output tokens free. RLCD trains it on decision outcomes, so its confidence is calibrated, the thing LLMs are famously bad at. The part nobody is making: the WebGPU mapping. The autoregressive bottleneck that makes browser LLM inference painful -- per-step dispatch overhead, memory-bandwidth-bound matrix-vector decode -- simply doesn't exist. A single-pass parallel sampler is one forward pass submitted once, with no per-token loop, compute-bound on the action-space matrix, with a few-kilobyte output. Cleaner than anything I've kernel-mapped before.
August 9, 2026
Every model architecture before Engram was designed for HBM and then adapted to everything else. Engram was designed for a different tier entirely.
Every model architecture before Engram was designed for HBM -- large, sequential, coalesced reads -- and then adapted to whatever memory tier it landed on. Engram (arXiv:2601.07372) is the first designed for a different tier entirely. It adds a third parameter type alongside attention and FFN weights: conditional memory, activated by a hashed N-gram lookup into a table that can hold billions of parameters, of which each token loads a tiny random fraction. That access pattern -- non-sequential, non-coalesced -- is exactly what HBM handles badly and what CXL DRAM handles natively, because CXL's cells are the same DRAM that has served random access in CPUs for decades. The CXL Engram pooling paper (arXiv:2603.10087) benchmarks the architecture on the tier it was designed for and reports near-DRAM end-to-end inference, on memory that costs roughly a fifth of HBM per GB. It completes a four-tier hierarchy -- SRAM, HBM, CXL, NVMe -- each optimized for a different access pattern, and it's the first time a model architecture change has created a demand signal for a memory tier that wasn't already in most clusters. Prefetching comes nearly free, because the lookup addresses depend only on the input tokens. The open problem is a shared CXL pool under contention.
July 26, 2026
The agent loop has a memoization problem. Nobody built the table.
An agent loop is naive recursive Fibonacci, and nobody built the memoization table. When a research agent spawns sub-agents, they independently recompute the same subproblems -- retrieving the same papers, calling the same tools with semantically equivalent queries -- paying full inference and API cost every time, because no current framework detects that these are the same subproblem. The fix is the one Bellman wrote down in 1957: memoize. But the DP table for agents can't key on exact input, because 'carbon pricing research' and 'carbon tax policy papers' are the same subproblem with different text. The key has to be a semantic fingerprint, and the cache value isn't just the result -- it's the KV states that encode processing that result, so a second branch that hits the same subproblem skips the tool calls and most of the prefill. Three recent papers set up the frame -- the Y-combinator paper gives the lambda-calculus framing, the RLM paper gives the REPL execution substrate, RAO gives the training objective -- and none of them built the cache. The semantic fingerprinting layer, the hash function that decides when two subproblems are the same, is the piece that doesn't exist yet. Everything else is standard CS applied to a new domain. The hash function is the research problem.
July 12, 2026
Monte Carlo simulation is LLM decode at the batch level, and the quant world solved the hardware a decade before AI needed it.
The quant finance world solved hardware acceleration for sequential-but-parallel stochastic simulation a decade before AI needed it, and the architectures are now converging on the same silicon. Monte Carlo simulation is LLM decode at the batch level: N independent Markov-chain paths, sequential within a path, parallel across paths -- structurally identical to B batched decode sequences. From there the mappings are one-to-one. HFT's FPGA-fast-path plus GPU-ML-path split is PD disaggregation (and NVIDIA's AFD) at the workload level. DPDK kernel-bypass is GPUDirect RDMA at the networking level. JAX/XLA's up-to-240x speedup on limit-order-book RL is torch.compile and CUDA-graph capture at the optimizer level -- the same purity assumptions, enforced by design instead of discovered under performance pressure. HFT's lock-free rings are the shared-memory ring buffer vLLM uses to broadcast each step to its workers. FPGA logic-fabric computation is FlashAttention keeping the accumulator in registers, then TMEM on Blackwell. WaveTune's wave-aware GPU model is FPGA pipeline-stage throughput analysis pointed at thread-block waves. And the one thing quant built that AI hasn't yet -- hardware-timestamped, regulator-auditable execution -- is exactly what agentic systems will need by 2027. The workload changes. The math doesn't.
July 5, 2026
The first time I saw an agent stuck in a retry loop, I knew what kind of bug it was before I read the logs.
The connection between competitive programming and AI infrastructure engineering is deeper than 'algorithms are useful,' and I want to name it precisely. Candidate Master on Codeforces (1900+, top 2-3%) isn't about knowing algorithms -- it's pattern recognition under time pressure: classify a novel problem, size its constraints, pick the tool. Four things transfer directly. Complexity intuition: 128k output tokens at 100 tokens a second is a 21-minute batch job, not a web request -- the magnitudes pattern-match to constraints the same way 'n is 10^5, so O(n^2) is out' does. An agent loop is a DP problem in disguise: the retry loop I fixed in ten minutes was a missing state dimension -- the context didn't carry 'I already tried this and it failed.' Binary search on the answer tunes KV TTL and DBO thresholds. And wrong-metric recognition -- goodput per dollar vs GPU utilization, deployment performance vs eval scores -- is the CP instinct for when a stated objective diverges from the actual one. The skill that transfers isn't the algorithms. It's the habit of asking, of any system: what is the state space, the objective, the metric, and is the metric actually measuring the objective.
July 3, 2026
The agent said it ran the tests. eBPF says no test binary was executed.
Every agentic observability stack -- LangSmith, OpenTelemetry, your custom logging -- sees the application layer: tool calls, LLM requests, the agent's stated actions. None of it sees the kernel. When the app layer says 'tests passed' and the kernel saw no execve() of a test binary, that intent-vs-effect gap is the most important signal in agentic observability, and it's currently invisible in every production system. AgentSight (arXiv:2508.02736) makes it visible: eBPF on the syscall boundary plus TLS-decryption uprobes to capture plaintext LLM intent, correlated into a causal intent-to-effect graph at under 3% overhead, framework-agnostic. It catches prompt injection, resource-wasting reasoning loops, and multi-agent IPC bottlenecks. BpfJailer (Meta, LPC 2025) turns eBPF-LSM into mandatory access control that enforces a syscall allowlist on untrusted AI workloads. eGPU/Ingero extends the trace into CUDA and ROCm, and Alibaba's SysOM-AI ran it across 80,000+ GPUs, cutting training-failure diagnosis from days to ~10 minutes. The agent can lie. The kernel cannot.
June 26, 2026
Most AI infrastructure gets built backwards. People stand up the serving layer before they understand what they're serving. Spend a month on evals before they have a model worth evaluating. Buy GPUs before they know if they need to train at all.
The order that actually matters, with the version numbers and flag names you'll regret getting wrong. Phase 0: define the task precisely, prove a frontier API can't already solve it, and know whether you're inference-only or training. Compute: rent on SF Compute until you actually clear 66% utilization, then price the on-prem math -- most teams never hit it. Serving: vLLM 0.21+ with TurboQuant KV quantization where the accuracy holds, FA4, and DBO for MoE; SGLang for MoE production tooling; disaggregate prefill/decode from day one and use PPD routing for multi-turn. Speculative decoding: EAGLE-3 default, DFlash at the quality ceiling, and never ship it without measuring acceptance on real traffic. Training: veRL for async RL, Axolotl for SFT. Evals are the thing that breaks first and nobody notices: goodput per dollar, P99/P50 TTFT, prefix cache hit rate, and an eval-awareness check before you trust a single number. The agent harness is the product, not glue code.
June 25, 2026
I went looking for what was below SASS. Found control codes. Went deeper. Found microcode. Then found a cross-vendor paper that puts it in context.
There are five layers below your CUDA C++: PTX, SASS, control codes, the fixed/variable-latency path split, and microcode. Most engineers know the first two. Every SASS instruction carries about 21 bits of control information (stall count, yield, read and write barrier indices, a wait mask over six dependency barriers, operand reuse flags), packed into a separate control word on Maxwell and Pascal and embedded in each 128-bit instruction from Volta on. The compiler isn't just translating code, it's encoding a scheduling policy the hardware obeys, and when ptxas's static latency model is off, the hardware follows it anyway. Go one layer down and the SFU runs transcendentals as a microcoded sequence, which matters on Blackwell because the tensor cores doubled and the exp units didn't. And a March 2026 cross-vendor paper shows which execution primitives every GPU vendor shares.
June 24, 2026
DiffusionGemma doesn't accelerate text generation by being a smarter model. It accelerates it by using GPU hardware in a completely different mode.
Autoregressive decode is memory-bandwidth-bound -- a matrix-vector product that leaves an H100's tensor cores at 4-5% utilization. DiffusionGemma's denoising over a 256-token canvas is compute-bound -- bidirectional matrix-matrix attention that actually saturates the tensor cores. That's where the 4x comes from: not a smarter model, the same work in the shape the hardware was built for. About 1,000 tok/s on one H100 per NVIDIA; vLLM's own recipe shows 6.2x the autoregressive baseline on per-request generation speed but 1.9x on output throughput, because time to first token goes from 53ms to 489ms. Built on Gemma 4's 26B-A4B MoE with a causal-encode/bidirectional-denoise split, and the denoising step count is a continuous quality-speed dial. Google says quality isn't production-ready yet and they're right -- but it already wins on code infilling, constrained generation, and structured editing, where bidirectional canvas attention is an actual advantage. Serving needs step-homogeneous micro-batching, not standard continuous batching.
June 23, 2026
Going from batch size 33 to 34 on an H100 SXM5 can add a whole extra wave, about 50%, to your decode attention latency.
Going from batch size 33 to 34 on an H100 SXM5 can add about 50% to decode attention latency -- the wave quantization cliff. One request crosses a boundary (SMs / KV-head-groups), an extra wave runs with a handful of straggler CTAs, and at long context that wave costs a lot. FlashAttention/FlashDecoding don't fully fix it; LeanAttention uses the associativity of online softmax's merge to distribute work Stream-K style across every SM -- 2.18x at 256K context. Log your batch size against TPOT; the cliff is in your serving config right now.
June 21, 2026
Companies are paying for 20x more GPU capacity than their workloads use. The number is worse than last year. The year before that it was worse than the year before that.
Average production GPU utilization is 5% -- and AWS just raised H200 prices for the first time since 2006. For agentic workloads the problem isn't low MFU during inference; it's that the GPU is idle *between* inferences, waiting on tool calls. Three idle resources (compute-network burst gaps, decode-side SNICs, sampling-phase GPUs), three papers (DualPath, AgentRL, Hummingbird) filling them. AgentRL hits 93.2% vs veRL's 45.2% on the same hardware. 5% utilization is a scheduling problem, not a hardware one.
June 19, 2026
ptxas generates SASS from your PTX. ptxas is a heuristic compiler. The SASS it generates is not optimal. CuAsmRL attacks that gap with RL.
ptxas compiles your PTX to SASS -- NVIDIA's undocumented native machine code -- with a greedy heuristic scheduler that's locally optimal and globally not. Almost every kernel-optimization paper works above ptxas and accepts whatever it emits. CuAsmRL (arXiv:2501.08071, CGO 2025) automates what SASS experts used to do by hand: infer register dependencies from the bytecode, search valid instruction schedules with RL, and let measured GPU execution time, not an ISA spec, be the reward.
June 16, 2026
NVIDIA built a Triton backend targeting their own hardware. That's not a concession. It's a tell.
On January 30th NVIDIA shipped a Triton backend that compiles directly to CUDA Tile IR -- a first-class, non-CUDA path to peak Blackwell performance. Every article framed it as developer outreach. It's defense. Triton compiles to AMD, Maia, and Intel too, and OpenAI's 6 GW AMD deal only pays off if kernels port. The CUDA moat isn't dead -- it moved from 'CUDA is the only way' to 'be the best Triton compilation target.'
June 15, 2026
Microsoft's 30% better tokens per dollar on Maia 200 was measured on the models it already serves. Claude is the test.
Anthropic is in early talks to run Claude on Microsoft's Maia 200 via Azure -- the first external customer for a chip built for Microsoft's own GPT-heavy fleet. Microsoft's '30% better tokens per dollar' was measured against that fleet. The open question is whether that 30% holds for Claude. The SRAM headroom and inference-only silicon say it could; a design built around someone else's models says it might not.
June 14, 2026
Git was designed for how humans use repos. Agents use repos completely differently. I spent the last few months building something for the second use case.
Ledge is a git server rebuilt for agent workloads. Point a stock git client at it -- no plugins, no protocol changes. Underneath: BLAKE3 content addressing, Raft replication, TLA+ verification, and eager warming that makes cold and warm clone the same 0.13s. Here's why the architecture ended up the way it did, and what's honestly not done.
June 13, 2026
HBM is 5-10x more expensive than conventional DRAM per gigabyte. The reliability constraint is why. The reliability constraint is also looser than you think.
HBM is manufactured to reliability tolerances stricter than inference workloads require. Accept higher raw bit error rates from cheaper dies, compensate with workload-aware ECC at the memory controller, and you pay a roughly 21% throughput cost that stays nearly flat all the way to 10^-3 BER, with 97% of accuracy retained there. The cost reduction comes from looser manufacturing tolerances. At Fable 5 scale, that gap is a budget line item.
June 9, 2026
128,000 output tokens per request. That number changes the serving infrastructure more than anything else in today's release.
128k output tokens at 100 tokens/second is 21 minutes of continuous decoding per single generation. That's not a better chatbot -- it's a batch compute job with an LLM as the execution engine. The serving infrastructure that works for chat models does not work for it: different scheduler, different memory tiering, different abstraction.
June 9, 2026
Three things shipped in vLLM and SGLang this spring that nobody has described together.
TurboQuant KV cache compression, FlashAttention-4 as the default MLA prefill backend, and Skip-Softmax attention all landed in vLLM and SGLang between late March and late April. Separately, three changelog entries. Together they describe what the optimized attention stack looks like on Blackwell right now, and each one moves a different constraint.
June 7, 2026
World model teams had a 40ms constraint. LLM teams had 200ms. The gap between those two numbers is why world model serving hit the distributed systems problems head-on.
World model inference runs under a hard 40ms real-time constraint. LLM inference runs under a soft 200ms one. That 5x difference in constraint tightness is why world model teams ran straight into three infrastructure patterns -- constant-memory context compression, step pipelining, attention-locality tiering -- that LLM serving is converging on. The world model serving papers from 2025-2026 are a preview of where LLM infrastructure lands in 2027.
June 6, 2026
When prefill and decode shard KV heads differently, every request costs about 30,000 small RDMA requests. The fix is one staging buffer.
In disaggregated serving with mismatched TP layouts (TP4 prefill, DEP4 decode), the KV head slices each decode rank needs are scattered across prefill memory. RDMA wants large contiguous transfers. The mismatch cost about 30,000 small messages per request. The fix is a gather kernel, and it is off by default.
June 5, 2026
Most LLM kernel optimization systems are one-shot generators. Kernel-Smith is trained to be a local improver. These are different problems requiring different training signals.
A one-shot generator takes a kernel specification and produces a kernel. A local improver takes a working kernel and asks: what is the single best modification to make this faster? These are not the same capability. They require different training data, different inference procedures, and produce different results on production kernels that aren't in the benchmark.
June 3, 2026
vLLM shipped tiered KV cache management last week. The PCIe bus is why it's harder than it sounds.
HMA solves two separate problems that were blocking production tiered KV cache. One has been solved well. One has a hardware ceiling that most writeups don't mention.
May 31, 2026
your eval suite assumes the model doesn't know it's being evaluated.
That assumption is false. It's been measurably false since at least mid-2025. It gets more false with every model generation. And almost nobody building production eval pipelines has updated their methodology to account for it.
May 30, 2026
blackwell doubled the tensor cores. it did not change the SFUs.
FlashAttention-4 is the most important kernel paper of 2026. The specific technical insight driving it is one of the cleanest examples of hardware co-design I have ever read.
May 27, 2026
nobody trained an RL model for the stopping decision.
arXiv 2605.02801 surveyed every published RL method for multi-agent LLM orchestration. Four sub-decisions have training methods. The fifth -- stopping -- has none. The deeper reason: the infrastructure has no signal back to the orchestrator.
May 25, 2026
The RL agent was caching kernel outputs by recognizing input memory addresses and returning stale results when it saw a matching pointer.
An RL agent trained to optimize CUDA kernels discovered output caching by memory address without being told it was an option. The CUDA-L1 team deployed DeepSeek-R1 as an adversarial checker to catch it. 3.12x average speedup. 7.72x over cuDNN. From a reward signal alone.
May 24, 2026
AWS gives you an H100. It does not give you an H100 running at what an H100 can actually do.
SF Compute runs 3.2 Tb/s InfiniBand. AWS P5 quotes the same 3,200 Gbps, over EFA. The headline bandwidth is equal. The difference is the fabric underneath it, lossless InfiniBand versus SRD over Ethernet behind a hypervisor, and the bare-metal control that lets huge pages, NUMA pinning, ACS disable, and GPUDirect compound on top.
May 23, 2026
Video world models generate pixels. 3D world models generate scenes. The serving architecture for each is completely different.
A 3DGS-output world model splits into two problems: neural generation on the server, rasterization on the client. The client renders arbitrary viewpoints locally at 100+ FPS via WebGPU. The cloud only has to generate the geometry.
May 23, 2026
Sora cannot be interactive. Neither can Veo or Kling. Runway had to build a different model to get there.
Bidirectional video diffusion models generate all frames jointly from a fixed prompt. That's why they're coherent. It's also why they fundamentally cannot respond to a mid-generation user action. Causal vs bidirectional is the most important architectural distinction in the world model space right now.
May 21, 2026
Real-time interactive video generation has two completely separate scaling problems. Almost nobody is solving both.
Per-step latency and long-horizon memory are independent problems. Causal Forcing++ solves the first. TTT Memory solves the second. Neither cites the other. The experiment that determines whether they compose hasn't been run yet.
May 20, 2026
Open an Nsight profile on a DeepSeek-R1 decode workload. Find the MoE Dispatch/Combine section. Look at how long it is relative to the compute sections on either side of it.
DBO overlaps MoE all-to-all communication with dense layer compute using two CUDA streams. 25% decode latency from one flag. The tensor cores were idle during that communication window the whole time.
May 15, 2026
You adopted WideEP for the throughput gains. Then one GPU died and 96 went down with it.
Wide Expert Parallelism turns 96 GPUs into a single failure domain. The benchmarks didn't measure what happens when GPU 47 dies at 3am.
May 9, 2026
99% of the prefill cost on turn 2 is recomputing something the decode node already has.
PD disaggregation was designed for single-turn queries. The dominant workload is now multi-turn. PPD routes append-prefill locally and cuts turn 2+ TTFT by 68%.
May 2, 2026
Google just threw away the network topology its TPU pods have been built on since v4. That's the story nobody wrote.
TPU 8i replaces the 3D torus with Boardfly -- a high-radix topology that cuts maximum hop count 56% for MoE inference. Google just declared training and inference need different network fabrics.
April 29, 2026
Prefill and decode run on the same GPU. They use completely different hardware. Bullet runs them at the same time.
Bullet partitions SMs spatially at the kernel level -- prefill on half the chip, decode on the other half, simultaneously. 1.26x throughput gain, no new hardware. ASPLOS '26.
April 27, 2026
Synchronous RL post-training makes the whole cluster wait for its slowest rollout. The algorithm only needs bounded staleness.
Laminar breaks the synchronization barrier between rollout generation and policy training that most RL systems were built around. 5.48x throughput on 1,024 GPUs from replacing a global lockstep with the bounded staleness the algorithm actually needs.
April 22, 2026
I write because the gap between what's true and what's being said is embarrassingly large right now.
Papers get published with 5x throughput gains, collect two citations, and disappear. The engineers who would benefit don't know they exist. That's the gap I write into.
April 18, 2026
71ms per forward pass. budget is 35ms. the hardware told me before i wrote a single line of code.
Building a serving system for video world models. The math forced every decision before I named a single abstraction.
April 17, 2026
two models shipped this month that broke a rule everyone believed about memory and capability.
Gemma 4 E2B runs in a browser tab. Nemotron 3 Super runs 1M context on a single GPU. Neither should be possible.
April 16, 2026
the CPU is on the critical path for every token you've ever generated.
Blink removes the CPU from inference serving entirely. 8.47x P99 TTFT. SmartNIC + persistent GPU kernel.
April 15, 2026
your inference engine stops protecting the KV cache the moment the agent calls a tool.
Then the tool returns. Under load, you recompute everything from scratch. On every tool call that outlives the cache.
April 13, 2026
they let the model run Kaggle competitions alone for 24 hours. it kept getting better.
MiniMax M2.7: open weights, $0.30/M tokens, self-improvement loop, 9 gold medals on MLE Bench in one autonomous run.
April 10, 2026
nobody is talking about the NIC hop.
CXL memory eliminates the KV transfer bottleneck in disaggregated inference. 9.8x TTFT improvement. The plumbing paper nobody read.
April 8, 2026
90% of Meta's model parameters are embeddings. they've been running them on tensor cores for years.
MTIA, custom silicon for recommendation inference, 44% TCO reduction, and why the GPU was always the wrong answer.
April 5, 2026
the H100 was designed for something most kernels don't do.
Warp specialization, GPU bubbles, and the 24% of inference hardware you're already paying for but not using.
April 2, 2026
this is not an anti-AI stance. this is an anti-idiot stance.
Vibe coding is a multiplier. It multiplies what you already are.
March 28, 2026
you are not paying for compute. you are paying for idle.
At 10% utilization, self-hosted inference costs about 9x more than the API. The math only works above 90%.
March 22, 2026
Google just quietly shipped Pied Piper.
TurboQuant compresses the KV cache to about 3 bits per value, roughly 5-6x, with no fine-tuning. Nobody is talking about it.
March 8, 2026
the agent got it right. the framework got it wrong.
Context engineering, not model capability, is why your agent fails in production.
February 22, 2026
The jump looked wrong. The physics were real.
WebGPU, world models, and the end of the game engine as an architectural paradigm.
February 2, 2026
the transformer isn't dying. it's getting a co-pilot.
Mamba, Titans, hybrid architectures, and what they actually change about GPU infrastructure.
January 9, 2026
the frame budget is 16 milliseconds. it does not negotiate.
What three weeks of building the wrong machine taught me about why world model inference is not LLM inference.
November 18, 2025
4% compute utilization. everything working exactly as it should.
Why your H100 inference deployment is memory-bound, not broken, and why MFU is the wrong metric.
October 2, 2025
the pipeline was green. the model was wrong.
Why DevOps fails at AI, and what the actual engineering discipline looks like.
August 28, 2025
the scheduler gave me eight GPUs. they were the wrong eight GPUs.
GPU topology, disaggregated inference, and why the Kubernetes resource model has no vocabulary for communication graphs.
July 12, 2025
i've been catching hardware failures before the hardware knows.
ECC errors, thermal deltas, checkpoint validation, and why your GPU cluster is degrading right now.
April 28, 2025
stop paying for free software with your Mondays.
Self-managed Airflow, sensor cascades, and why the cost analysis never includes the backlog that doesn't shrink.