tuhanasinan
commited on
Commit
•
28390f1
1
Parent(s):
4ae034e
Training in progress epoch 0
Browse files- README.md +56 -0
- config.json +83 -0
- special_tokens_map.json +7 -0
- tf_model.h5 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: distilbert-base-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_keras_callback
|
7 |
+
model-index:
|
8 |
+
- name: tuhanasinan/go_emotions-distilbert-tensorflow
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
13 |
+
probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# tuhanasinan/go_emotions-distilbert-tensorflow
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Train Loss: 1.5325
|
20 |
+
- Validation Loss: 1.3195
|
21 |
+
- Train Accuracy: 0.5979
|
22 |
+
- Epoch: 0
|
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': 5e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
42 |
+
- training_precision: float32
|
43 |
+
|
44 |
+
### Training results
|
45 |
+
|
46 |
+
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
47 |
+
|:----------:|:---------------:|:--------------:|:-----:|
|
48 |
+
| 1.5325 | 1.3195 | 0.5979 | 0 |
|
49 |
+
|
50 |
+
|
51 |
+
### Framework versions
|
52 |
+
|
53 |
+
- Transformers 4.45.1
|
54 |
+
- TensorFlow 2.16.1
|
55 |
+
- Datasets 3.0.1
|
56 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
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": "admiration",
|
13 |
+
"1": "amusement",
|
14 |
+
"2": "anger",
|
15 |
+
"3": "annoyance",
|
16 |
+
"4": "approval",
|
17 |
+
"5": "caring",
|
18 |
+
"6": "confusion",
|
19 |
+
"7": "curiosity",
|
20 |
+
"8": "desire",
|
21 |
+
"9": "disappointment",
|
22 |
+
"10": "disapproval",
|
23 |
+
"11": "disgust",
|
24 |
+
"12": "embarrassment",
|
25 |
+
"13": "excitement",
|
26 |
+
"14": "fear",
|
27 |
+
"15": "gratitude",
|
28 |
+
"16": "grief",
|
29 |
+
"17": "joy",
|
30 |
+
"18": "love",
|
31 |
+
"19": "nervousness",
|
32 |
+
"20": "optimism",
|
33 |
+
"21": "pride",
|
34 |
+
"22": "realization",
|
35 |
+
"23": "relief",
|
36 |
+
"24": "remorse",
|
37 |
+
"25": "sadness",
|
38 |
+
"26": "surprise",
|
39 |
+
"27": "neutral"
|
40 |
+
},
|
41 |
+
"initializer_range": 0.02,
|
42 |
+
"label2id": {
|
43 |
+
"admiration": 0,
|
44 |
+
"amusement": 1,
|
45 |
+
"anger": 2,
|
46 |
+
"annoyance": 3,
|
47 |
+
"approval": 4,
|
48 |
+
"caring": 5,
|
49 |
+
"confusion": 6,
|
50 |
+
"curiosity": 7,
|
51 |
+
"desire": 8,
|
52 |
+
"disappointment": 9,
|
53 |
+
"disapproval": 10,
|
54 |
+
"disgust": 11,
|
55 |
+
"embarrassment": 12,
|
56 |
+
"excitement": 13,
|
57 |
+
"fear": 14,
|
58 |
+
"gratitude": 15,
|
59 |
+
"grief": 16,
|
60 |
+
"joy": 17,
|
61 |
+
"love": 18,
|
62 |
+
"nervousness": 19,
|
63 |
+
"neutral": 27,
|
64 |
+
"optimism": 20,
|
65 |
+
"pride": 21,
|
66 |
+
"realization": 22,
|
67 |
+
"relief": 23,
|
68 |
+
"remorse": 24,
|
69 |
+
"sadness": 25,
|
70 |
+
"surprise": 26
|
71 |
+
},
|
72 |
+
"max_position_embeddings": 512,
|
73 |
+
"model_type": "distilbert",
|
74 |
+
"n_heads": 12,
|
75 |
+
"n_layers": 6,
|
76 |
+
"pad_token_id": 0,
|
77 |
+
"qa_dropout": 0.1,
|
78 |
+
"seq_classif_dropout": 0.2,
|
79 |
+
"sinusoidal_pos_embds": false,
|
80 |
+
"tie_weights_": true,
|
81 |
+
"transformers_version": "4.45.1",
|
82 |
+
"vocab_size": 30522
|
83 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d00a717814d12fe9485c549526564751e5e49ba5cd25beda1cc490e7b84c109b
|
3 |
+
size 268031680
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": false,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "DistilBertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|