Backends
Keras backends: JAX, TensorFlow, PyTorch
Keras 3 is a multi-backend framework. The same Keras model can run on JAX, TensorFlow or PyTorch (plus OpenVINO for inference), and you choose which engine does the numerical work.
What "backend" means
Keras provides the modelling API; the backend provides tensors, gradients and hardware acceleration. Keras translates your model into operations the chosen backend runs.
Choosing one
- JAX — often the fastest for many architectures.
- TensorFlow — a mature deployment ecosystem; drop-in for tf.keras.
- PyTorch — flexible and research-friendly.
export KERAS_BACKEND="tensorflow" # jax | tensorflow | torch
Set the backend before importing Keras. The big win: you avoid framework
lock-in — keep your Keras code and switch the engine underneath. See
Keras vs TensorFlow.
Want the source? Use the get-it section — it stays on-page and links to the official GitHub repository.