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
- Key concepts — JAX documentationjax.readthedocs.io
- Quickstart: How to think in JAX — JAX documentationjax.readthedocs.io
- Why You Should (or Shouldn't) be Using Google's JAX in 2023assemblyai.com
- GitHub - jax-ml/jax: Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and moregithub.com
- Just-in-time compilation — JAX documentationjax.readthedocs.io
- 🔪 JAX - The Sharp Bits 🔪 — JAX documentationjax.readthedocs.io
- Matrix_Calc_for_DL.pdfsamfinlayson.com
- Differentiable Programming from Scratchthenumb.at
- Why You Should (or Shouldn't) be Using Google's JAX in 2023assemblyai.com
- Build a Transformer in JAX from scratch: how to write and train your own models | AI Summertheaisummer.com
- Frequently asked questions (FAQ) — JAX documentationjax.readthedocs.io