Run this model with HF Jobs
Run keras/bert_large_en_uncased on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/keras/bert_large_en_uncased. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/keras/bert_large_en_uncased on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use keras/bert_large_en_uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasHub
How to use keras/bert_large_en_uncased with KerasHub:
import keras_hub # Load TextClassifier model text_classifier = keras_hub.models.TextClassifier.from_preset( "hf://keras/bert_large_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_large_en_uncased")import keras_hub # Create a Backbone model unspecialized for any task backbone = keras_hub.models.Backbone.from_preset("hf://keras/bert_large_en_uncased") - Keras
How to use keras/bert_large_en_uncased with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://keras/bert_large_en_uncased") - Notebooks
- Google Colab
- Kaggle
Update README.md with new model card content
Browse files13 unmodified lines1415161718192025 unmodified lines46474849505113 unmodified lines## Links* [Bert Quickstart Notebook](https://www.kaggle.com/code/matthewdwatson/bert-quickstart)* [Bert API Documentation](https://keras.io/api/keras_hub/models/bert/)* [Bert Model Card](https://github.com/google-research/bert/blob/master/README.md)* [KerasHub Beginner Guide](https://keras.io/guides/keras_hub/getting_started/)25 unmodified lines| `bert_base_multi` | 177.85M | 12-layer BERT model where case is maintained. || `bert_large_en_uncased` | 335.14M | 24-layer BERT model where all input is lowercased. || `bert_large_en` | 333.58M | 24-layer BERT model where case is maintained. |## Example Usage```python13 unmodified lines1415161718192025 unmodified lines4647484950515213 unmodified lines## Links* [Bert Quickstart Notebook](https://www.kaggle.com/code/laxmareddypatlolla/bert-quickstart-notebook)* [Bert API Documentation](https://keras.io/api/keras_hub/models/bert/)* [Bert Model Card](https://github.com/google-research/bert/blob/master/README.md)* [KerasHub Beginner Guide](https://keras.io/guides/keras_hub/getting_started/)25 unmodified lines| `bert_base_multi` | 177.85M | 12-layer BERT model where case is maintained. || `bert_large_en_uncased` | 335.14M | 24-layer BERT model where all input is lowercased. || `bert_large_en` | 333.58M | 24-layer BERT model where case is maintained. || `bert_tiny_en_uncased_sst2 ` | 4.39M | he bert_tiny_en_uncased backbone model fine-tuned on the SST-2 sentiment analysis dataset. |## Example Usage```python
README.md+2-1