Skip to content

tfhub.dev --> kaggle.com/models in overview.md #2379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions site/en/hub/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# TensorFlow Hub

TensorFlow Hub is an open repository and library for reusable machine learning.
The [tfhub.dev](https://tfhub.dev) repository provides many pre-trained models:
[Kaggle Models](https://www.kaggle.com/models) provides many pre-trained models:
text embeddings, image classification models, TF.js/TFLite models and much more.
The repository is open to
[community contributors](https://tfhub.dev/s?subtype=publisher).
[community contributors](https://www.kaggle.com/models?owner-type=user).

The [`tensorflow_hub`](https://github.com/tensorflow/hub) library lets you
download and reuse them in your TensorFlow program with a minimum amount of
Expand All @@ -14,7 +14,7 @@ code.
```python
import tensorflow_hub as hub

model = hub.KerasLayer("https://tfhub.dev/google/nnlm-en-dim128/2")
model = hub.KerasLayer("https://www.kaggle.com/models/google/nnlm/TensorFlow2/en-dim128/2")
Copy link
Contributor Author

@jorgeorpinel jorgeorpinel May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I based this on the example in https://www.kaggle.com/models/google/nnlm but did not confirm whether this specific block code works.

embeddings = model(["The rain in Spain.", "falls",
"mainly", "In the plain!"])

Expand All @@ -23,8 +23,8 @@ print(embeddings.shape) #(4,128)

## Next Steps

- [Find models on tfhub.dev](https://tfhub.dev)
- [Publish models on tfhub.dev](publish.md)
- [Find models on kaggle.com](https://www.kaggle.com/models)
- [Publish models on kaggle.com](publish.md)
- TensorFlow Hub library
- [Install TensorFlow Hub](installation.md)
- [Library overview](lib_overview.md)
Expand Down