PyTorch ships a JAX-style stateless RNG: SM-independent and free of GPU fingerprinting

ezyang · x · 2026-11-17

PyTorch core dev ezyang highlights the new stateless RNG API: ideal when you need careful management of randomness, and SM-independent, so no more fingerprinting GPU types. He recounts the history — the upstream issue was never fixed, leading to many bodgy userland workarounds — until @giffmana pushed attention to stateless RNG and jbschlosser implemented the API based on JAX's design. Worth a try.

Related event: PyTorch Ships Stateless RNG API to Fix Reproducibility Woes(2 posts)→

Original post →

More from Research

Research channel →