I’ve built Mojolearn, an open-source machine-learning library written in Mojo, with a Python API.
In identical mode, Mojolearn returns the same bits on Apple, NVIDIA and AMD GPUs.
For AMD developers, the main application is moving machine-learning workloads between vendors while preserving numerical results. Supported training runs can also resume from a checkpoint on another vendor’s GPU and follow the same numerical trajectory.
The library covers classical ML and neural training and inference, including gradient boosting, random forests, clustering and transformers. Its kernels control reduction order, rounding and elementary functions to preserve identical results across hardware. The identity contract applies within the same release.
The project includes verification tools and performance comparisons showing both wins and losses. I’d welcome feedback from AMD developers working on reproducibility, model portability or GPU numerical computing, and consideration for a community feature.
Hello, awesome work, resuming a checkpoint on another vendor’s GPU on the same trajectory is a really useful contract. One thing I found: the AMD opponent rows in bench/OPPONENT_REFERENCE.md use torch 2.6.0 on a ROCm 6.4.1 userland, even on hosts running ROCm 7.2.4, while ROCm is now at 10.1 with PyTorch 2.14 wheels for gfx942. Rerunning those rows on the current stack would make the AMD wins and losses current. Also worth knowing for anyone here: the AMD wheel carries gfx942 only, so Radeon, Strix Halo and MI355X need a source build for now.