keras-hub  by keras-team

Pretrained model hub for Keras 3

Created 5 years ago
932 stars

Top 39.3% on SourcePulse

GitHubView on GitHub
Project Summary

KerasHub provides a curated collection of pre-trained models for Keras 3, simplifying the integration of advanced AI capabilities into applications. It targets developers and researchers working with text, image, and audio data, offering a flexible and fast way to leverage state-of-the-art architectures for tasks like generation and classification.

How It Works

KerasHub offers Keras 3 implementations of popular model architectures, directly usable as Layer and Model components. This approach ensures seamless integration with the existing Keras ecosystem. A key advantage is its multi-framework support, allowing models to run on JAX, TensorFlow, and PyTorch from a single definition, facilitating cross-platform development and deployment.

Quick Start & Requirements

  • Install with: pip install --upgrade keras-hub
  • For NLP models: pip install --upgrade keras-hub[nlp]
  • Backend configuration via KERAS_BACKEND environment variable (e.g., export KERAS_BACKEND=jax).
  • Requires Keras 3 installation. TensorFlow is pulled in for tf.data preprocessing, though training can occur on any backend.
  • See: Getting Started, KerasHub Home

Highlighted Details

  • Supports JAX, TensorFlow, and PyTorch backends from a single model definition.
  • Enables fine-tuning on GPUs and TPUs with built-in PEFT techniques.
  • Offers model and data parallel training for large-scale fine-tuning.
  • Provides access to pre-trained checkpoints on Kaggle Models.

Maintenance & Community

  • Developed by the Keras team.
  • Follows Semantic Versioning with a plan for backward compatibility.
  • Pre-release development (0.y.z) may include breaking changes.
  • See: Contributing Guide, Roadmap

Licensing & Compatibility

  • KerasHub components are provided under an unspecified license.
  • Underlying models (BART, BLOOM, GPT-2, Llama, etc.) are provided by third parties and subject to separate licenses. Compatibility for commercial use depends on these underlying licenses.

Limitations & Caveats

The project is in pre-release development (0.y.z), meaning APIs are not yet stable and backward compatibility is not guaranteed. The specific license for KerasHub itself is not detailed in the README, and users must verify the licenses of the third-party underlying models for commercial use.

Health Check
Last Commit

1 day ago

Responsiveness

1 week

Pull Requests (30d)
39
Issues (30d)
10
Star History
14 stars in the last 30 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Lewis Tunstall Lewis Tunstall(Research Engineer at Hugging Face), and
13 more.

torchtitan by pytorch

0.7%
4k
PyTorch platform for generative AI model training research
Created 1 year ago
Updated 19 hours ago
Starred by Yineng Zhang Yineng Zhang(Inference Lead at SGLang; Research Scientist at Together AI), Travis Fischer Travis Fischer(Founder of Agentic), and
8 more.

corenet by apple

0.0%
7k
DNN toolkit for training standard and novel models
Created 1 year ago
Updated 3 weeks ago
Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Omar Khattab Omar Khattab(Coauthor of DSPy, ColBERT; Professor at MIT), and
15 more.

gpt-neo by EleutherAI

0.0%
8k
GPT-2/3-style model implementation using mesh-tensorflow
Created 5 years ago
Updated 3 years ago
Feedback? Help us improve.