Instructions to use kerasformers/roberta_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/roberta_large with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use kerasformers/roberta_large with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://kerasformers/roberta_large") - Notebooks
- Google Colab
- Kaggle
Upload kf_config.json with huggingface_hub
Browse files- kf_config.json +19 -0
kf_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"library_name": "kerasformers",
|
| 3 |
+
"kerasformers_version": "1.1.3",
|
| 4 |
+
"model_module": "kerasformers.models.roberta",
|
| 5 |
+
"model_class": "RobertaModel",
|
| 6 |
+
"variant": "roberta_large",
|
| 7 |
+
"weights": "model.weights.h5",
|
| 8 |
+
"model_type": "roberta",
|
| 9 |
+
"vocab_size": 50265,
|
| 10 |
+
"embed_dim": 1024,
|
| 11 |
+
"num_layers": 24,
|
| 12 |
+
"num_heads": 16,
|
| 13 |
+
"mlp_dim": 4096,
|
| 14 |
+
"max_position_embeddings": 514,
|
| 15 |
+
"type_vocab_size": 1,
|
| 16 |
+
"hidden_act": "gelu",
|
| 17 |
+
"layer_norm_eps": 1e-05,
|
| 18 |
+
"pad_token_id": 1
|
| 19 |
+
}
|