Skip to content
Skip to lesson
Back to Topics
HardFine-Tuning & Training12 min read

Mixed Precision Training

A 16-bit store can erase a tiny update near one or overflow a large activation, which is why the optimizer step still keeps an FP32 path.

On this page

A weight sits at 1.0. The optimizer subtracts 0.0001, and in naive 16-bit storage the weight stays 1.0: no exception, no warning, just silently stalled learning. On another batch, an activation near 100,000 crosses FP16's 65,504 ceiling, flips to Inf, and poisons the step.

avoids both traps by separating compute from persistent state: fast 16-bit Tensor Core matrix multiplications paired with FP32 parameters, optimizer moments, and sensitive reductions.[1] In , parameters remain in FP32 while autocast dispatches eligible operations to or .[2]

A floating-point number has two limits

A finite normal binary float packs a sign bit ss, exponent ee, and fraction mm:

x=(−1)s×2e−bias×(1+m2fraction_bits)x = (-1)^s \times 2^{e - \text{bias}} \times \left(1 + \frac{m}{2^{\text{fraction\_bits}}}\right)

Think of the exponent as picking a ruler and the fraction as its tick marks. Every ruler carries the same number of ticks, so spacing doubles at every power of two. Two independent properties follow: exponent bits set dynamic range (underflow/overflow limits), while fraction bits set nearby resolution (machine epsilon ϵ\epsilon at 1.0). FP16 and BF16 split their 15 remaining bits in opposite ways:

FormatSignExp (bias)FracPositive normal rangeEpsilon (ϵ\epsilon at 1.0)
FP3218 (127)231.18×10−38…3.40×10381.18\times10^{-38} \dots 3.40\times10^{38}1.19×10−71.19\times10^{-7}
FP1615 (15)106.10×10−5…65,5046.10\times10^{-5} \dots 65{,}504 (subnormal to 5.96×10−85.96\times10^{-8})9.77×10−49.77\times10^{-4}
BF1618 (127)71.18×10−38…3.39×10381.18\times10^{-38} \dots 3.39\times10^{38}7.81×10−37.81\times10^{-3}

BF16 matches FP32's exponent range (some accelerators like Cloud TPU flush BF16 subnormals to zero[3]) at the cost of 8x coarser spacing near 1.0 than FP16 and 65,536x coarser than FP32.

Three positive-range rows share a logarithmic magnitude axis. FP32 has 1 sign, 8 exponent and 23 fraction bits; FP16 has 1, 5 and 10; BF16 has 1, 8 and 7. Bit ribbons use the same width per bit. Solid intervals show normal ranges and dashed intervals extend to encoded subnormal minima. Shared markers locate the 1.2e-8 and 100000 inputs. The CPU cast table records FP16 zero and infinity, versus finite BF16 results near 1.20e-8 and 99840. Encoded subnormals can be flushed by a device path.
Bit widths and magnitude ranges across FP32, FP16, and BF16. Both `1.2e-8` and `100,000` fall outside FP16's range while remaining finite in BF16.

Inspect both neighbors before judging an update

Adding 0.0001 to a weight at 1.0 vanishes in both FP16 and BF16 even though both represent 0.0001 standalone. This is swamping: the sum rounds back to the stored weight.

Because grid spacing doubles at 1.0, the rounding cell is asymmetric: the gap below 1.0 is half the gap above 1.0, so subtraction survives at half the magnitude required for addition:

FormatGap below 1.0Gap above 1.0Half-gap downHalf-gap up
FP162−112^{-11}2−102^{-10}2−12≈2.44×10−42^{-12} \approx 2.44\times10^{-4}2−11≈4.88×10−42^{-11} \approx 4.88\times10^{-4}
BF162−82^{-8}2−72^{-7}2−9≈1.95×10−32^{-9} \approx 1.95\times10^{-3}2−8≈3.91×10−32^{-8} \approx 3.91\times10^{-3}

Inspect both neighbors with torch.nextafter and verify that 1e-4 disappears in both 16-bit formats while 0.0003 (FP16) and 0.0025 (BF16) cross their downward half-gaps:[4][5]

floating-point-neighbors.py
import torch

