tommyliphys
commited on
Commit
•
d052e06
1
Parent(s):
98d4443
Upload TFDebertaV2ForSequenceClassification
Browse files- README.md +58 -0
- config.json +38 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: microsoft/deberta-v3-small
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: ai-detector-deberta
|
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 |
+
# ai-detector-deberta
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [microsoft/deberta-v3-small](https://huggingface.co/microsoft/deberta-v3-small) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.0031
|
19 |
+
- Train Accuracy: 0.9994
|
20 |
+
- Validation Loss: 0.0242
|
21 |
+
- Validation Accuracy: 0.9924
|
22 |
+
- Train Lr: 1e-07
|
23 |
+
- Epoch: 2
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- optimizer: {'name': 'RMSprop', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': 100, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 1e-07, 'rho': 0.9, 'momentum': 0.0, 'epsilon': 1e-07, 'centered': False}
|
43 |
+
- training_precision: float32
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Train Lr | Epoch |
|
48 |
+
|:----------:|:--------------:|:---------------:|:-------------------:|:--------:|:-----:|
|
49 |
+
| 0.0707 | 0.9694 | 0.0260 | 0.9903 | 1e-05 | 0 |
|
50 |
+
| 0.0032 | 0.9993 | 0.0383 | 0.9882 | 1e-06 | 1 |
|
51 |
+
| 0.0031 | 0.9994 | 0.0242 | 0.9924 | 1e-07 | 2 |
|
52 |
+
|
53 |
+
|
54 |
+
### Framework versions
|
55 |
+
|
56 |
+
- Transformers 4.41.1
|
57 |
+
- TensorFlow 2.15.0
|
58 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/deberta-v3-small",
|
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": "human",
|
12 |
+
"1": "AI"
|
13 |
+
},
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 3072,
|
16 |
+
"layer_norm_eps": 1e-07,
|
17 |
+
"max_position_embeddings": 512,
|
18 |
+
"max_relative_positions": -1,
|
19 |
+
"model_type": "deberta-v2",
|
20 |
+
"norm_rel_ebd": "layer_norm",
|
21 |
+
"num_attention_heads": 12,
|
22 |
+
"num_hidden_layers": 6,
|
23 |
+
"pad_token_id": 0,
|
24 |
+
"pooler_dropout": 0,
|
25 |
+
"pooler_hidden_act": "gelu",
|
26 |
+
"pooler_hidden_size": 768,
|
27 |
+
"pos_att_type": [
|
28 |
+
"p2c",
|
29 |
+
"c2p"
|
30 |
+
],
|
31 |
+
"position_biased_input": false,
|
32 |
+
"position_buckets": 256,
|
33 |
+
"relative_attention": true,
|
34 |
+
"share_att_key": true,
|
35 |
+
"transformers_version": "4.41.1",
|
36 |
+
"type_vocab_size": 0,
|
37 |
+
"vocab_size": 128100
|
38 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f55c2f9621be5088ca0ab242dc3b2c2072cedb7689e12230da4066e39ef1ae52
|
3 |
+
size 567742256
|