keras
64,420
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Python
语言
—
创建时间
最近更新
项目能做什么
专为人类开发者打造的极简深度学习框架。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# 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,
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](https://keras.io/getting_started/benchmarks/).
- **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.
1. Install `keras`:
```
pip install keras --upgrade
```
2. 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.
3. (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:
1. Install dependencies:
```
pip install -r requirements.txt
```
2. Run installation command from the root directory.
```
python pip_build.py --install
```
3. Run API generation script when creating PRs that update `keras_export` public APIs:
```
./shell/api_gen.sh
```
## Backend Compatibility Table
The following table lists the minimum supported versions of each backend for the latest stable release of Keras (v3.x):
| Backend | Minimum Supported Version |
|------------|---------------------------|
| TensorFlow | 2.16.1 |
| JAX | 0.4.20 |
| PyTorch | 2.6.0 |
| OpenVINO | 2026.2.0 |
#### Adding GPU support
The `requirements.txt` file will install a CPU-only version of TensorFlow, JAX, and PyTorch. For GPU support, we also
provide a separate `requirements-{backend}-cuda.txt` for TensorFlow, JAX, and PyTorch. These install all CUDA
dependencies via `pip` and expect a NVIDIA driver to be pre-installed. We recommend a clean Python environment for each
backend to avoid CUDA version mismatches. As an example, here is how to create a JAX GPU environment with `conda`:
```shel
阅读完整原文
项目深度分析 AI 生成
Keras 3 多后端一键部署与端侧导出工具 (Keras-Deploy SaaS/CLI)
| 产品构想 | 基于 Keras 3 支持 OpenVINO、Torch 等后端的事实,打造将 Keras 模型一键优化、量化并打包为微服务(Triton/FastAPI)或边缘运行时(OpenVINO/ONNX)的轻量级商业化 CLI 工具或托管服务。 |
| 核心功能 | 一键模型静态图固化与量化(INT8/FP16)、自动比对不同后端(PyTorch/OpenVINO)推理时延与吞吐、开箱即用的 Docker 镜像与 API 服务代码生成。 |
| 目标用户 | 中小企业 AI 工程师、独立开发者、端侧/边缘设备算法落地团队。 |
| 难度/周期 | 中等 · 1-2 个月 · 成本:极低(主要是本地开发和低配置云服务器进行打包测试)。 |
| 收费模式 | 核心开源 + Pro版高级特性(如商业许可证、闭源硬件量化优化加速包、高级技术支持)。 |
| 竞争风险 | 主流部署平台(如 Hugging Face、Triton、Ollama)本身更新快且易形成挤压;各后端边缘生态复杂度高。 |
| 依据 | 已验证事实 |
tf.keras 至 Keras 3 / JAX 代码迁移与重构咨询服务
| 产品构想 | 针对企业存量 tf.keras (Keras 2) 资产向现代多后端 Keras 3 (如追求 20%-350% 性能加速的 JAX) 迁移痛点,提供自动化语法转换脚本、模型权重转换工具与专家咨询审计。 |
| 核心功能 | 废弃 API 自动化扫描与替代建议、自定义 Layer/Loss/Metric 跨后端重写辅助工具、性能压测与等价性验证报告。 |
| 目标用户 | 拥有大量 TensorFlow 历史技术债务的传统企业、追求算力成本缩减的中大型科技公司团队。 |
| 难度/周期 | 高 · 2-3 个月(工具研发 + 案例沉淀) · 成本:低(时间成本为主,验证需租赁 GPU/TPU 资源)。 |
| 收费模式 | 企业技术咨询费、迁移外包服务费、自动化代码审计工具的企业 License。 |
| 竞争风险 | 属于劳动力与经验密集型业务,客单周期长,难以纯靠软件标准化实现高杠杆规模化。 |
| 依据 | 数据支持的判断 |
Keras 多后端算力成本基准评测与智能路由引擎
| 产品构想 | 利用 Keras 3 官方宣称不同架构在 JAX/PyTorch/TF 下有 20%-350% 性能差异的事实,开发一个能够在云算力训练时自动评估最低算力成本并自动配置环境变量/后端的调度工具。 |
| 核心功能 | 自动化微型基准测试(自动对比 JAX、PyTorch、TF 在指定显卡/TPU 上的耗时与显存开销)、训练成本预测看板、最优后端推荐与一键注入启动。 |
| 目标用户 | 精打细算型 AI 初创公司、算力账单高企的研究团队。 |
| 难度/周期 | 中等 · 1-2 个月 · 成本:中等(需要接入各主流 GPU 云厂商 API 进行性能跑分与标定)。 |
| 收费模式 | SaaS 订阅制;或联合算力云平台做引流分成/算力优化效果分成(Save-to-earn)。 |
| 竞争风险 | JAX/PyTorch 某些算子并非 100% 具备对齐性能;不同硬件架构差异大,评测结论维护成本高。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 93 个 Release |
| 社区活跃 | Star 64,420 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。