$ the-wire · showcase
Dynamo test isolation fixed, float8 rounding reworked
By RepoJournal · Filed · About PyTorch · Composed from the cited sources · methodology
pytorch/pytorch lands a test-infra state-leak fix that takes single-process `pytest test/dynamo` from 63 failures to clean, alongside three float8/float64 numeric changes that alter conversion results for extensions.
[Dynamo] Fix state pollution in test infra and config restore (#191930) pytorch/pytorch
Shared Dynamo test infra leaked config overrides, repro-script codegen state, and import-time device-type setup across tests in one process, so `pytest test/dynamo` reported 63 failures that all passed standalone. The fix snapshots raw config overrides in the minifier tests instead of re-assigning values and only serializes callables into repro scripts when they can be re-imported.
Round float64 to float16, bfloat16 and float8 once in default conversions (#204075) pytorch/pytorch
float64 now rounds to float16, bfloat16 and the float8 dtypes once in the default conversions, covering copies, Scalar conversions and TensorIterator casts (including jiterated kernels) on CPU and CUDA as well as complex32 and Inductor CPU kernels. The PR is marked BC-breaking for numerics, so recorded outputs and golden tests that cross those dtypes can shift.
Fix float32 to float8_e8m0fnu rounding of subnormals (#204208) pytorch/pytorch
Conversions to float8_e8m0fnu now round values with magnitude in (2^-127, 1.5·2^-127) to 2^-127 instead of 2^-126. The conversion is inline in a header-only API, so extensions pick up the new numerics when they are rebuilt.
Declare has_denorm of the float8 numeric_limits as a float_denorm_style (#204209) pytorch/pytorch
Luca Wehrstedt also changed `std::numeric_limits<c10::Float8_*>::has_denorm` from `bool` to `std::float_denorm_style`, matching float, Half and BFloat16, with no deprecation period. C++ in extensions compiled against those headers needs adjusting.
[MPS] Use MPP and a decode kernel for MXFP8 and NVFP4 _scaled_mm_v2 (#205759) pytorch/pytorch
The block-scaled _scaled_mm_v2 kernels ran the simdgroup MMA loop over 32x32 tiles regardless of shape, wasting most of the tile for single-token decode. The new MXFP8 path on Metal 4.1 hands e4m3 operands to MPP matmul2d with a tensor_blockwise ue8m0 scale plane so MPP applies block scales itself.
Use short diagnostic function names in Arm GNU builds (#25423) pytorch/executorch
Elsewhere: Executorch sets the existing `ET_USE_BUILTIN_FUNCTION_NAME=0` switch in the Arm GNU toolchain after GCC 15.2 diagnostics grew read-only data by 38,600 bytes and broke the U55 portable runner link on DTCM.
Action items