Hi everyone! I’m Andrew, the creator and maintainer of Mojolearn—a free, open-source machine learning library implemented in Mojo with Python bindings (pip install mojolearn).
What Makes It Different?
In identical mode, Mojolearn returns the exact same bits across Apple GPUs, NVIDIA GPUs, AMD GPUs, Apple CPUs, and x86-64 CPUs when using the same release, inputs, and model settings.
The primary motivation is to make training runs and predictions fully reproducible when switching or changing hardware. To prove this at scale, I trained two 162-million-parameter GPT-3 Small-shaped models across different hardware pathways and achieved bitwise identity verified across all 5,000 optimizer steps.
Core Features
-
Broad Scope: Covers neural training and inference and classical machine learning including tree ensembles.
-
Custom Modeling: Exposes composable operations and automatic differentiation for building custom models and algorithms.
-
Built-In Verifier: Includes a verification tool that compares results on your machine with recorded reference results.
-
Apple-Only Fast Mode: Features a performance mode for MacBooks that drives heavy acceleration for specific algorithms. Training oblivious trees is ~3x faster on Mojolearn than CatBoost on MacBooks on certain workloads.
Current Status
Mojolearn is currently in alpha. I am looking for independent users to:
-
Try out the examples and verifier.
-
Report installation issues or unexpected results.
-
Share where hardware-dependent numerical differences currently affect their workflows.
The library is free to use under the Apache 2.0 license.
Links & Resources
-
Website & Benchmarks: https://mojolearn.org/
-
Verification Guide: mojolearn/docs/VERIFY.md at main · mojolearn/mojolearn · GitHub