In LLM training, Model FLOPs Utilization (MFU) and Hardware FLOPs Utilization (HFU) are key measures of ML training efficiency. But how do we measure them at scale? This post introduces Tensor Flop Utilization (TFU), a proxy for MFU that comes from GPU telemetry instead of a FLOPs formula, so it can be collected across large fleets of NVIDIA GPUs.
For the full method and validation results, see our paper, Instant GPU Efficiency Visibility at Fleet Scale.
MFU and HFU #
Model FLOPs Utilization (MFU) was introduced by Google in the PaLM paper as the ratio of observed throughput, in tokens per second, to the theoretical maximum throughput of a system running at peak FLOP/s. The maximum counts only the operations required for the forward and backward passes, not rematerialization (recomputing activations to save memory). Put simply, MFU asks: “Of the maximum tokens per second my model could theoretically produce on this hardware, what fraction is it actually producing?”
Theoretical maximum tokens per second isn’t published anywhere, but an accelerator’s peak FLOP/s is. Dividing the peak FLOP/s of all the GPUs in a job by the FLOPs needed to train on one token gives the maximum token throughput, which turns MFU into a ratio of FLOP/s:
<sub>job</sub>= Tokens/s × (FLOPs/token − Rematerialization FLOPs/token) GPU count × Theoretical max FLOP/s per GPU
PaLM proposed MFU as an alternative to what it called Hardware FLOPs Utilization (HFU), the measure most earlier reports used: the device’s achieved FLOPs divided by its theoretical peak. HFU counts every FLOP the hardware executes, including rematerialization, so it can rise without making training any faster. MFU counts only the work the model requires. . HFU isn’t limited to training workloads. It applies to any workload where you want to know how close you are to the maximum FLOPs your accelerator can theoretically produce (actual FLOPs divided by theoretical FLOPs).
In practice, when used for training workloads, both metrics usually count only matrix-multiplication (matmul) FLOPs, which account for the vast majority of FLOPs in large Transformers. Non-matmul operations such as activation functions, softmax and normalization still take time. In BERT training, matmuls accounted for 99.8% of the FLOPs but only 61% of the runtime, as outlined in the 2021 paper Data Movement is All you Need: a Case Study on Optimizing Transformers. Neither metric credits that work, so a low score can’t tell you whether the time went to these operations, communication or idle time.
Why MFU and HFU are difficult to measure #
MFU and HFU are valuable in theory, but both are hard to compute in practice.
HFU can be counted in two ways, and neither works well across a fleet of thousands of GPUs running mixed workloads:
- Hardware counters (profiling). Tools such as Nsight Compute count the FLOPs each kernel executes, but collecting those detailed counts adds significant overhead, so profiling is used to optimize individual runs rather than to monitor production.
- Analytical accounting. The FLOPs are worked out by hand for each workload, which requires knowing exactly what each implementation executes.
MFU avoids profiling because it is calculated analytically, from tokens/s, the model configuration and the hardware’s published peak. Tokens/s is easy to collect, but the other two inputs are fragile:
- Peak FLOP/s. Peak throughput depends on precision: a GB300, for example, can perform roughly twice as many FP8 FLOPs as FP16 FLOPs, and with mixed-precision training now common, there is no standard way to account for operations at different precisions. Spec sheets also often quote peaks with structured sparsity, which are double the dense figure most workloads should use.
- FLOPs per token. No single formula covers every architecture. Mixture-of-experts (MoE) models and other models need their own derivation, and models change often during experiments. Mistakes are common: in our paper’s study of 608 production H100 training jobs, 82 had FLOPs miscalculations.
As a result, MFU is valuable but brittle, and HFU is impractical to collect routinely across a fleet.
Tensor Flop Utilization #
To address these problems, we introduce Tensor Flop Utilization (TFU), a proxy for MFU that comes from GPU telemetry instead of a FLOPs formula. TFU measures the share of a GPU’s peak Tensor Core throughput that a job achieves. Because it counts all Tensor Core work, including recomputed and padded matrix multiplies that MFU leaves out, it can read higher than MFU, most noticeably for jobs that use activation checkpointing.
TFU relies on the fact that matrix multiplications account for most of the FLOPs in deep learning. GPUs run them on Tensor Cores, dedicated units introduced in the Volta architecture, and each generation since has increased their throughput, so the vast majority of a GPU’s peak FLOP/s now comes from its Tensor Cores.
As Figure 1 shows, above, CUDA cores deliver far fewer FLOP/s than Tensor Cores, so we can assume a GPU reaches its peak FLOP/s at a given precision when its Tensor Cores are busy on every cycle and the SM clock is at its max reference clock, the clock behind the GPU’s published peak.
Multiplying tensor pipe activity (TPA), the fraction of cycles the Tensor Core pipe is busy, by the ratio of the current SM clock to the max reference clock then estimates achieved FLOP/s ÷ peak FLOP/s. The clock term matters because TPA counts cycles, not time. When a GPU hits a power or thermal limit, it lowers its clock: an H100 at 1,500 MHz with a TPA of 100% reaches only about 82% of its peak (1,500 ÷ 1,830).
At the job level, TFU is averaged across all GPUs assigned to the job and every sample collected while it runs, excluding missing readings.
<sub>job</sub>= mean GPU in job, time TPA × SM clock Max reference clock
Max reference clock is the clock used for the GPU’s published peak Tensor Core FLOP/s (1,830 MHz on H100). If none is published, use the max SM clock.
A further benefit is that TFU doesn’t depend on precision. The same Tensor Core pipe runs matrix multiplies in every precision, so a saturated pipe reads the same whether it is issuing BF16, FP8 or FP4 instructions. The peak FLOP/s it delivers differs by format, but achieved and peak FLOP/s change by the same factor, so their ratio stays the same.
Our paper’s main validation is a production run: mixed-precision pretraining of an MoE hybrid Mamba-Transformer on 6,144 GB200 GPUs, tracked over about 30 days. TFU agreed with application-reported MFU within 1 percentage point on average, in both mixed-precision and BF16-only phases, and per-job averages of the two metrics had a correlation of 0.98 across 174 jobs. This keeps TFU comparable across jobs running in different precisions and sidesteps the mixed-precision problem described earlier.
TFU has three limitations:
- It excludes FLOPs outside matrix multiplication. MFU usually makes the same simplification.
- It counts Tensor Core activity, including wasted work . Padding counts toward TFU even though it doesn’t contribute useful work: in our paper’s matrix-multiply tests, this made TFU read 1–2 points above MFU.
- It includes rematerialization FLOPs . Unlike MFU as PaLM defines it, TFU counts work repeated to save memory. This can also be an advantage, because TFU shows how busy the Tensor Cores really are when recomputation makes MFU look low.
Collecting TFU at scale #
To compute TFU for a job, you need two per-GPU fields sampled at least every 30 seconds, the reference clock for the GPU model, and a way to tell which GPUs belong to the job.
1. Collect the fields. DCGM Exporter collects both by default; on Kubernetes, it is deployed as part of the GPU Operator. Field names depend on the version (Table 1, below). Set the collection and scrape intervals to 30 seconds or less, because DCGM’s Tensor Core activity counter averages over windows of up to 30 seconds.
| Value | DCGM Exporter 4.9.0 and later | Earlier Versions |
|---|---|---|
| TPA | DCGM_ | DCGM_ |
| SM clock | DCGM_ | DCGM_ |
Table 1. DCGM Exporter fields for the two measured TFU inputs, by version
2. Map GPUs to the job. On Kubernetes, DCGM Exporter can label each GPU’s metrics with the pod and namespace using it. On Slurm and other HPC schedulers, it can add an hpc_job label from job-mapping files. See DCGM workload labels for setup.
3. Compute TFU for each sample: Tensor Core activity × SM clock ÷ reference clock, using the reference clock for the GPU model from Table 2, below (for a GPU that isn’t listed, use its max SM clock). Use the same units for both clocks: from DCGM Exporter 4.9.0, the SM clock is reported in hertz (1,830 MHz = 1.83e9 Hz).
4. Average over the job: across all of the job’s GPUs and every sample from the job’s start to its end, skipping missing readings.
| GPU SKU | Tensor/SM Reference clock used (MHz) |
|---|---|
| A100 SXM4 80 GB | 1,410 |
| H100 SXM 80 GB | 1,830 |
| H200 SXM 141 GB | 1,830 |
| B200 SXM 192 GB | 1,965 |
| GB200 NVL 192 GB | 2,062 |
| GB300 NVL 288 GB | 2,070 |
Table 2. Reference clocks used for each GPU
Values are the max SM clock reported by nvidia-smi -q -d CLOCK, except for H100 and H200, where we used 1,830 MHz, the clock that matches their published peak FLOP/s, as in our paper. These are the settings we used for measurement, not official specifications.
For example, this Prometheus query returns TFU for Slurm job 123456, which ran for 24 hours on H100 GPUs, evaluated at the job’s end time:
avg_over_time(
avg(
DCGM_FI_PROF_PIPE_TENSOR_ACTIVE{hpc_job="123456"}
* on (UUID)
clamp_max(DCGM_FI_DEV_SM_CLOCK{hpc_job="123456"} / 1830, 1)
)[24h:30s]
)
For DCGM Exporter versions before 4.9.0, use DCGM_FI_PROF_PIPE_TENSOR_ACTIVE and DCGM_FI_DEV_SM_CLOCK, and divide by 1830 (MHz). On Slurm, select GPUs by hpc_job instead of pod.
To check a single machine without Prometheus, run dcgmi dmon -e 1004,100, which prints Tensor Core activity and the SM clock in MHz for each GPU every second. Activity of 0.45 at 1,650 MHz on an H100, for example, gives an TFU of 0.45 × 1,650 ÷ 1,830 ≈ 41%.
Tensor Flop Utilization in practice #
Once instrumented, TFU can be collected across workloads without maintaining a separate model-specific FLOPs estimate for every experiment. That makes it useful for spotting workloads that deserve a closer look:
- Very low TFU. A training job below about 5% generally signals a fixable problem, such as GPUs waiting on data , or matmuls running in FP32 on CUDA cores instead of Tensor Cores. Inference and some other workloads run low by nature, so compare against similar jobs before digging in.
- High TFU. In a sample fleet, the best-tuned LLM pretraining runs were observed to reach about 35-40% TFU or more. Once a job’s TFU is high for its type, the next gains come from lower precision or fewer FLOPs, for example by recomputing less. Both can speed up training without raising TFU, so judge them by tokens per second or step time.
TFU also works beyond LLM training. Because it needs no FLOPs formula, it applies to any workload that uses Tensor Cores, including vision, speech, multimodal, inference and reinforcement-learning jobs.
TFU doesn’t replace MFU; comparing the two is a quick check on a FLOPs formula. Because TFU counts all Tensor Core work, MFU should normally come out at or below it. If MFU is noticeably higher, the FLOPs formula or the peak FLOP/s it uses is likely wrong. If MFU is much lower, check for rematerialization or padding before suspecting the formula.
TFU by job type across a fleet
To see how utilization varies by workload, we measured TFU across a large GPU fleet, with jobs grouped by type using an automated classifier. The seven types shown account for 54.8M GPU-hours. For each type, we measured a sample of about 450–790 jobs, weighted toward larger jobs, so each point estimates the GPU-hour-weighted TFU for that type. Bars show 95% confidence intervals for sampling error, and TFU data covers 55–93% of each type’s GPU-hours.
These results cover every kind of job, from small experiments and debugging runs to large training runs. General LLM training averages 17.2% TFU, and the other job types fall between 5.8% and 11.4%. Some LLM training runs go much higher: 787 runs, totaling 1.0M GPU-hours, reached 30% TFU or more, averaging 32.3%.
An important note for TFU is most experiments won’t always be optimized for performance as a result we see lower numbers then we would for a well tuned training run that runs for a long period of time.
TFU measures the share of the Tensor Cores’ peak FLOP/s a job achieves, which is a much stricter bar than the GPU utilization most dashboards report. Lower TFU values aren’t always a problem, either: inference is often limited by memory bandwidth rather than by matmul throughput, and RL jobs spend part of their time generating rollouts.
Interpreting utilization metrics #
MFU, HFU and TFU share some caveats worth knowing.
First, higher utilization doesn’t always mean faster training. Recomputation adds Tensor Core work, so it raises TFU and HFU while potentially making each step slower, and a larger hidden size can raise MFU even as tokens per second fall. Conversely, lower precision and fewer FLOPs per token can speed up training while leaving utilization flat or lower, which is one reason FP8 and NVFP4 are gaining ground for the largest models. Ultimately, TFU is a measure of if your training run FLOPs bound, not a measure for if the FLOPs actually result in a better model. For that we look at model evaluations
Second, utilization tells you that a job has room to improve, not where. To find the bottleneck, profile the workload with a tool such as Nsight Systems.
Finally, treat utilization as one signal among several: judge training performance by step time and tokens per second, and check that changes such as lower precision don’t hurt model quality.
Bring TFU into your fleet monitoring #
As AI infrastructure grows, getting the most from every GPU matters as much as deploying more of them. MFU and HFU are useful frameworks, but their dependence on workload-specific FLOPs estimates or profiling makes them hard to measure consistently at scale.
TFU closes that gap by making utilization part of fleet monitoring. Researchers and cluster operators can assess any workload that uses Tensor Cores without rederiving a FLOPs formula every time a model changes.
To get started, read the full method and validation results in our paper, Instant GPU Efficiency Visibility at Fleet Scale (Note: the metric Tensor Flops Utilization (TFU) replaces the initial term Overall Flops Utilization (OFU) coined in the paper). If you run NVIDIA GPUs on Kubernetes or Slurm, check that DCGM Exporter is collecting the Tensor Core activity and SM clock fields and your cluster is configured with DCGM Workload Labels, then compute TFU for your own jobs.
Acknowledgments
Nik Konyuchenko contributed to this post.