Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To Look Attractive
🚀 Keras 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 | ⏳ Time Series Forecasting | ⭐ Recommender Systems
🔥 Why Choose Keras 3?
✅ Accelerated Model Development – Ship deep learning solutions faster with an intuitive high-level API.
✅ State-of-the-Art Performance – Pick the fastest backend for your architecture (often JAX! 🚀). [🔗 Benchmark Here](https://keras.io/getting_started/benchmarks/)
✅ Datacenter-Scale Training – Seamlessly scale from laptop to large GPU/TPU clusters.
Join nearly three million developers 🌎—from startups to global enterprises—in harnessing the power of Keras 3.
📥 Installation
🔹 Install with pip
Keras 3 is available on PyPI as
keras
. (Keras 2 remains available astf-keras
.)1️⃣ Install Keras:
2️⃣ Install Backend Package(s):
To use
keras
, install at least one backend:tensorflow
,jax
, ortorch
.🔹 TensorFlow is required for some features like preprocessing layers and
tf.data
pipelines.💻 Local Installation
🏗️ Minimal Installation
Keras 3 is compatible with Linux & macOS.
🪟 Windows users: Use WSL2 for best support.
📌 Steps to install a local development version:
1️⃣ Install dependencies:
2️⃣ Run installation command:
3️⃣ Run API generation script when updating public APIs:
⚡ Adding GPU Support
The
requirements.txt
installs CPU-only versions of TensorFlow, JAX, and PyTorch.For GPU support, use
requirements-{backend}-cuda.txt
files.Example: Setting up a JAX GPU environment with
conda
:🔧 Configuring Your Backend
🛠️ Set the backend using an environment variable or by editing
~/.keras/keras.json
.Available backends:
"tensorflow"
,"jax"
,"torch"
,"openvino"
📌 Example: Setting JAX as the backend
📌 In Google Colab:
🚨 Note: The backend must be configured before importing
keras
, and it cannot be changed after import.🚀 OpenVINO Backend is inference-only – use it for
model.predict()
tasks.🔄 Backwards Compatibility
Keras 3 works as a drop-in replacement for
tf.keras
(when using TensorFlow backend).✔️ For existing
tf.keras
code – update yourmodel.save()
calls to the.keras
format.✔️ Custom components? Convert them to a backend-agnostic version in minutes!
✔️ Supports both
tf.data.Dataset
and PyTorchDataLoaders
.