Instructions to use keras/bert_tiny_en_uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/bert_tiny_en_uncased with KerasHub:
import keras_hub # Load TextClassifier model text_classifier = keras_hub.models.TextClassifier.from_preset( "hf://keras/bert_tiny_en_uncased", num_classes=2, ) # Fine-tune text_classifier.fit(x=["Thilling adventure!", "Total snoozefest."], y=[1, 0]) # Classify text text_classifier.predict(["Not my cup of tea."])import keras_hub # Create a MaskedLM model task = keras_hub.models.MaskedLM.from_preset("hf://keras/bert_tiny_en_uncased")import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/bert_tiny_en_uncased") - Keras
How to use keras/bert_tiny_en_uncased with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://keras/bert_tiny_en_uncased") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 5c3ddfeef38a9aff169b6ad5993bf090ef9c702aeacccfeab9eed9d332e13bf7
- Size of remote file:
- 17.6 MB
- SHA256:
- 6c45fb588a10511922476751b2f01581a168631784d090858a1ad42ce8e87eaa
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.