Instructions to use zeromodels/deberta_v3_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/deberta_v3_base with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/deberta_v3_base") - Keras
How to use zeromodels/deberta_v3_base 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://zeromodels/deberta_v3_base") - Notebooks
- Google Colab
- Kaggle
Upload kf_config.json with huggingface_hub
Browse files- kf_config.json +27 -0
kf_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"library_name": "kerasformers",
|
| 3 |
+
"kerasformers_version": "1.1.3",
|
| 4 |
+
"model_module": "kerasformers.models.deberta_v3",
|
| 5 |
+
"model_class": "DebertaV3Model",
|
| 6 |
+
"variant": "deberta_v3_base",
|
| 7 |
+
"weights": "model.weights.h5",
|
| 8 |
+
"model_type": "deberta_v3",
|
| 9 |
+
"vocab_size": 128100,
|
| 10 |
+
"embed_dim": 768,
|
| 11 |
+
"num_layers": 12,
|
| 12 |
+
"num_heads": 12,
|
| 13 |
+
"mlp_dim": 3072,
|
| 14 |
+
"max_position_embeddings": 512,
|
| 15 |
+
"max_relative_positions": 512,
|
| 16 |
+
"position_buckets": 256,
|
| 17 |
+
"pos_att_type": [
|
| 18 |
+
"p2c",
|
| 19 |
+
"c2p"
|
| 20 |
+
],
|
| 21 |
+
"norm_rel_ebd": true,
|
| 22 |
+
"conv_kernel_size": 0,
|
| 23 |
+
"conv_act": "gelu",
|
| 24 |
+
"hidden_act": "gelu",
|
| 25 |
+
"layer_norm_eps": 1e-07,
|
| 26 |
+
"pad_token_id": 0
|
| 27 |
+
}
|