The full write-up
Overview
What it is: One static page with three calculators. The first takes a rack description and returns line current at 480 V AC three-phase and 800 V DC, facility MW, MWh per day, and water intake per day. The second takes a model preset, KV dtype, and HBM pool and returns KiB per token and how many full-context requests fit. The third turns a GPU-hour price and a throughput into dollars per million tokens.
Why it matters: The same rack looks different to a facility engineer, an inference engineer, and a finance lead. Feeding all three views from the same inputs makes the tradeoffs visible: halve context length and concurrency roughly doubles; halve throughput and the token price doubles.
What it computes
- Rack IT power from GPU count, watts per GPU, and an overhead fraction for CPU, NIC, and fans
- Line current: I = P / (sqrt(3) x V x PF) for three-phase AC, I = P / (V x PF) for DC
- Facility MW from IT kW and PUE, then MWh per day and litres of water per day at a stated L per IT kWh
- KV cache bytes per token: 2 x layers x KV heads x head dim x bytes per element
- Resident requests: floor(pool / (context x bytes per token))
- Dollars per million tokens: GPU-hour price / (tokens per second x 3600) x 10^6
The functions live in a dependency-free ES module. A Node test file checks them against the course’s worked numbers: 100 kW at 480 V is about 120 A, Llama 3.1 70B in BF16 is 320 KiB per token, and a 64 GiB pool holds 25 requests at 8K context.
Sources
- From Watts to Tokens, Kian Kyars, draft updated 2026-09-10. All formulas and worked examples.
- H100 one-year rental ranges on the page are the course’s dated 25th to 75th percentile observations: $1.45 to 1.95 per GPU-hour in October 2025 and $2.10 to 2.70 in April 2026.
Completed: September 21, 2026
