# keras-team/keras

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/keras-team-keras).**

64,094 stars · 19,736 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/keras-team/keras
- Homepage: http://keras.io/
- awesome-repositories: https://awesome-repositories.com/repository/keras-team-keras.md

## Topics

`data-science` `deep-learning` `jax` `machine-learning` `neural-networks` `python` `pytorch` `tensorflow`

## Description

Keras is a high-level deep learning framework designed for constructing and training neural networks through the composition of modular, functional layers. It serves as a comprehensive modeling toolkit that provides standardized procedures for defining, evaluating, and deploying complex architectures. By utilizing a directed acyclic graph approach, the framework allows users to build intricate models with multiple inputs, outputs, and shared layers, ensuring consistent numerical execution through functional state management.

The project distinguishes itself as a multi-backend machine learning engine that decouples high-level model definitions from low-level execution logic. This backend-agnostic architecture enables users to author model code once and deploy it across diverse hardware accelerators and tensor processing frameworks without rewriting core logic. Users can dynamically switch between different computational engines to optimize performance, while native utilities support large-scale distributed training by separating model topology from hardware-specific sharding and parallelism requirements.

Beyond its core modeling capabilities, the framework includes an extensive ecosystem for specialized tasks such as hyperparameter optimization, recommendation system development, and the integration of pre-trained generative models for text and image synthesis. It supports both functional composition and object-oriented subclassing, allowing for the creation of custom layers and models that maintain compatibility with standard training loops, data streaming, and callback management.

The framework is distributed as a Python package and provides a unified interface for managing the entire training lifecycle, from data pipeline preparation to model serialization and export.

## Tags

### Artificial Intelligence & ML

