A training checkpoint must preserve the model state that the optimizer was updating. The dtype used for a forward pass does not necessarily identify that state. A mixed-precision system can keep higher-precision parameters for updates while creating lower-precision representations for matrix multiplications. Exporting the latter can discard information even when the checkpoint loads successfully.

Pin the implementation first. In the PyTorch 2.9 FSDP 1 setup in the question, the model starts with fp32 parameters and sets bf16 as the compute parameter dtype. The versioned MixedPrecision documentation distinguishes forward/backward dtype from the full-precision sharded parameters outside those phases and the model checkpoint representation. The unversioned FSDP reference is useful for navigation, but the versioned contract is the one used in this example. Capturing a temporary bf16 tensor is not equivalent to using the supported state-dict path for the logical fp32 parameters.

Consider a hypothetical fp32 weight near 1.0001. Rounding it to bf16 near 1 produces 1.0. Converting that rounded value back into fp32 storage produces 1.0 again, rather than recovering 1.0001. Bf16 has a wide exponent range, which helps represent large and small magnitudes, but fewer significant bits than fp32. Small differences can matter to later optimization even if one inference result appears unchanged.

Keep two artifacts distinct. A serving export may deliberately round parameters to bf16 or another supported format, with its own quality and compatibility checks. A resumable training checkpoint needs the logical model parameters and the optimizer state associated with them, plus scheduler state, scaler state when present, random state and data progress required by the recipe. Restoring old Adam moments next to rounded replacement weights does not restore the original numerical state. It can be a deliberate new training phase, but should not be described as transparent continuation.

FSDP 2 uses a different API and representation. In PyTorch 2.9 MixedPrecisionPolicy, param_dtype controls unsharded compute/all-gather representation, while the optimizer uses sharded parameters in their original dtype. If the original parameters are fp32, setting bf16 compute does not erase that distinction. If the model was intentionally initialized or converted to bf16 before sharding, the original dtype may already be bf16. FSDP does not manufacture lost fp32 precision merely because the user calls the state “master weights.” Inspect the actual parameter and optimizer representation instead of assuming every FSDP recipe contains the same copies.

For a small continuation test, branch immediately after one completed optimizer update. Save a reference through the implementation’s supported model and optimizer checkpoint APIs, and save the proposed custom export separately. Record parameter names, logical shapes, dtypes, sharding metadata and checksums at a defined synchronization boundary. Restore each artifact into a matching recipe, load the same next batch and compare logical parameters before the next update, gradients, optimizer counters/moments and parameter deltas afterward.

A difference before the next update identifies serialization or conversion loss before kernel nondeterminism complicates the comparison. A tiny bf16 rounding fixture can expose that category without running a distributed model. A real FSDP continuation test must still run on the selected framework/version and process layout. This repository does not contain that training runtime, so the distributed test here is a proposed verification procedure, not a reported execution result.

Supported sharded checkpoints can avoid gathering a full model onto one device, but every required shard and its metadata must belong to one completed checkpoint. Exporting a convenient tensor view while forward or an optimizer step is mutating it creates an additional consistency problem. Coordinate the save boundary and verify completion before advertising a resumable artifact. A worker dying during a checkpoint tests completeness, while optimizer-state mapping after model reordering tests state identity. This question tests whether complete, correctly mapped files preserve the numerical representation the training run actually used.