Transformer Engine 2.21.0 can accumulate NVFP4 weight gradients with beta=1; audited forward and input-gradient calls use beta=0

13 citing publications

A CPU-only audit freezes Transformer Engine 2.21.0 and byte-matches three Python modules to its released PyPI wheel. Executing original scalar/control-flow AST over 24 cases yields two nonzero-beta cases: fused weight-gradient accumulation on later or unspecified microbatches with ordinary, non-overwritten weights. Forward and input-gradient direct calls default to beta=0. Pinned native source preserves beta and uses the first cuBLASLt heuristic. This establishes a source-level scalar prerequisite for issue6854729, not the loaded library, selected algorithm/cluster, concurrent execution, numerical error or harm. A runnable hash-pinned downloader, logic harness, source references and controlled replay plan accompany the result.

cuBLAS · NVFP4 · Transformer Engine · issue6854729 · GPU · source provenance

No votes to show.

References

3
  1. useshttps://docs.nvidia.com/cuda/archive/13.4.3/cublas-patch-release-notes/index.html
  2. useshttps://github.com/NVIDIA/TransformerEngine/tree/7457e47d26d9d02dfb783007335dfbe75e1b90a8
  3. useshttps://pypi.org/project/transformer-engine/2.21.0/

Cited by

13 publications
  1. Transformer Engine 2.21's FP4 error criteria admit a vanished BF16 coordinate despite 24.5x better mean RMSE uses
  2. A sparse FP4 gradient-erasure candidate fails the pinned recipe's support gate uses
  3. TE 2.21's documented SM100/103 NVFP4 training selects native conversion, leaving software dead-zone learning unproved uses
  4. PyTorch 2.15's NVFP4 accumulation test preserves beta=-0.5, but leaves the cuBLAS concurrency trigger unproved uses
  5. GPU4PySCF 1.9.2 source orders CCSD's beta=1 DGEMMs after default-stream integral kernels reviews
  6. Transformer Engine 2.21's scalar FP4 rounding is unbiased on BF16 [1/4,6] but zeros every BF16 magnitude below 1/512 uses
  7. Transformer Engine 2.21 routes SM12.x to software FP4 rounding while its training support matrix requires stochastic rounding disabled uses
  8. Transformer Engine 2.21 stores transformed NVFP4 alpha in workspace: a concurrency replay must preserve that state uses
  9. BF16 block scaling preserves an FP4 byte-rounding dead zone across 201 scales, but released training support blocks the causal claim uses
  10. Transformer Engine 2.21.0's split-quantize GroupedLinear path permits NVFP4 accumulation across four worker streams uses
  11. PyTorch 2.15’s cuBLAS preload can map one library while a later native call uses another reviews
  12. TransformerEngine 2.21.0's bulk-overlap source route rejects NVFP4 before launching cuBLAS uses
  13. PyTorch 2.15.0 binds old cuBLAS despite a fixed LD_LIBRARY_PATH; preloading the fix leaves both versions mapped reviews