tommyliphys
commited on
Commit
•
d50592d
1
Parent(s):
dda4c3e
Upload TFDistilBertForSequenceClassification
Browse files- README.md +59 -0
- config.json +28 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: ai-detector-distilbert
|
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-distilbert
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 0.0079
|
19 |
+
- Train Accuracy: 0.9983
|
20 |
+
- Validation Loss: 0.0156
|
21 |
+
- Validation Accuracy: 0.9958
|
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.0921 | 0.9652 | 0.0141 | 0.9963 | 1e-05 | 0 |
|
50 |
+
| 0.0098 | 0.9974 | 0.0178 | 0.9956 | 1e-06 | 1 |
|
51 |
+
| 0.0079 | 0.9983 | 0.0156 | 0.9958 | 1e-07 | 2 |
|
52 |
+
|
53 |
+
|
54 |
+
### Framework versions
|
55 |
+
|
56 |
+
- Transformers 4.39.3
|
57 |
+
- TensorFlow 2.15.0
|
58 |
+
- Datasets 2.18.0
|
59 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-cased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"id2label": {
|
12 |
+
"0": "human",
|
13 |
+
"1": "AI"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"max_position_embeddings": 512,
|
17 |
+
"model_type": "distilbert",
|
18 |
+
"n_heads": 12,
|
19 |
+
"n_layers": 6,
|
20 |
+
"output_past": true,
|
21 |
+
"pad_token_id": 0,
|
22 |
+
"qa_dropout": 0.1,
|
23 |
+
"seq_classif_dropout": 0.2,
|
24 |
+
"sinusoidal_pos_embds": false,
|
25 |
+
"tie_weights_": true,
|
26 |
+
"transformers_version": "4.39.3",
|
27 |
+
"vocab_size": 28996
|
28 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a02c31333f011e1c07c694bf873315600e333b3aa2f0e4e85e8c5f57365fcdda
|
3 |
+
size 263263936
|