for label, dtype, dec in (("FP16", torch.float16, 0.0003), ("BF16", torch.bfloat16, 0.0025)):
    one = torch.tensor(1.0, dtype=dtype)
    below = torch.nextafter(one, torch.tensor(0.0, dtype=dtype))
    above = torch.nextafter(one, torch.tensor(float("inf"), dtype=dtype))
    print(f"{label}: down={1.0 - below.item():.6f}, up={above.item() - 1.0:.6f}, "
          f"minus_{dec}={(one - torch.tensor(dec, dtype=dtype)).item():.6f}, "
          f"minus_1e-4={(one - torch.tensor(1e-4, dtype=dtype)).item():.6f}")
Output
FP16: down=0.000488, up=0.000977, minus_0.0003=0.999512, minus_1e-4=1.000000
BF16: down=0.003906, up=0.007812, minus_0.0025=0.996094, minus_1e-4=1.000000
Two number lines share a delta-from-one scale. FP16 has neighbors 0.99951172 and 1.00097656; BF16 has neighbors 0.99609375 and 1.00781250. Shaded nearest-even rounding cells around one are asymmetric. A 0.0001 decrement returns to one in both formats, while decrements of 0.0003 in FP16 and 0.0025 in BF16 reach their lower neighbors. The FP32 update stores approximately 0.99989998.
The rounding cell around `1.0` is half as wide below `1.0` as above it. Subtracting `0.0001` lands inside the cell in both 16-bit formats and disappears.

Range decides whether gradients exist at all

