Multi-backend Keras
Actively maintained. Last release 2 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install keras-nightlyKeras 3: Deep Learning for Humans
Keras 3 is a multi-backend deep learning framework, with support for JAX, TensorFlow, PyTorch, and OpenVINO (for inference-only). Effortlessly build and train models for computer vision, natural language processing, audio processing, timeseries forecasting, recommender systems, etc.
- Accelerated model development: Ship deep learning solutions faster thanks to the high-level UX of Keras and the availability of easy-to-debug runtimes like PyTorch or JAX eager execution.
- State-of-the-art performance: By picking the backend that is the fastest for your model architecture (often JAX!), leverage speedups ranging from 20% to 350% compared to other frameworks. Benchmark here.
- Datacenter-scale training: Scale confidently from your laptop to large clusters of GPUs or TPUs.
Join nearly three million developers, from burgeoning startups to global enterprises, in harnessing the power of Keras 3.
Installation
Install with pip
Keras 3 is available on PyPI as keras. Note that Keras 2 remains available as the tf-keras package.
- Install
keras:
pip install keras --upgrade
- Install backend package(s).
To use keras, you should also install the backend of choice: tensorflow, jax, or torch. Additionally,
The openvino backend is available with support for model inference only.
- (Optional) Install remote file access support.
To save to and load from Google Cloud Storage (gs:// paths) without TensorFlow, install the gcs extra:
pip install "keras[gcs]"
Local installation
Minimal installation
Keras 3 is compatible with Linux and macOS systems. For Windows users, we recommend using WSL2 to run Keras. To install a local development version:
- Install dependencies:
pip install -r requirements.txt
- Run installation command from the root directory.
python pip_build.py --install
- Run API generation script when creating PRs that update
keras_exportpublic APIs: