keras-nlp
Pretrained models for Keras.
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you need pretrained NLP models and want multi-backend flexibility without framework lock-in, or if you're already using Keras 3. The low install friction, active maintenance, and permissive license support this. However, the Alpha development status means the API may change; verify that the specific models and tasks you need are available in version 0.31.0 before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.10 and a Keras 3 backend (TensorFlow 2.16.1+, JAX 0.4.20+, PyTorch 2.1.0+, or OpenVINO 2026.2.0+) to be installed separately.
- Low install friction with a pure-Python wheel.
- Active maintenance with recent release (6 days old) and strong repository signals (64228 stars, last commit 2026-08-14).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production and research contexts.
last release 2026-08-08 (6 days) · last repo commit 2026-08-14 · 64,228 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 287,031 downloads/mo, #8,037 on PyPI
Alternatives
Verify before relying
pip install keras-nlp
import keras_nlp
# Configure backend before importing keras
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras- Specific pretrained model architectures and task coverage available in version 0.31.0
- Performance benchmarks for NLP tasks compared to other frameworks
- API stability guarantees given 'Alpha' development status
What it is and what it does
Keras-NLP is a library of pretrained models and utilities for natural language processing, built on top of Keras 3. It allows you to use the same high-level Keras API across multiple deep learning backends—JAX, TensorFlow, PyTorch, or OpenVINO—without rewriting code. You configure your backend before importing, then build and train NLP models using Keras abstractions that work identically regardless of which backend engine runs them underneath.
The library is designed for developers who want to avoid framework lock-in while building production NLP systems. It supports computer vision, audio, timeseries, and other tasks through the broader Keras ecosystem, but focuses specifically on pretrained model access and NLP workflows. Since it depends on keras-hub as its runtime foundation, it inherits Keras 3's multi-backend architecture and the ability to scale from laptops to distributed GPU/TPU clusters.
Use it for
- Fine-tune pretrained language models on custom text classification or sequence labeling tasks using your choice of backend.
- Build NLP inference pipelines that run on OpenVINO for edge deployment while developing on JAX or PyTorch.
- Migrate existing tf.keras NLP code to run on JAX for performance gains without rewriting custom layers.
- Combine Keras NLP models with PyTorch data loaders or TensorFlow datasets in the same training loop.
- Prototype NLP experiments rapidly by swapping backends to find the fastest one for your model architecture.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you need pretrained NLP models and want multi-backend flexibility without framework lock-in, or if you're already using Keras 3. The low install friction, active maintenance, and permissive license support this. However, the Alpha development status means the API may change; verify that the specific models and tasks you need are available in version 0.31.0 before committing to production use.
Install
keras-nlp on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance with recent release (6 days old) and strong repository signals (64228 stars, last commit 2026-08-14). Requires Keras 3 as a runtime dependency.
Requires Python >= 3.10 and a Keras 3 backend (TensorFlow 2.16.1+, JAX 0.4.20+, PyTorch 2.1.0+, or OpenVINO 2026.2.0+) to be installed separately.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production and research contexts.
Quickstart
pip install keras-nlp
import keras_nlp
# Configure backend before importing keras
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
Verify before relying
- Specific pretrained model architectures and task coverage available in version 0.31.0
- Performance benchmarks for NLP tasks compared to other frameworks
- API stability guarantees given 'Alpha' development status
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagekeras-hub |
| Maintenance | Actively maintained 6 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 287,031 / month, #8,037 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: Science/ResearchOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Software Development |
Evidence: keras_nlp-0.31.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pretrained nlp models”
- keras-nlpKeras-NLP provides pretrained models and utilities for natural…
- spark-nlpSpark NLP provides distributed natural language processing on Apache…
- modelscopeModelScope provides unified Python interfaces for inference,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also keras · keras-hub · scikeras · keras-nightly · tf-keras · Keras-Preprocessing · spark-nlp · tf-keras-nightly · tf2crf · transformers