-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
378a0cb
commit 68fdde7
Showing
13 changed files
with
106 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# KerasHub Modeling API | ||
|
||
The following base classes form the API for working with pretrained models | ||
through KerasHub. These base classes can be used with the `from_preset()` | ||
constructor to automatically instantiate a subclass with the correct model | ||
architecture, e.g. | ||
`keras_hub.models.TextClassifier.from_preset("bert_base_en", num_classes=2)`. | ||
|
||
For the full list of available pretrained model presets shipped directly by the | ||
Keras team, see the [Pretrained Models](/keras_hub/presets/) page. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
# KerasHub API documentation | ||
|
||
KerasHub is a toolbox of modular building blocks ranging from pretrained | ||
state-of-the-art models, to low-level Transformer Encoder layers. For an | ||
introduction to the library see the [KerasHub home page](/keras_hub/). For a | ||
high-level introduction to the API see our | ||
[getting started guide](/keras_hub/getting_started/). | ||
state-of-the-art models, to low-level Transformer Encoder layers. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# KerasHub Metrics | ||
|
||
KerasHub metrics are `keras.Metric` subclasses for NLP-specific use cases. | ||
KerasHub metrics are `keras.Metric` subclasses that are common to computer | ||
vision and natural language processing workflows. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# KerasHub Modeling Layers | ||
|
||
KerasHub modeling layers are give `keras.layers.Layer` implementations for | ||
building blocks common to pretrained models. They can be used to create a new | ||
model from scratch, or to extend a pretrained model. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# KerasHub Models | ||
# KerasHub Model Architectures | ||
|
||
KerasHub contains end-to-end implementations of popular model architectures. | ||
These models can be created in two ways: | ||
The following is a list of model architectures supported by KerasHub. These | ||
models can be created in two ways: | ||
|
||
- Through the `from_preset()` constructor, which instantiates an object with | ||
a pre-trained configurations, vocabularies, and (optionally) weights. | ||
a pre-trained configurations, vocabularies, and weights. | ||
- Through custom configuration controlled by the user. | ||
|
||
For the full list of available presets shipped directly by the Keras team, see | ||
the [Presets page](/keras_hub/presets/) | ||
|
||
## API Documentation | ||
For the full list of available pretrained model presets shipped directly by the | ||
Keras team, see the [Pretrained Models](/keras_hub/presets/) page. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# KerasHub Preprocessing Layers | ||
|
||
KerasHub preprocessing layers can be used to create custom preprocessing | ||
pipelines for pretrained models. Preprocessing layers are all compatible with | ||
`tf.data`, even when running on the `jax` and `torch` backends. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# KerasHub Samplers | ||
|
||
KerasHub samplers are used to control the sampling process when generating text | ||
with generative models. See `keras_hub.models.CausalLM` for the high-level | ||
generative API. | ||
|
||
{{toc}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters