AI Infra Interviews logo

Together AI Napkin Math, Cost & Capacity interview questions

Napkin Math, Cost & Capacity is a core part of the Together AI AI Infrastructure Engineer loop. Memory footprints, 6ND, arithmetic intensity and the ridge point, bandwidth-bound decode, communication volume, GPU counts and time to train, cost per million tokens, TCO and buy versus rent. The estimation round almost every AI infra loop includes, with every assumption stated. Below are the napkin math, cost & capacity questions to prepare, the ones tagged to Together AI first, then the highest-signal questions from our Napkin Math, Cost & Capacity track, each with an answer written to a senior-engineer bar.

WHAT TOGETHER AI LOOKS FOR HERE · Fleet automation: provision, validate, upgrade, repair and retire GPU clusters; agents for triage and remediation. See the full Together AI interview process →

Napkin Math, Cost & Capacity questions tagged to Together AI

7 questions · 2 unlocked for you

More Napkin Math, Cost & Capacity questions for Together AI's loop

The highest-signal napkin math, cost & capacity questions candidates rate most useful, modeled on what Together AI's AI Infrastructure Engineer loop tests.

15 questions · 8 unlocked for you

Concepts behind Together AI's Napkin Math, Cost & Capacity round

The vocabulary and mental models these questions assume. Start with the foundations free; the deeper, interview-defining ideas are part of premium.

Foundational
Model Memory FootprintThe first calculation in almost every AI infra loop: how many bytes does this model occupy, for inference and for training, and does it fit on the card in front of you? Inference is parameters times bytes per parameter (2 in bf16), plus a KV cache that grows with users. Training is 16 bytes per parameter before activations. A 70B model is 141 GB to serve and 1.13 TB to train, and a reader who can produce those two numbers from the parameter count, with the reasoning, has passed the first five minutes of the estimation round.
Foundational
KV Cache SizingThe KV cache is the memory that decides how many users a serving replica can hold and how long their context can be. Its size per token comes from four numbers in the model's config file (layers, KV heads, head dimension, bytes per element) and one formula; multiplied by context and concurrency it is the number every capacity plan is built on. This page derives it, works it for four models including an MLA one, and shows the two places candidates get it wrong by a factor of eight.
Foundational
Training FLOPs: 6NDThe compute needed to train a language model is six floating-point operations per parameter per token: two for the forward pass and four for the backward. Multiply by the parameter count and the token count and you have the whole run's compute, which is the number every fleet-sizing, time-to-train and cost question starts from. This page derives the 6, states the attention correction and when it matters, and shows where the 2N of inference comes from, so the reader can rebuild the formula rather than recall it.
Core
Sign in
GPU-Hours and Time to TrainThe fleet equation turns a training run's FLOPs into a schedule: time = 6ND divided by (GPUs times peak FLOPS times MFU). Every term is a stated assumption, and the interviewer grades the assumptions rather than the digits: which peak, which MFU, and what happens to the answer when MFU falls from 40% to 30%. This page works three runs end to end (an 8B, a 70B and a 405B), inverts the equation for the GPU count a deadline needs, and shows the sensitivity that separates a considered estimate from a lucky one.
Core
Sign in
Arithmetic Intensity by OperationThe roofline says a kernel's ceiling is set by its FLOPs per byte against the hardware's ridge point. This page does the FLOPs-per-byte arithmetic for the operations an LLM actually runs (decode at several batch sizes, prefill, the attention score matmul with and without FlashAttention, LayerNorm, an embedding lookup) so the reader can place any of them on the roofline from first principles and say which lever moves it. The numbers explain why a serving fleet's GPUs report 30% utilization while fully loaded.
Advanced
🔒 Premium
Bandwidth-Bound Decode ThroughputBecause decode reads every weight once per step, its speed is a division: memory bandwidth over bytes per step. That one formula gives single-stream tokens per second for any model on any card, the batch curve that flattens at the ridge point, the effect of quantization, and the point where the KV cache rather than the weights becomes the thing being read. This page derives it, works it for a 70B model on four accelerators, and shows how to read a vendor throughput claim against it.
Advanced
🔒 Premium
Communication Volume EstimatesEvery parallelism strategy is a promise to move a certain number of bytes between GPUs every step, and the fabric either affords it or it does not. This page derives the per-rank volume for data parallelism, ZeRO/FSDP, tensor parallelism, pipeline parallelism and expert parallelism, works each for a 70B model at 8 and 64 ranks, and turns the bytes into seconds on NVLink and on a 400 Gb/s NIC. The result is the rule that decides every 3D layout: per-layer traffic stays on NVLink, per-step traffic can cross the fabric.
Advanced
🔒 Premium
Cost per Million TokensThe unit every serving decision cashes out in. It is one formula: the fleet's dollars per second divided by the tokens per second it sustains, scaled to a million, with utilization in the denominator because idle replicas still cost money. This page derives it from a GPU price and a throughput estimate, works it at three batch sizes to show why batching is the main lever, separates prefill from decode pricing, and shows how the same fleet's cost per token moves by 5x between a quiet hour and a busy one.
TOGETHER AI NAPKIN MATH, COST & CAPACITY FAQ
What Napkin Math, Cost & Capacity questions does Together AI ask in interviews?

Together AI's AI Infrastructure Engineer loop draws napkin math, cost & capacity questions such as "How many tokens per second can a 70B model generate for a single user on H100s?", "What does it cost per million output tokens to serve a 70B model on eight H100s?", "Size an inference fleet for a 70B model serving 1,000 concurrent users". Memory footprints, 6ND, arithmetic intensity and the ridge point, bandwidth-bound decode, communication volume, GPU counts and time to train, cost per million tokens, TCO and buy versus rent. The estimation round almost every AI infra loop includes, with every assumption stated. The full set, ordered easy to hard with expert answers, is below.

How should I prepare for the Together AI Napkin Math, Cost & Capacity round?
Does Together AI hire AI infrastructure engineers?
Does Together AI hire in India?

Other Together AI interview rounds

The other tracks Together AI's AI Infrastructure Engineer loop tests.

Prep the whole Together AI AI Infrastructure Engineer loop

Napkin Math, Cost & Capacity is one round. Unlock every answer across Together AI's full loop, plus the concept curriculum, for 6 months. One payment, no auto-renewal. Free questions in every track to start.

Independent and not affiliated with Together AI. All trademarks belong to their owners.