Commit
·
42e62ab
1
Parent(s):
9ae0a0b
Upload TFDebertaForSequenceClassification
Browse files- README.md +57 -0
- config.json +89 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: microsoft/deberta-base
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_keras_callback
|
| 6 |
+
model-index:
|
| 7 |
+
- name: INTENT
|
| 8 |
+
results: []
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
| 12 |
+
probably proofread and complete it, then remove this comment. -->
|
| 13 |
+
|
| 14 |
+
# INTENT
|
| 15 |
+
|
| 16 |
+
This model is a fine-tuned version of [microsoft/deberta-base](https://huggingface.co/microsoft/deberta-base) on an unknown dataset.
|
| 17 |
+
It achieves the following results on the evaluation set:
|
| 18 |
+
- Train Loss: 0.0087
|
| 19 |
+
- Train Accuracy: 0.9986
|
| 20 |
+
- Validation Loss: 0.0014
|
| 21 |
+
- Validation Accuracy: 1.0
|
| 22 |
+
- Epoch: 1
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 2690, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
| 42 |
+
- training_precision: float32
|
| 43 |
+
|
| 44 |
+
### Training results
|
| 45 |
+
|
| 46 |
+
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|
| 47 |
+
|:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
|
| 48 |
+
| 0.2358 | 0.9483 | 0.0092 | 0.9981 | 0 |
|
| 49 |
+
| 0.0087 | 0.9986 | 0.0014 | 1.0 | 1 |
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
### Framework versions
|
| 53 |
+
|
| 54 |
+
- Transformers 4.35.2
|
| 55 |
+
- TensorFlow 2.15.0
|
| 56 |
+
- Datasets 2.16.0
|
| 57 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/deberta-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DebertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"hidden_act": "gelu",
|
| 8 |
+
"hidden_dropout_prob": 0.1,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "LABEL_0",
|
| 12 |
+
"1": "LABEL_1",
|
| 13 |
+
"2": "LABEL_2",
|
| 14 |
+
"3": "LABEL_3",
|
| 15 |
+
"4": "LABEL_4",
|
| 16 |
+
"5": "LABEL_5",
|
| 17 |
+
"6": "LABEL_6",
|
| 18 |
+
"7": "LABEL_7",
|
| 19 |
+
"8": "LABEL_8",
|
| 20 |
+
"9": "LABEL_9",
|
| 21 |
+
"10": "LABEL_10",
|
| 22 |
+
"11": "LABEL_11",
|
| 23 |
+
"12": "LABEL_12",
|
| 24 |
+
"13": "LABEL_13",
|
| 25 |
+
"14": "LABEL_14",
|
| 26 |
+
"15": "LABEL_15",
|
| 27 |
+
"16": "LABEL_16",
|
| 28 |
+
"17": "LABEL_17",
|
| 29 |
+
"18": "LABEL_18",
|
| 30 |
+
"19": "LABEL_19",
|
| 31 |
+
"20": "LABEL_20",
|
| 32 |
+
"21": "LABEL_21",
|
| 33 |
+
"22": "LABEL_22",
|
| 34 |
+
"23": "LABEL_23",
|
| 35 |
+
"24": "LABEL_24",
|
| 36 |
+
"25": "LABEL_25",
|
| 37 |
+
"26": "LABEL_26"
|
| 38 |
+
},
|
| 39 |
+
"initializer_range": 0.02,
|
| 40 |
+
"intermediate_size": 3072,
|
| 41 |
+
"label2id": {
|
| 42 |
+
"LABEL_0": 0,
|
| 43 |
+
"LABEL_1": 1,
|
| 44 |
+
"LABEL_10": 10,
|
| 45 |
+
"LABEL_11": 11,
|
| 46 |
+
"LABEL_12": 12,
|
| 47 |
+
"LABEL_13": 13,
|
| 48 |
+
"LABEL_14": 14,
|
| 49 |
+
"LABEL_15": 15,
|
| 50 |
+
"LABEL_16": 16,
|
| 51 |
+
"LABEL_17": 17,
|
| 52 |
+
"LABEL_18": 18,
|
| 53 |
+
"LABEL_19": 19,
|
| 54 |
+
"LABEL_2": 2,
|
| 55 |
+
"LABEL_20": 20,
|
| 56 |
+
"LABEL_21": 21,
|
| 57 |
+
"LABEL_22": 22,
|
| 58 |
+
"LABEL_23": 23,
|
| 59 |
+
"LABEL_24": 24,
|
| 60 |
+
"LABEL_25": 25,
|
| 61 |
+
"LABEL_26": 26,
|
| 62 |
+
"LABEL_3": 3,
|
| 63 |
+
"LABEL_4": 4,
|
| 64 |
+
"LABEL_5": 5,
|
| 65 |
+
"LABEL_6": 6,
|
| 66 |
+
"LABEL_7": 7,
|
| 67 |
+
"LABEL_8": 8,
|
| 68 |
+
"LABEL_9": 9
|
| 69 |
+
},
|
| 70 |
+
"layer_norm_eps": 1e-07,
|
| 71 |
+
"max_position_embeddings": 512,
|
| 72 |
+
"max_relative_positions": -1,
|
| 73 |
+
"model_type": "deberta",
|
| 74 |
+
"num_attention_heads": 12,
|
| 75 |
+
"num_hidden_layers": 12,
|
| 76 |
+
"pad_token_id": 0,
|
| 77 |
+
"pooler_dropout": 0,
|
| 78 |
+
"pooler_hidden_act": "gelu",
|
| 79 |
+
"pooler_hidden_size": 768,
|
| 80 |
+
"pos_att_type": [
|
| 81 |
+
"c2p",
|
| 82 |
+
"p2c"
|
| 83 |
+
],
|
| 84 |
+
"position_biased_input": false,
|
| 85 |
+
"relative_attention": true,
|
| 86 |
+
"transformers_version": "4.35.2",
|
| 87 |
+
"type_vocab_size": 0,
|
| 88 |
+
"vocab_size": 50265
|
| 89 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56ed98196f545ab75db26f73dfeebcf6b4a01239645767ce22a8924e998cd810
|
| 3 |
+
size 557144072
|