---
title: "Deep Learning with JAX"
id: "12515"
type: "page"
slug: "deeplearningwithjax"
published_at: "2026-07-19T17:18:02+00:00"
modified_at: "2026-07-19T17:35:24+00:00"
url: "https://preppers-paradise.com/library/deeplearningwithjax/"
markdown_url: "https://preppers-paradise.com/library/deeplearningwithjax.md"
excerpt: "This book provides a practical guide to building and optimizing deep learning models using the JAX library. Readers will learn to leverage its core capabilities such as automatic differentiation, JIT compilation, auto-vectorization, and parallelization for high-performance computing. The content als"
taxonomy_category:
  - "AI &amp; Machine Learning"
  - "Books"
  - "Free Teaser"
taxonomy_post_tag:
  - "automatic differentiation"
  - "deep learning"
  - "flax"
  - "functional programming"
  - "high-performance computing"
  - "jax"
  - "machine learning"
  - "neural networks"
  - "parallel computing"
  - "python"
---

# Deep Learning with JAX

This book provides a practical guide to building and optimizing deep learning models using the JAX library. Readers will learn to leverage its core capabilities such as automatic differentiation, JIT compilation, auto-vectorization, and parallelization for high-performance computing. The content also covers essential topics like array manipulation, random number generation, handling complex data structures, and integrating with higher-level neural network libraries within the JAX ecosystem to develop efficient and scalable machine learning applications.

This page is free — overview and chapter list only.
Full book: $2.99 USDC · Per chapter: $0.25 USDC
[Buy / open complete book](/library/complete/deeplearningwithjax/) · [Complete book Markdown](/library/complete/deeplearningwithjax.md)

## Chapters

