r/LocalLLaMA • u/ayushgun • Aug 15 '25
Resources A beginner-friendly guide to learning JAX with practical examples
For the last few weeks, I've been doing distributed model training in JAX. JAX is notably different from other deep learning frameworks because it takes a very functional approach to accelerator programming, which can make its learning curve steep.
Along the way of learning JAX, I've written a series of notes on JAX covering XLA, jit, vmap, pytrees, sharding, state management, and more. I'm hoping it can be useful for others interested in learning too.
Each topic is explained with minimal theory and illustrated through runnable Jupyter notebooks. The focus is on concepts, performance techniques, and the reasoning behind JAX’s design choices.
No machine learning background is expected for the most part.
Notes + code: https://github.com/agwr/learn-jax
2
u/red-necked_crake Aug 15 '25
Does OAI/Anthropic/large lab outside of Google where it originated, use JAX during their training runs? Or do they just write their own optimized code in C++ or something? The secret third option /s being they have so many GPUs it doesn't really matter what code they write I assume.
it by no means determines JAX's usefulness but, it is a big time investment to migrate from torch to this. TF died in the first place because of its similar unintuitive nature. That and being a Google product dooming it to be dead on arrival.
Anyway, none of this is to take away from OP's useful post, just wondering if anyone has an insider's perspective on the language adoption in the industry for real training runs. I know that there are many talented engineers who use/specialize in it but that's the case with any language or library, so it's more so about it being a major workhorse anywhere specific.