Swamping erases updates added to a larger weight; underflow and overflow destroy standalone values outside the exponent range. Casting [1.2e-8, 1.0e5] to FP16 produces [0.0, inf] (1.2e-8 sits below half FP16's smallest subnormal 5.96e-8 and 1e5 > 65,504), whereas BF16 keeps both finite as [1.20e-8, 9.98e4] (with 7-bit rounding), which is why BF16 rarely requires loss scaling.[7]

FP16 uses loss scaling to rescue small gradients

Because differentiation is linear, shifts tiny FP16 gradients upward before writes them:[1]

Lscaled=S⋅L,∇wLscaled=S⋅∇wL,gtrue=1S⋅gscaled\mathcal{L}_{\text{scaled}} = S \cdot \mathcal{L}, \qquad \nabla_w \mathcal{L}_{\text{scaled}} = S \cdot \nabla_w \mathcal{L}, \qquad g_{\text{true}} = \frac{1}{S} \cdot g_{\text{scaled}}

Multiplying by S=1024S = 1024 adds 10 binary exponent steps, moving 1.2×10−81.2 \times 10^{-8} into representable FP16 (1.23e-5) before dividing by SS in FP32 to recover 1.20×10−81.20 \times 10^{-8} within 0.08% relative error.

Dynamic loss scaling as a feedback controller

torch.amp.GradScaler automates SS with a feedback loop:[1][8][2]

  1. Start high (S0=65536.0S_0 = 65536.0) with clean-step counter c=0c = 0.
  2. Run forward under autocast, then backpropagate scaler.scale(loss).
  3. Call scaler.unscale_(optimizer) to divide gradients by SS in FP32 and scan for Inf/NaN.
  4. Non-finite gradient found: skip optimizer.step() atomically (freezing weights and Adam moments), halve S←0.5SS \leftarrow 0.5 S, and reset c←0c \leftarrow 0.
  5. All gradients finite: clip norms if needed, apply optimizer.step(), and increment cc; when cc hits growth_interval (default 2000), double SS and reset c←0c \leftarrow 0.

Watch GradScaler rescue 1.2e-8, skip a spiked step atomically, halve the scale to 512, and double back to 1024 after two clean steps:

overflow-backoff.py

for name, large_grad in (("quiet", 0.02), ("spike", 100.0), ("quiet_again", 0.02), ("quiet_twice", 0.02)):
    optimizer.zero_grad(set_to_none=True)
    before = model.weight.detach().clone()
    with torch.autocast("cpu", dtype=torch.float16):
        loss = (model(torch.ones(1, 1)).float() * torch.tensor([1.2e-8, large_grad])).sum()
    scaler.scale(loss).backward()
    scaler.unscale_(optimizer)
    grad = model.weight.grad.clone()
    if torch.isfinite(grad).all():
        torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
    scaler.step(optimizer)
    scaler.update()
    step = int(optimizer.state[model.weight]["step"])
    print(f"{name:<11}: grad={[round(v, 4) if abs(v) > 1e-4 else f'{v:.2e}' for v in grad.flatten().tolist()]}, "
          f"updated={not torch.equal(model.weight, before)}, adam_step={step}, next_scale={scaler.get_scale():.0f}")
Output
quiet      : grad=['1.20e-08', 0.02], updated=True, adam_step=1, next_scale=1024
spike      : grad=['1.20e-08', inf], updated=False, adam_step=1, next_scale=512
quiet_again: grad=['1.20e-08', 0.02], updated=True, adam_step=2, next_scale=512
quiet_twice: grad=['1.20e-08', 0.02], updated=True, adam_step=3, next_scale=1024
Dynamic loss scaling skips the entire optimizer step on `spike`, holding weights and Adam moments fixed while halving `S`, then recovers after clean steps.
Deep dive: multiple optimizers and non-finite forward losses

Two GradScaler subtleties matter in complex loops:

  1. Multiple optimizers skip independently: Each scaler.step(opt) checks only its own .grad tensors, followed by one shared scaler.update().[9] If two optimizers require joint atomicity, check finiteness across both explicitly.
  2. GradScaler checks .grad, not loss: An infinite additive constant in loss can leave finite derivatives, so check torch.isfinite(loss) before backward.[10]

Compute low, update high

In a AMP loop, keep weights in FP32, wrap only forward and loss in torch.autocast, keep .backward() outside autocast, and enable GradScaler for FP16 (check torch.isfinite(loss) under BF16 too):[2]

cuda-amp-training-shape.py
dtype = torch.bfloat16  # or torch.float16 with GradScaler enabled
scaler = torch.amp.GradScaler("cuda", enabled=(dtype == torch.float16))
for batch, target in dataloader:
    optimizer.zero_grad(set_to_none=True)
    with torch.autocast(device_type="cuda", dtype=dtype):
        loss = criterion(model(batch.cuda()), target.cuda())
    if not torch.isfinite(loss).all().item():
        raise FloatingPointError("Non-finite forward loss")
    scaler.scale(loss).backward()
    scaler.unscale_(optimizer)
    torch.nn.utils.clip_grad_norm_(model.parameters(), max_norm=1.0)
    scaler.step(optimizer)
    scaler.update()

Autocast is op-specific: matmuls run in 16-bit while reductions like cross_entropy widen to FP32, backward mirrors forward dtypes, and .grad accumulates in FP32. Never call model.half() with AMP.

GradScaler and gradient accumulation share one optimizer step

Across accumulated micro-batches, hold one constant loss scale: run scaler.scale(micro_loss).backward() per micro-batch, and run unscale_, clip, step, update, and LR scheduler steps once per optimizer boundary (saving scaler.state_dict() in checkpoints).[9]

When micro-batches hold unequal active token counts, divide each micro-batch's summed token loss by the window's total active tokens rather than averaging per-micro-batch means:

unequal-token-accumulation.py
targets = (torch.tensor([0.0]), torch.tensor([2.0, 2.0, 2.0]))
total_tokens = sum(y.numel() for y in targets)

def accumulated_gradient(mode: str) -> float:
    w = torch.tensor(1.0, requires_grad=True)
    for y in targets:
        losses = (w - y).square()
        (losses.mean() / len(targets) if mode == "mean_of_means" else losses.sum() / total_tokens).backward()
    return w.grad.item()

w = torch.tensor(1.0, requires_grad=True)
(w - torch.cat(targets)).square().mean().backward()
print(f"full_batch={w.grad.item():.1f}, mean_of_means={accumulated_gradient('mean_of_means'):.1f}, "
      f"token_weighted={accumulated_gradient('token_weighted'):.1f}")
Output
full_batch=-1.0, mean_of_means=0.0, token_weighted=-1.0
At weight one, one target-zero token contributes gradient plus two, while three target-two tokens each contribute minus two. Their batch sums are plus two and minus six. Averaging the two batch means gives zero; dividing the combined sum by all four valid tokens gives minus one. Both final gradients use the same signed axis. In AMP, one scale is held through the window and one optimizer step follows accumulation.
Averaging micro-batch means gives `0.0`, while normalizing by all four active tokens recovers the exact `-1.0` full-batch gradient.

Account for memory before claiming savings

Ordinary AMP does not halve total memory: weights (4 B), gradients (4 B), and AdamW moments (8 B) stay FP32 (16 bytes/param, matching the FP32 master-weight recipe's 16 B/param), while only eligible saved activations halve from 4 B to 2 B (and FP32 ops still save FP32 tensors, inspectable via saved_tensors_hooks[11]).

ComponentPure FP32FP32 weights + AMPFP32 master-weight recipe
Weights + Gradients8 B (8N8N)8 B (8N8N, FP32)4 B 16-bit + 4 B FP32 master
AdamW moments (m,vm, v)8 B (8N8N)8 B (8N8N, FP32)8 B (8N8N, FP32)
Static model state16 B / param16 B / param16 B / param (+2 B if FP32 grad replaces 16-bit grad)
Eligible saved activations4 B / value2 B / value2 B / value

With 100M parameters (1.49 GiB static) and 800M saved activation values, halving activation bytes from 2.98 GiB to 1.49 GiB lowers total memory from 4.47 GiB to 2.98 GiB, a 33.3% reduction ((4.47 - 2.98) / 4.47), not 50%. Profile peak allocated memory on real steps,[12][1] and shard persistent FP32 state with or FSDP.[13][14]

An authored inventory uses 100 million parameters and 800 million chosen activation values. The FP32 and AMP bars share one GiB scale. Parameters, gradients and Adam moments stay at 0.37, 0.37 and 0.75 GiB. Activations shrink from 2.98 to 1.49 GiB, so the total drops from 4.47 to 2.98 GiB, a 33.3 percent reduction. A separate shared-scale payload comparison shows one 100-million-value gradient tensor at 0.37 GiB for FP32 and 0.19 GiB for BF16; these are logical tensor bytes.
Halving activation bytes cuts total memory by 33.3% while static FP32 state stays fixed. Gradient communication dtype is configured separately.

Distributed jobs add a communication dtype

Distributed reduction dtype (reduce_dtype in FSDP) is independent of compute_dtype.[15] Shipping a 100M-parameter gradient payload drops from 0.37 GiB in FP32 to 0.19 GiB in BF16 (50% less bandwidth), yet watch accumulation precision inside the collective: if three workers contribute [512, 3, -512], adding left-to-right in BF16 rounds 512 + 3 = 515 to 516, yielding 4 instead of 3. Keep the running sum in FP32 before storing the final reduced result, and always log compute_dtype, update_storage_dtype, and reduce_dtype separately.

Choose precision from controlled runs

Hold model, data, seeds, batch shape, evaluation, and hardware fixed when comparing recipes, recording TF32 flags and synchronizing warmed-up GPU timers.[16][17] Watch pure FP16 parameter storage stall at its initial MSE (0.00010000) while FP32 parameters with BF16 autocast track FP32 cleanly:

precision-training-comparison.py
def run_steps(mode: str, steps: int = 40) -> float:
    torch.manual_seed(0)
    x, target = torch.eye(4), torch.full((4, 4), 0.99)
    dtype = torch.float16 if mode == "pure_fp16" else torch.float32
    w = torch.nn.Parameter(torch.full((4, 4), 1.0, dtype=dtype))
    opt = torch.optim.SGD([w], lr=0.05)
    for _ in range(steps):
        opt.zero_grad()
        if mode == "amp_bf16":
            with torch.autocast("cpu", dtype=torch.bfloat16):
                loss = ((x @ w) - target).float().square().mean()
        else:
            loss = ((x.to(dtype) @ w) - target.to(dtype)).square().mean()
        loss.backward()
        opt.step()
    return ((x @ w.float()) - target).square().mean().item()

for mode in ("fp32", "amp_bf16", "pure_fp16"):
    print(f"{mode:<10} final_mse={run_steps(mode):.8f}")
Precision recipe training comparison
fp32       final_mse=0.00006056
amp_bf16   final_mse=0.00005917
pure_fp16  final_mse=0.00010000

RL can expose a BF16 train-inference mismatch

In RL fine-tuning, one inference stack generates while a training stack recomputes log-probabilities. Because BF16 ticks are 8x wider than FP16, minor kernel rounding differences can push nearby across a BF16 tick, shifting token probabilities enough to flip a sampled token under the same random draw. Qi et al. found scaled FP16 reduced this train-inference divergence across their tested RL stacks.[18]

compare-policy-rounding.py
def policy_gap(dtype: torch.dtype, first: float, second: float) -> float:
    p1 = torch.softmax(torch.tensor([first, 1.0]).to(dtype).float(), dim=0)[0]
    p2 = torch.softmax(torch.tensor([second, 1.0]).to(dtype).float(), dim=0)[0]
    return abs(p1.item() - p2.item())

for first, second in ((1.0038, 1.0040), (1.0004, 1.0006)):
    print(f"logits={first},{second}: FP16_gap={policy_gap(torch.float16, first, second):.7f}, "
          f"BF16_gap={policy_gap(torch.bfloat16, first, second):.7f}")
Output
logits=1.0038,1.004: FP16_gap=0.0000000, BF16_gap=0.0019531
logits=1.0004,1.0006: FP16_gap=0.0002441, BF16_gap=0.0000000
Two quantization examples share an axis for the first logit above one. Each interval stores its center value. For inputs 1.0038 and 1.0040, FP16 merges both at 1.00390625 while BF16 stores 1.0 and 1.0078125, giving probability gap 0.0019531. For inputs 1.0004 and 1.0006, FP16 stores 1.0 and 1.00097656 while BF16 merges at 1.0, giving gap 0.0002441. The second logit remains 1.0.
Crossing a BF16 boundary creates an 8x larger probability jump than FP16. Replay matched prefixes with fixed draws to measure train-vs-rollout divergence directly.

Evaluate FP8 after measuring the lower-precision path

On Hopper/Blackwell GPUs, FP8 halves operand bytes again via two complementary OCP formats:[19][20] E4M3 (max 448, no Inf, favored for forward activations/weights) and E5M2 (max 57,344, keeps Inf, favored for backward gradients).

FP8 recipeScaling mechanismTrade-off
Current scalingLive tensor amax in FP32Reduction overhead unless fused
Delayed scalingPredicted from amax historySudden spikes saturate before update
MXFP8 block scalingOne E8M0 power-of-two scale per 32 values[21]Tighter outlier isolation; needs native block kernels

Transformer Engine provides hybrid E4M3/E5M2 and MXFP8 recipes.[22][23] Watch for saturating conversion: overflowing 448 in E4M3 can clamp silently to 448 instead of NaN, so log saturation rates beside throughput and held-out accuracy.[19]

Side by side, 8-bit FP8 element layouts compare E4M3 (1 sign, 4 exponent, 3 fraction; max 448, no infinity) and E5M2 (1 sign, 5 exponent, 2 fraction; max 57,344, infinity encoded). On the right, MXFP8 groups 32 FP8 values per block with one shared E8M0 power-of-two scale.
FP8 splits forward (E4M3) and backward (E5M2); MXFP8 attaches one E8M0 power-of-two scale per 32-element block.

When a precision change goes wrong

  • Loss flatlines with finite gradients: Parameters are stored in 16-bit and swamping updates; check optimizer.param_groups dtypes.
  • FP16 trains slower or worse than FP32: Unscaled small gradients underflow; enable GradScaler and log skipped steps.
  • Erratic FP16 steps: Clipping happened before scaler.unscale_(optimizer); always unscale, then clip, then step.
  • Effective batch collapses: step()/update() ran inside gradient accumulation; move them to the optimizer boundary.
  • Scale keeps dropping: Persistent backoff signals oversized values; forward overflows cannot be fixed by smaller loss scales.
  • Memory fell <50% or network stayed high: Static FP32 state stays constant under AMP, and BF16 compute can still transmit FP32 gradients; verify reduce_dtype explicitly.
Check your understanding

Mastery Check

Check each question as you go, or answer all of them and check together. Score 75% or higher to complete this lesson.

0 of 10 answered
1.Which precision choice best matches a workload that needs FP32-like exponent range but can tolerate coarser mantissa resolution?
2.A backward kernel writes a gradient in FP16 before it reaches an FP32 accumulation buffer. With scaling off, the gradient is 2⁻²⁸ and the FP16 write gives zero. With a loss scale of 16,384, which sequence preserves the gradient and gives the clipper its original magnitude?
3.A precision check sends standalone values 5 × 10^-9 and 2 × 10^5 through FP16 and BF16 casts. Which range prediction is correct?
4.A scaled backward pass produces a nonfinite gradient in one parameter group owned by a single ordinary optimizer. What should its GradScaler step do?
5.With gradient accumulation over several microbatches, when should a GradScaler update and optimizer step occur?
6.A controlled precision run lowers peak memory from 9 GiB to 6 GiB. Which calculation gives the percentage of the original peak that the run freed?
7.Three workers use BF16 matrix operands. Their gradient contributions are 512, 3 and −512. The collective must add them from left to right. Each BF16 write rounds to nearest, ties to even. Which plan delivers the exact sum to the optimizer?
8.An RL policy earns less reward after deployment. You replay one token prefix from the same checkpoint, varying only the precision used to compute its logits. Both paths pick A if the draw is below P(A) and B otherwise. Each record lists (P(A), draw). Which pair shows that precision changed the sampled token?
9.What makes a mixed-precision result comparable across runs?
10.At an FP16 weight exactly 1.0, subtracting 0.0004 changes the stored value while adding 0.0004 rounds back to 1.0 under nearest-even. What explains the difference?

10 questions remaining.

References

Mixed Precision Training

Micikevicius, P., et al. · 2018

https://arxiv.org/abs/1710.03740

Automatic Mixed Precision package - torch.amp

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/2.14/amp.html

Improve Your Model's Performance with bfloat16

Google Cloud · 2026

https://docs.cloud.google.com/tpu/docs/bfloat16

Type Info

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/2.14/type_info.html

torch.nextafter

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/2.14/generated/torch.nextafter.html

Stochastic Rounding for LLM Training: Theory and Practice

Ozkara, K., Yu, T., & Park, Y. · 2025

https://arxiv.org/abs/2502.20566

A Study of BFLOAT16 for Deep Learning Training.

Kalamkar, D., et al. · 2019

https://arxiv.org/abs/1905.12322

GradScaler implementation (PyTorch 2.15.0)

PyTorch Contributors · 2026

https://github.com/pytorch/pytorch/blob/v2.15.0/torch/amp/grad_scaler.py

Automatic Mixed Precision Examples

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/stable/notes/amp_examples.html

GradScaler implementation (PyTorch 2.14.0)

PyTorch Contributors · 2026

https://github.com/pytorch/pytorch/blob/v2.14.0/torch/amp/grad_scaler.py

Autograd: saved_tensors_hooks

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/2.14/autograd.html#torch.autograd.graph.saved_tensors_hooks

Reducing Activation Recomputation in Large Transformer Models

Korthikanti, V. A., et al. · 2022 · MLSys 2023

https://arxiv.org/abs/2205.05198

ZeRO: Memory Optimizations Toward Training Trillion Parameter Models.

Rajbhandari, S., et al. · 2020 · SC 2020

https://arxiv.org/abs/1910.02054

PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel.

Zhao, Y., et al. · 2023 · VLDB 2023

https://arxiv.org/abs/2304.11277

FullyShardedDataParallel

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/stable/fsdp.html

Numerical Accuracy

PyTorch Contributors · 2026 · Official PyTorch Documentation

https://docs.pytorch.org/docs/stable/notes/numerical_accuracy.html

CUDA semantics

PyTorch Contributors · 2026

https://docs.pytorch.org/docs/2.14/notes/cuda.html

Defeating the Training-Inference Mismatch via FP16

Qi, P., Liu, Z., Zhou, X., Pang, T., Du, C., Lee, W. S., & Lin, M. · 2025

https://arxiv.org/abs/2510.26788

OCP 8-bit Floating Point Specification (OFP8), Revision 1.0

Open Compute Project · 2023

https://www.opencompute.org/documents/ocp-8-bit-floating-point-specification-ofp8-revision-1-0-2023-12-01-pdf-1

FP8 Formats for Deep Learning.

Micikevicius, P., et al. · 2022

https://arxiv.org/abs/2209.05433

OCP Microscaling Formats (MX) Specification, Version 1.0

Open Compute Project · 2023

https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf

Using FP8 and FP4 with Transformer Engine

NVIDIA · 2026

https://docs.nvidia.com/deeplearning/transformer-engine/examples/fp8_primer.html

Transformer Engine recipe API

NVIDIA · 2026

https://docs.nvidia.com/deeplearning/transformer-engine/api/common.html

Discussion

Questions and insights from fellow learners.

Discussion loads when you reach this section.