TensoriumInterview preparation
← Home

Core concepts · 62 topics

A guided path through the ideas behind modern LLMs.

Read the stages in order: how text becomes a prediction, what happens inside the Transformer block, how a model learns, then serving, scale, and post-training. Every topic names what to know first, then gives the intuition, the math with concrete numbers, the common misconception, and a self-check. Already comfortable with the basics? Switch to By area and jump straight to a topic.

New to machine learning? Start here instead.

These topics work best as a refresher; they assume ideas like probability and loss. Begin with three short beginner lessons (tokens, embeddings, next-token prediction), then the visual walkthrough for attention and the Transformer.

Finish line: You can explain how text becomes a prediction and what training does to improve that prediction.

Topic 41 of 62 · Training at scale

MFU and estimating training time

Medium

How do you estimate how long a pretraining run will take, and what is MFU?

Why this mattersModel FLOPs Utilization (MFU) and the 6ND approximation let you estimate cluster training time on a napkin and tell whether a run is stalling.

1 · Start with the intuition

Training a dense Transformer costs about 6 FLOPs per parameter per token: 2 for the forward pass and about 4 for backward. Multiply by parameters and tokens for the total work. Divide by the GPUs’ peak throughput times the fraction you actually achieve, the model FLOPs utilization, to get wall-clock time.

2 · How the mechanism works

Mechanism step 1 of 3 · no question to answer

Total FLOPs

C ≈ 6 · N · D for N parameters and D training tokens.

Next, we will look at: Achieved throughput. Move on when this operation makes sense.

Visualizing the behavior

7B × 2T tokens on 1,024 GPUs (989 TFLOP/s peak): time vs MFU

Derived
MFU 30%
76.8 h
MFU 40%
57.6 h
MFU 50%
46.1 h
Each 10 points of MFU moves the schedule by many hours; at larger scale it is weeks and millions of dollars. Excludes failures, restarts and evaluation time.