- [Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks.md) — Acts as a comprehensive high-level interface for building, training, and deploying deep learning models.
- [Model Definition](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks/model-construction/model-definition.md) — Simplifies the assembly of complex neural network topologies through a modular and functional composition API. ([source](http://keras.io/api/))
- [Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/architectures.md) — Defines internal connectivity and data flow patterns through a functional API that tracks parameter dependencies.
- [Multi-Backend Abstractions](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/frameworks/model-construction/multi-backend-abstractions.md) — Abstracts underlying tensor operations to enable seamless model execution across diverse hardware accelerators.
- [Weight Optimizers](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/machine-learning-training/objectives-and-optimization/weight-optimizers.md) — Implements gradient-based optimization algorithms to adjust model weights and minimize loss during training. ([source](http://keras.io/api/))
- [Backend Configuration Interfaces](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-inference-serving/request-routing-gateways/backend-configuration-interfaces.md) — Exposes unified interfaces to switch between various computational backends for consistent model execution. ([source](https://cdn.jsdelivr.net/gh/keras-team/keras@master/README.md))
- [Training and Evaluation Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-training-and-tuning/training-frameworks/training-and-evaluation-pipelines.md) — Coordinates automated workflows for training loops, batch processing, and validation dataset management. ([source](http://keras.io/))
- [Neural Network Layers](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-layers.md) — Composes neural networks using reusable, functional layers that perform specific mathematical transformations on input data. ([source](http://keras.io/api/))
- [Training Parameter Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/training-configurations/training-parameter-configurations.md) — Standardizes the configuration of optimizers, loss functions, and performance metrics for training routines. ([source](http://keras.io/guides/training_with_built_in_methods/))
- [Distributed Training Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/distributed-training-orchestrators.md) — Orchestrates large-scale training across multiple devices by managing data and model parallelism through structured meshes. ([source](https://keras.io/keras_3/))
- [Neural Network Components](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/architectures/neural-network-components.md) — Supplies a library of modular building blocks and custom layer definitions for architectural development.
- [Backend Selectors](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-inference-serving/request-routing-gateways/backend-selectors.md) — Provides mechanisms to dynamically select and utilize hardware-specific execution engines for improved performance. ([source](http://keras.io/keras_3/))
- [Distributed Training](https://awesome-repositories.com/f/artificial-intelligence-ml/distributed-training-frameworks/distributed-training.md) — Configures data and model parallelism to scale training workloads across multiple devices and clusters.
- [Custom Loss Functions](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/machine-learning-training/pipelines-and-orchestration/training-orchestration-systems/training-lifecycle-management/custom-loss-functions.md) — Supports the creation of custom callable functions to handle unique training objectives and error calculations. ([source](http://keras.io/guides/training_with_built_in_methods/))
- [Model Evaluation and Analysis](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-evaluation-analysis.md) — Includes a comprehensive suite of metrics for benchmarking and monitoring model performance. ([source](http://keras.io/api/))
- [Custom Layers](https://awesome-repositories.com/f/artificial-intelligence-ml/artificial-intelligence-tooling/custom-layers.md) — Extends core framework capabilities by allowing users to build specialized neural network computations through custom base layer classes. ([source](http://keras.io/guides/making_new_layers_and_models_via_subclassing/))
- [Large Language Models](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-orchestration/large-language-models.md) — Maintains unified interfaces for initializing and deploying pre-trained language models alongside their associated tokenizers. ([source](http://keras.io/keras_hub/api/models/gemma/))
- [Generative Language Models](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/generative-ai/generative-language-models.md) — Loads pre-trained generative architectures to facilitate automated text synthesis tasks within optimized deep learning pipelines. ([source](http://keras.io/))
- [Machine Learning Training](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/machine-learning-training.md) — Manages training loops by triggering custom callback logic for tasks like checkpointing, early stopping, and real-time metric monitoring. ([source](http://keras.io/guides/training_with_built_in_methods/))
- [Inference Optimization Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-optimization-and-inference/serving-and-runtime/inference-optimization-utilities/inference-optimization-tools.md) — Applies hardware-specific tuning to model execution paths, significantly enhancing inference speed and throughput on diverse computing devices. ([source](https://keras.io/keras_3/))
- [Diffusion Models](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/diffusion-visual-models/generative-ai-models/diffusion-models.md) — Initializes image synthesis models using standardized presets to ensure efficient memory management and parameter configuration during diffusion tasks. ([source](http://keras.io/keras_hub/api/models/stable_diffusion_3/))
- [Learning Rate Schedulers](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/model-fine-tuning-adaptation/learning-rate-schedulers.md) — Modifies learning rates dynamically using either static decay schedules or real-time feedback loops to improve model convergence. ([source](http://keras.io/guides/training_with_built_in_methods/))
- [Recommendation Engines](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/recommendation-engines.md) — Builds personalized recommendation systems using modular components that run across multiple high-performance numerical computing backends. ([source](http://keras.io/keras_rs/))

### Software Engineering & Architecture

- [Functional Execution Interfaces](https://awesome-repositories.com/f/software-engineering-architecture/architectural-design-patterns/design-patterns/functional-design-patterns/functional-execution-interfaces.md) — Facilitates model and metric execution using a stateless interface that explicitly manages state variables. ([source](http://keras.io/keras_3/))
- [Stateless Functional Components](https://awesome-repositories.com/f/software-engineering-architecture/architectural-design-patterns/design-patterns/functional-design-patterns/stateless-functional-components.md) — Processes data through modular, stateless layers to ensure consistent behavior within functional programming patterns. ([source](https://keras.io/keras_3/))

### Data & Databases

- [Training Data Pipelines](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/data-processing/ml-data-pipelines/training-data-pipelines.md) — Integrates utilities to load, preprocess, and format diverse data types for efficient training pipelines. ([source](http://keras.io/api/))
- [Portable Model Formats](https://awesome-repositories.com/f/data-databases/data-serialization-formats/model-serialization/portable-model-formats.md) — Serializes neural network architectures and weights into standardized, cross-platform formats for deployment across diverse computing backends. ([source](http://keras.io/keras_3/))
- [Data Streaming Utilities](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/processing-pipelines/data-streaming-utilities.md) — Streams large datasets into training loops by handling batching, shuffling, and preprocessing tasks automatically. ([source](http://keras.io/guides/training_with_built_in_methods/))

### Operating Systems & Systems Programming

- [GPU Acceleration](https://awesome-repositories.com/f/operating-systems-systems-programming/hardware-interfacing-drivers/hardware-acceleration/gpu-acceleration.md) — Offloads compute-intensive training and inference tasks to graphics processing units for accelerated execution. ([source](https://cdn.jsdelivr.net/gh/keras-team/keras@master/README.md))

### Programming Languages & Runtimes

- [Just-In-Time Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/runtime-environments/execution-engines/just-in-time-compilers.md) — Translates high-level operations into optimized machine code at runtime to maximize hardware performance.

### Part of an Awesome List

- [Deep Learning](https://awesome-repositories.com/f/awesome-lists/ai/deep-learning.md) — A high-level deep learning library with support for multiple backends.
- [Deep Learning Frameworks](https://awesome-repositories.com/f/awesome-lists/ai/deep-learning-frameworks.md) — Multi-backend framework supporting JAX, TensorFlow, and PyTorch.
- [General Machine Learning](https://awesome-repositories.com/f/awesome-lists/ai/general-machine-learning.md) — High-level neural network API for TensorFlow.
- [Machine Learning](https://awesome-repositories.com/f/awesome-lists/ai/machine-learning.md) — High-level neural networks API.
- [Machine Learning Libraries](https://awesome-repositories.com/f/awesome-lists/ai/machine-learning-libraries.md) — Deep learning API for human-centric model development.
- [Data Science and Databases](https://awesome-repositories.com/f/awesome-lists/data/data-science-and-databases.md) — User-friendly deep learning API.
- [Scientific Computing Libraries](https://awesome-repositories.com/f/awesome-lists/devtools/scientific-computing-libraries.md) — User-friendly deep learning library for Python.
