⌕ search /
Engineering notes

Engineering notes

Long-form technical write-ups behind this site's numbers — formulas, worked examples and sources. The same math powers the calculator.

5 notes · server-rendered · in sitemap
Engineering note

Hybrid attention memory: why calculators are 2–70× wrong

KDA, Gated DeltaNet, Mamba and sliding-window attention break the classic KV-cache formula. The exact per-layer state math, worked examples for Kimi K3 / Qwen3-Next / Gemma 3 / gpt-oss, and how vLLM, llama.cpp and SGLang actually bill the memory.

2026-08-28

Engineering note

How we predict tok/s: a calibrated roofline

Parameter heuristics and benchmark tables both fail in instructive ways. The Speed-of-Light model behind this site: prefill vs decode rooflines, the corrections that matter (frameworks, quantization, MoE, hybrid attention, TP sublinearity), and the three-way calibration that keeps it honest — including where it is wrong.

2026-08-28 · updated 2026-10-23

Engineering note

The parameter count is not the model: reading 2026 checkpoints

A model page counts stored elements, not weights, and not what runs per token. Packed 4-bit experts, latent MoE, draft blocks and 196B-parameter lookup tables put public estimates 2–30× off. The checks, worked on Kimi K3.1 Pro, MiniMax M3.1 Flash, DeepSeek V4.1 Flash, GLM-5.3 Flash and Inkling 2 Small.

2026-11-24

Engineering note

Rent GPUs or buy tokens: where the break-even is

An hourly GPU price and a per-token API price only compare at a stated load. The blended price for a prompt and answer length, the utilisation that decides the GPU side, and the break-even concurrency — worked on list prices of open models, with what the comparison leaves out.

2026-11-24

Engineering note

First token under load: why the idle number is the wrong one

Time to first token on an idle server is prompt length over prefill rate. Under load three more terms appear: waiting for prefill, the engine's fixed cost, and the decode steps of the streams already running. The formula, its calibration and what it changes in sizing.

2026-11-24

Prices are collected daily from each provider's public price list or API. Estimates, not quotes — always confirm on the provider's own page before committing.

How this works · How accurate it is