1. [Deep Learning With Jax](/library/deeplearningwithjax/01-deep-learning-with-jax/) (Free teaser)
1. [About The Cover Illustration](/library/deeplearningwithjax/02-about-the-cover-illustration/) ($0.25)
1. [First Steps](/library/deeplearningwithjax/03-first-steps/) ($0.25)
1. [When And Why To Use Jax](/library/deeplearningwithjax/04-when-and-why-to-use-jax/) ($0.25)
1. [Listing 21 Loading The Dataset Import Tensorflow As Tf Impor](/library/deeplearningwithjax/05-listing-21-loading-the-dataset-import-tensorflow-as-tf-impor/) ($0.25)
1. [Listing 22 Showing Samples From The Dataset](/library/deeplearningwithjax/06-listing-22-showing-samples-from-the-dataset/) ($0.25)
1. [Gradient Descent Procedure](/library/deeplearningwithjax/07-gradient-descent-procedure/) ($0.25)
1. [263 Gradient Update Step](/library/deeplearningwithjax/08-263-gradient-update-step/) ($0.25)
1. [Listing 215 Saving And Loading Model Parameters](/library/deeplearningwithjax/09-listing-215-saving-and-loading-model-parameters/) ($0.25)
1. [Applying The Filter Kernel To An Image](/library/deeplearningwithjax/10-applying-the-filter-kernel-to-an-image/) ($0.25)
1. [Jax](/library/deeplearningwithjax/11-jax/) ($0.25)
1. [Jax 2](/library/deeplearningwithjax/12-jax-2/) ($0.25)
1. [Listing 410 Differentiating With Respect To Dicts](/library/deeplearningwithjax/13-listing-410-differentiating-with-respect-to-dicts/) ($0.25)
1. [Returning Auxiliary Data From A Function](/library/deeplearningwithjax/14-returning-auxiliary-data-from-a-function/) ($0.25)
1. [Listing 411 Returning Auxiliary Data From A Function](/library/deeplearningwithjax/15-listing-411-returning-auxiliary-data-from-a-function/) ($0.25)
1. [Obtaining Both The Gradient And Value Of The Function](/library/deeplearningwithjax/16-obtaining-both-the-gradient-and-value-of-the-function/) ($0.25)
1. [Per Sample Gradients](/library/deeplearningwithjax/17-per-sample-gradients/) ($0.25)
1. [Stopping Gradients](/library/deeplearningwithjax/18-stopping-gradients/) ($0.25)
1. [Listing 413 Stopping Gradient Flow](/library/deeplearningwithjax/19-listing-413-stopping-gradient-flow/) ($0.25)
1. [Listing 414 Finding Higher Order Derivatives](/library/deeplearningwithjax/20-listing-414-finding-higher-order-derivatives/) ($0.25)
1. [Listing 415 Drawing Higher Order Derivatives](/library/deeplearningwithjax/21-listing-415-drawing-higher-order-derivatives/) ($0.25)
1. [Jacobian Matrix](/library/deeplearningwithjax/22-jacobian-matrix/) ($0.25)
1. [Hessian Matrix](/library/deeplearningwithjax/23-hessian-matrix/) ($0.25)
1. [Listing 417 Calculating The Hessian Of A Function](/library/deeplearningwithjax/24-listing-417-calculating-the-hessian-of-a-function/) ($0.25)
1. [432 Forward Mode And Jvp](/library/deeplearningwithjax/25-432-forward-mode-and-jvp/) ($0.25)
1. [Listing 418 Checking Manual Forward Mode Calculations](/library/deeplearningwithjax/26-listing-418-checking-manual-forward-mode-calculations/) ($0.25)
1. [Directional Derivative And Jvp](/library/deeplearningwithjax/27-directional-derivative-and-jvp/) ($0.25)
1. [Listing 419 Calculating Jvp](/library/deeplearningwithjax/28-listing-419-calculating-jvp/) ($0.25)
1. [Listing 420 Recovering Jacobian Columns With Jvp](/library/deeplearningwithjax/29-listing-420-recovering-jacobian-columns-with-jvp/) ($0.25)
1. [Listing 421 Checking Manual Forward Mode Calculations With J](/library/deeplearningwithjax/30-listing-421-checking-manual-forward-mode-calculations-with-j/) ($0.25)
1. [433 Reverse Mode And Vjp](/library/deeplearningwithjax/31-433-reverse-mode-and-vjp/) ($0.25)
1. [Reverse Mode Generalization And Vjp](/library/deeplearningwithjax/32-reverse-mode-generalization-and-vjp/) ($0.25)
1. [Listing 424 Recovering Jacobian Rows With Vjp](/library/deeplearningwithjax/33-listing-424-recovering-jacobian-rows-with-vjp/) ($0.25)
1. [Listing 51 Selu Activation Function](/library/deeplearningwithjax/34-listing-51-selu-activation-function/) ($0.25)
1. [511 Using Jit Compilation](/library/deeplearningwithjax/35-511-using-jit-compilation/) ($0.25)
1. [Jit And Aot](/library/deeplearningwithjax/36-jit-and-aot/) ($0.25)
1. [Compiling And Running On Specific Hardware](/library/deeplearningwithjax/37-compiling-and-running-on-specific-hardware/) ($0.25)
1. [Using Static Arguments](/library/deeplearningwithjax/38-using-static-arguments/) ($0.25)
1. [Listing 58 Using Functoolspartial With Jit As A Decorator](/library/deeplearningwithjax/39-listing-58-using-functoolspartial-with-jit-as-a-decorator/) ($0.25)
1. [Optimization Related Arguments](/library/deeplearningwithjax/40-optimization-related-arguments/) ($0.25)
1. [Listing 59 Compiling An Impure Function](/library/deeplearningwithjax/41-listing-59-compiling-an-impure-function/) ($0.25)
1. [521 Jaxpr An Intermediate Representation For Jax Programs](/library/deeplearningwithjax/42-521-jaxpr-an-intermediate-representation-for-jax-programs/) ($0.25)
1. [Listing 510 Using Jaxmakejaxpr](/library/deeplearningwithjax/43-listing-510-using-jaxmakejaxpr/) ($0.25)
1. [Tracing](/library/deeplearningwithjax/44-tracing/) ($0.25)
1. [Listing 516 Replacing For Loop With A Structured Control Flo](/library/deeplearningwithjax/45-listing-516-replacing-for-loop-with-a-structured-control-flo/) ($0.25)
1. [Listing 517 Replacing An If Statement With A Structured Cont](/library/deeplearningwithjax/46-listing-517-replacing-an-if-statement-with-a-structured-cont/) ($0.25)
1. [Xla Origins And Architecture](/library/deeplearningwithjax/47-xla-origins-and-architecture/) ($0.25)
1. [Openxla](/library/deeplearningwithjax/48-openxla/) ($0.25)
1. [Listing 714 Using The Inaxes Parameter For Broadcasting](/library/deeplearningwithjax/49-listing-714-using-the-inaxes-parameter-for-broadcasting/) ($0.25)
1. [Communicating Between Processes](/library/deeplearningwithjax/50-communicating-between-processes/) ($0.25)
1. [Listing 728 Data Tensor Shapes](/library/deeplearningwithjax/51-listing-728-data-tensor-shapes/) ($0.25)
1. [In The Final Step We Can Run Our Program](/library/deeplearningwithjax/52-in-the-final-step-we-can-run-our-program/) ($0.25)
1. [Listing 89 Different Devices](/library/deeplearningwithjax/53-listing-89-different-devices/) ($0.25)
1. [Listing 92 Samples From The Dataset](/library/deeplearningwithjax/54-listing-92-samples-from-the-dataset/) ($0.25)
1. [Listing 99 Generating Random Values In Numpy From Numpy Impo](/library/deeplearningwithjax/55-listing-99-generating-random-values-in-numpy-from-numpy-impo/) ($0.25)
1. [Listing 912 Looking At The Prng State For The Legacy Approac](/library/deeplearningwithjax/56-listing-912-looking-at-the-prng-state-for-the-legacy-approac/) ($0.25)
1. [Listing 915 Looking At The Key Key Randomprngkey42 Typekey J](/library/deeplearningwithjax/57-listing-915-looking-at-the-key-key-randomprngkey42-typekey-j/) ($0.25)
1. [Listing 917 Generating 100 Keys Key Randomprngkey42 Key Subk](/library/deeplearningwithjax/58-listing-917-generating-100-keys-key-randomprngkey42-key-subk/) ($0.25)
1. [121 Deep Learning Ecosystem](/library/deeplearningwithjax/59-121-deep-learning-ecosystem/) ($0.25)
1. [C1 Setting Up A Cloud Tpu Project](/library/deeplearningwithjax/60-c1-setting-up-a-cloud-tpu-project/) ($0.25)
1. [C21 Running And Deleting A Cloud Tpu Node](/library/deeplearningwithjax/61-c21-running-and-deleting-a-cloud-tpu-node/) ($0.25)
1. [C22 Preparing A Cloud Tpu Node](/library/deeplearningwithjax/62-c22-preparing-a-cloud-tpu-node/) ($0.25)
1. [C23 Connecting To A Cloud Tpu Node From A Colab Notebook](/library/deeplearningwithjax/63-c23-connecting-to-a-cloud-tpu-node-from-a-colab-notebook/) ($0.25)
1. [C3 Resources](/library/deeplearningwithjax/64-c3-resources/) ($0.25)
1. [D11 Working With Named Axes](/library/deeplearningwithjax/65-d11-working-with-named-axes/) ($0.25)
1. [Named Axis Programming And Axisname In Vmappmap](/library/deeplearningwithjax/66-named-axis-programming-and-axisname-in-vmappmap/) ($0.25)
1. [Einsum](/library/deeplearningwithjax/67-einsum/) ($0.25)
1. [D12 Parallelism And Hardware Meshes](/library/deeplearningwithjax/68-d12-parallelism-and-hardware-meshes/) ($0.25)
1. [D21 Basics Of Pjit](/library/deeplearningwithjax/69-d21-basics-of-pjit/) ($0.25)
1. [Listing D13 Adding Input Partitioning For Both Arguments](/library/deeplearningwithjax/70-listing-d13-adding-input-partitioning-for-both-arguments/) ($0.25)
1. [D22 Mlp Example With Pjit](/library/deeplearningwithjax/71-d22-mlp-example-with-pjit/) ($0.25)
1. [Related Manning Titles](/library/deeplearningwithjax/72-related-manning-titles/) ($0.25)
1. [Deep Learning With Jax 2](/library/deeplearningwithjax/73-deep-learning-with-jax-2/) ($0.25)
1. [Whats Inside](/library/deeplearningwithjax/74-whats-inside/) ($0.25)
