--- id: tensorflow-hub version: "0.16.1" license: Apache 2.0 license_treatment: permissive maintenance: dormant --- # tensorflow-hub — TensorFlow Hub is a library to foster the publication, discovery, and consumption of reusable parts of machine learning models. License: permissive · Maintenance: dormant · Downloads: 2.2M/mo ## What it is and what it does TensorFlow Hub is a library for discovering and loading pre-trained TensorFlow SavedModels—reusable components like embeddings, classifiers, and feature extractors—into your own TensorFlow programs. It abstracts away the download and caching logic, letting you load a model with a single function call and a URL. The library depends on numpy, protobuf, and tf-keras to handle the underlying tensor operations and model serialization. As of November 2023, the tfhub.dev repository was migrated to Kaggle Models, and many older models were deleted by March 2024. The library continues to support loading models via tfhub.dev URLs (which redirect to Kaggle), but you should verify that the models you need are still available. The package is in Beta status and has not been actively maintained since early 2024, though it remains functional for its core use case of model loading and reuse. Use it for: - Load a pre-trained image classifier and fine-tune it on your own dataset for transfer learning. - Retrieve a text embedding model to convert sentences into dense vectors for semantic search or clustering. - Integrate a pre-trained object detection model into a production inference pipeline without training from scratch. - Prototype a machine learning application by combining multiple reusable SavedModels from the hub. - Cache downloaded models locally to avoid repeated network requests during development and testing. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Downloads and loads pre-trained TensorFlow SavedModels from TensorFlow Hub (now redirected to Kaggle Models) for reuse in TensorFlow programs with minimal code. Yes, if you need to load pre-trained TensorFlow models and your target models are still available on Kaggle Models. The library is stable, has low install friction, and carries a permissive license. However, be aware that maintenance is dormant and many models from the original tfhub.dev have been deleted; verify your models exist before committing to this library in a new project. ## Install pip install tensorflow-hub uv add tensorflow-hub poetry add tensorflow-hub ## Installing tensorflow-hub Before you install: Low install friction with a pure-Python wheel distribution. Maintenance is dormant—last release was January 2024 and the repository has not been updated since January 2025—but the package remains functional for downloading models that have not been deleted from Kaggle Models. License in practice: Apache 2.0 permissive license allows commercial and private use without restriction, making it safe to include in proprietary projects. Quickstart: pip install tensorflow-hub import tensorflow_hub as hub model = hub.load('https://tfhub.dev/google/...') Requires TensorFlow and tf-keras to be installed separately; models must exist on Kaggle Models (many models from tfhub.dev were deleted as of March 18, 2024). Verify before relying: - Current status of model availability on Kaggle Models and whether all actively-used models have been migrated. - Whether dormant maintenance status will affect compatibility with future TensorFlow versions. ## Package facts - License: Apache 2.0 (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 2.2M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags tensorflow model hub download, load pretrained tensorflow models, transfer learning tensorflow, reusable savedmodels tensorflow, tensorflow model reuse library, download tensorflow hub models, tensorflow model serving, transfer-learning, model-reuse, tensorflow [View on SkillFed](https://skillfed.io/packages/tensorflow-hub) · [View on PyPI](https://pypi.org/project/tensorflow-hub/)