Upload TFDebertaV2ForSequenceClassification
Browse files- README.md +69 -0
- config.json +44 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_keras_callback
|
| 5 |
+
model-index:
|
| 6 |
+
- name: quynh_deberta-v3-Base-finetuned-AI_req_3
|
| 7 |
+
results: []
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
| 11 |
+
probably proofread and complete it, then remove this comment. -->
|
| 12 |
+
|
| 13 |
+
# quynh_deberta-v3-Base-finetuned-AI_req_3
|
| 14 |
+
|
| 15 |
+
This model is a fine-tuned version of [microsoft/deberta-v3-Base](https://huggingface.co/microsoft/deberta-v3-Base) on an unknown dataset.
|
| 16 |
+
It achieves the following results on the evaluation set:
|
| 17 |
+
- Train Loss: 0.0121
|
| 18 |
+
- Train Accuracy: 0.9986
|
| 19 |
+
- Validation Loss: 1.0930
|
| 20 |
+
- Validation Accuracy: 0.8190
|
| 21 |
+
- Epoch: 14
|
| 22 |
+
|
| 23 |
+
## Model description
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Intended uses & limitations
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training and evaluation data
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training procedure
|
| 36 |
+
|
| 37 |
+
### Training hyperparameters
|
| 38 |
+
|
| 39 |
+
The following hyperparameters were used during training:
|
| 40 |
+
- optimizer: {'name': 'Adam', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 2730, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
| 41 |
+
- training_precision: float32
|
| 42 |
+
|
| 43 |
+
### Training results
|
| 44 |
+
|
| 45 |
+
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|
| 46 |
+
|:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
|
| 47 |
+
| 0.8969 | 0.6099 | 0.7640 | 0.7048 | 0 |
|
| 48 |
+
| 0.7508 | 0.6951 | 0.7178 | 0.7048 | 1 |
|
| 49 |
+
| 0.6149 | 0.7404 | 0.5981 | 0.7714 | 2 |
|
| 50 |
+
| 0.5077 | 0.7720 | 0.5059 | 0.8095 | 3 |
|
| 51 |
+
| 0.4357 | 0.8036 | 0.4621 | 0.8095 | 4 |
|
| 52 |
+
| 0.3671 | 0.8407 | 0.4859 | 0.8190 | 5 |
|
| 53 |
+
| 0.2844 | 0.8777 | 0.6214 | 0.8000 | 6 |
|
| 54 |
+
| 0.2789 | 0.8860 | 0.5499 | 0.8190 | 7 |
|
| 55 |
+
| 0.1938 | 0.9107 | 0.8163 | 0.7810 | 8 |
|
| 56 |
+
| 0.1773 | 0.9231 | 0.8831 | 0.7905 | 9 |
|
| 57 |
+
| 0.1308 | 0.9547 | 0.6316 | 0.8095 | 10 |
|
| 58 |
+
| 0.0803 | 0.9712 | 0.8531 | 0.8286 | 11 |
|
| 59 |
+
| 0.0544 | 0.9849 | 0.7941 | 0.7810 | 12 |
|
| 60 |
+
| 0.0285 | 0.9931 | 0.9530 | 0.8190 | 13 |
|
| 61 |
+
| 0.0121 | 0.9986 | 1.0930 | 0.8190 | 14 |
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
### Framework versions
|
| 65 |
+
|
| 66 |
+
- Transformers 4.28.0
|
| 67 |
+
- TensorFlow 2.9.1
|
| 68 |
+
- Datasets 2.16.1
|
| 69 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/deberta-v3-Base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DebertaV2ForSequenceClassification"
|
| 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": "y",
|
| 12 |
+
"1": "p",
|
| 13 |
+
"2": "n"
|
| 14 |
+
},
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 3072,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"n": 2,
|
| 19 |
+
"p": 1,
|
| 20 |
+
"y": 0
|
| 21 |
+
},
|
| 22 |
+
"layer_norm_eps": 1e-07,
|
| 23 |
+
"max_position_embeddings": 512,
|
| 24 |
+
"max_relative_positions": -1,
|
| 25 |
+
"model_type": "deberta-v2",
|
| 26 |
+
"norm_rel_ebd": "layer_norm",
|
| 27 |
+
"num_attention_heads": 12,
|
| 28 |
+
"num_hidden_layers": 12,
|
| 29 |
+
"pad_token_id": 0,
|
| 30 |
+
"pooler_dropout": 0,
|
| 31 |
+
"pooler_hidden_act": "gelu",
|
| 32 |
+
"pooler_hidden_size": 768,
|
| 33 |
+
"pos_att_type": [
|
| 34 |
+
"p2c",
|
| 35 |
+
"c2p"
|
| 36 |
+
],
|
| 37 |
+
"position_biased_input": false,
|
| 38 |
+
"position_buckets": 256,
|
| 39 |
+
"relative_attention": true,
|
| 40 |
+
"share_att_key": true,
|
| 41 |
+
"transformers_version": "4.28.0",
|
| 42 |
+
"type_vocab_size": 0,
|
| 43 |
+
"vocab_size": 128100
|
| 44 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0895a3eda24196d88d22cd1d801abcd15cd28537284393528520e515e9bfe6de
|
| 3 |
+
size 737989928
|