Stanford’s Marin foundation model: The first fully open model developed using JAX- Google Developers Blog

This post details the Marin project's use of JAX and the custom Levanter framework to achieve end-to-end reproducibility for foundation models. It highlights specific engineering challenges and solutions: eliminating Python interpreter overhead with `@jax.jit` and fused operations, using `jax.value_and_grad` and gradient checkpointing for efficiency, and employing Pallas Splash Attention. It also covers managing large-scale parallelism with SPMD and Haliax for named tensors, building resilient compute clusters with Google Cloud TPU Multislice and Ray, and ensuring bitwise determinism through JAX's PRNGs and Tensorstore for data loading. The training process itself, including hardware migrations and adaptive data mixtures, is presented as a demonstration of the stack's robustness.
More from the JAX Model Evaluation Metrics trail
- Accelerating Spatio-Temporal Attention for Video Diffusion on TPUs- Google Developers Blog
- Reproducing OLMo 3 7B Pre-training in MaxText: case study of large scale training on TPUs- Google Developers Blog
- Decoding cosmic signals with deep learning and Keras- Google Developers Blog
- Enterprise-Grade Precision for Long-Context Multimodal Embedding Inference on Cloud TPU- Google Developers Blog
- HeyGen x Google Cloud: Bringing Avatar IV to TPUs- Google Developers Blog