← Back to Leaderboard
Kkeras-team

keras-team/keras

Multi-backend Python SDK for building, training, and running deep learning models

AI FrameworkQuickstart ↓
Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated yesterday
Latest Release
v3.12.4
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption25/25
Release Cadence14/20
License Clarity20/20
GPU
Total Stars
★ 64,464
24h Growth
+3
7d Growth
+24
Forks
19,811

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

keras-team/keras Star History (2020-01-12 - 2026-12-03) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +21.8k in 2517d · avg +9/day 65.7k 52.7k 39.6k 2020-01-12: ★ 42,6962020-06-13: ★ 45,0922020-11-14: ★ 46,8712021-04-17: ★ 47,9982021-09-18: ★ 49,6982022-02-19: ★ 51,2782022-07-23: ★ 53,1812022-12-24: ★ 54,5532023-05-27: ★ 56,2982023-10-28: ★ 57,6882024-03-30: ★ 59,1812024-08-31: ★ 60,1812025-02-01: ★ 61,2992025-07-05: ★ 62,2642025-12-06: ★ 62,9922026-05-09: ★ 63,6692026-12-03: ★ 64,464 ★ 64.5k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Keras 3 separates the Python model API from the execution runtime. Layers, models, metrics, and high-level training workflows sit above TensorFlow, JAX, or PyTorch. The runtime is selected before importing keras, using KERAS_BACKEND or ~/.keras/keras.json, and cannot be switched after import. OpenVINO occupies a narrower role: executing predictions rather than training.

PyPI packaging separates Keras from its runtime: the core dependency list includes NumPy, h5py, optree, and ml-dtypes, while the backend is installed separately. Extension is primarily through custom layers, models, metrics, and training steps. Teams can use Keras models in backend-native training loops, embed them in a PyTorch Module, or call them as part of a JAX model function. Portability depends on whether those extensions call backend-specific APIs.

Key Capabilities & Differentiators

Keras covers model development and training for vision, NLP, audio, time series, and recommender systems. Its v3.x compatibility floors are TensorFlow 2.16.1, JAX 0.4.20, and PyTorch 2.6.0 for training-capable backends, and OpenVINO 2026.2.0 for inference through model.predict(). These are minimum versions, not a guarantee that a particular model and accelerator combination will behave identically across runtimes.

Existing tf.data.Dataset pipelines and PyTorch DataLoaders can be used as inputs regardless of the selected backend. For tf.keras migration, the TensorFlow backend provides the closest starting point, with .keras as the current model.save() format. Models that rely on custom layers or train_step() need separate portability checks. Keras belongs at the model execution layer of an LLM inference stack, not in the role of a ready-to-deploy serving endpoint.

Trade-offs & Limitations

Compared with using PyTorch, JAX, or TensorFlow directly, Keras is most valuable when one model codebase has to support multiple runtimes. The cost is validating custom operations, numerical behavior, and performance on each target backend. If the project is committed to one runtime and already depends on native training code, using that framework directly avoids the need to maintain backend-neutral components.

Backend choice is fixed per initialized process, and training support is not symmetric: OpenVINO is prediction-only. Benchmark each candidate on the target hardware with representative models, batch sizes, and concurrency. Training memory also depends on gradients and optimizer state, so inference measurements are not a substitute for training measurements. The Apache-2.0 license allows commercial self-hosting, but backend packages, weights, and datasets still need their own license review.

Hardware & Deployment Guide

Install keras and the selected runtime in a clean Python environment. The current pyproject.toml requires Python 3.11 or newer; use that requirement rather than the Python 3.10 source-build example. The repository provides a CPU dependency setup and separate requirements-{backend}-cuda.txt files for JAX, TensorFlow, and PyTorch. The CUDA files install dependencies through pip but expect a preinstalled NVIDIA driver. Use separate environments to reduce CUDA version conflicts. Linux and macOS are supported, with WSL2 recommended for Windows.

Keras runs in your own Python process without a hosted API. The optional keras[gcs] extra adds gs:// artifact access without TensorFlow. Pin a patched release on the branch you deploy: v3.12.3 hardened HDF5 link handling, v3.12.4 addressed unsafe deserialization and decompression-bomb risks, and v3.15.1 also restricted unpickling for the IMDB and Reuters datasets. Verify the fix on the branch you run rather than treating those tags as a single upgrade sequence.

Backend boundary: KERAS_BACKEND selects a runtime before import; switching requires a fresh process.
Native integration: Keras models can participate in native training loops, a PyTorch Module, or a JAX model function.
Inference-only runtime: OpenVINO supports model.predict(), not training.
Data pipeline reuse: Existing tf.data.Dataset pipelines and PyTorch DataLoaders can feed Keras workflows.
GPU provisioning: Separate CUDA requirement files cover JAX, TensorFlow, and PyTorch and expect a host NVIDIA driver.
Artifact safety: The 3.12 patch line hardens HDF5 handling, dataset deserialization, and model-file processing.
Best For

Teams that want to share model and training code across TensorFlow, JAX, and PyTorch, or evaluate OpenVINO as a separate prediction runtime.

Skip If

You need a turnkey LLM serving endpoint, live backend switching within one process, or your project is already built around one runtime's native APIs.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

GPU
pip install keras --upgrade

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
keras ★64.5k+24PythonApache-2.0Multi-backend Python SDK for building, training, and running deep learning model
einops9.6k+5PythonMITA backend-agnostic Python library for explicit tensor shape transformations
annotated_deep_learning_paper_implementations67.8k+43PythonMITAnnotated PyTorch references for understanding and adapting deep learning algori
pytorch-lightning31.5k+31PythonApache-2.0PyTorch training with a managed Trainer and Fabric for custom distributed loops

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/keras-team/keras.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

keras-team/keras Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about keras

How do I switch backends, and what happens to custom model code?

Set KERAS_BACKEND or edit ~/.keras/keras.json before importing Keras. The backend cannot change after import, so run each backend in a separate process when comparing runtimes. Custom layers and train_step() implementations that use backend-native operations may need to be adapted before they can move.

Do I need a GPU, and how should I size VRAM?

No GPU is required: the repository includes a CPU dependency setup. For NVIDIA GPU execution, install the CUDA requirements for TensorFlow, JAX, or PyTorch and provide a compatible host driver. There is no fixed VRAM target for Keras itself; measure peak memory with the actual model, precision, batch size, and concurrency. For training, include gradients and optimizer state in that budget.

Can we self-host Keras for commercial use?

Yes. Keras is Apache-2.0 licensed and can run in your own Python environment without a hosted Keras API. If you redistribute it, meet the applicable license and notice obligations. Review the terms for backend packages, model weights, and datasets separately.

When is Keras a better choice than using a backend directly?

Choose Keras if a common modeling and training API across multiple backends is worth validating on each target. Use PyTorch, JAX, or TensorFlow directly if you are committed to one runtime and your core code already depends on its native APIs. If you need an LLM serving endpoint, Keras and the native frameworks address model execution rather than providing the complete service.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining keras-team/keras? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature keras-team/keras on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare