Autodidax: JAX core from scratch — JAX documentation
Ever want to learn how JAX works, but the implementation seemed impenetrable? Well, you’re in luck! By reading this tutorial, you’ll learn every big idea in JAX’s core system. You’ll even get clued into our weird jargon! This is a work-in-progress draft. There are some important ingredients missing, still to come in parts 5 and 6 (and more?). There are also some simplifications here that we haven’t yet applied to the main system, but we will. We want to transform functions that look like this: Think of functions like sin and the arithmetic operations underlying the infix operators (mul, add, and neg) as primitive operations, meaning atomic units of processing rather than compositions. “Transform” means “interpret differently.” Instead of standard interpretation where we apply primitive operations to numerical inputs to produce numerical outputs, we want to override primitive application and let different values flow through our program. For example, we might want to replace the applica
Autodidax: JAX core from scratch# Ever want to learn how JAX works, but the implementation seemed impenetrable? Well, you’re in luck! By reading this tutorial, you’ll learn every big idea in JAX’s core system. You’ll even get clued into our weird jargon! This is a work-in-progress draft. There are some important ingredients missing, still to come in parts 5 and 6 (and more?). There are also some simplifications here that we haven’t yet applied to the main system, but we will. Part 1: Transformations as interpreters: standard evaluation, jvp, and vmap# We want to transform functions that…
saved by
related reading
- How to think in JAX — JAX documentationdocs.jax.dev
- Matrix_Calc_for_DL.pdfsamfinlayson.com
- Differentiable Programming from Scratchthenumb.at
- how I think when I think about programming - alice mazalicemaz.com
- Just-in-time compilation — JAX documentationjax.readthedocs.io
- A half-hour to learn Rustfasterthanli.me
- Build your own Reactpomb.us
- 🔪 JAX - The Sharp Bits 🔪 — JAX documentationjax.readthedocs.io
- Build a Transformer in JAX from scratch: how to write and train your own models | AI Summertheaisummer.com
- Quickstart: How to think in JAX — JAX documentationjax.readthedocs.io
- GitHub - jax-ml/jax: Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and moregithub.com
- Thinking like Transformersrush.github.io