Add model and tokenizer files
Browse files- config.json +26 -20
- special_tokens_map.json +5 -18
- tf_model.h5 +2 -2
- tokenizer.json +0 -0
- tokenizer_config.json +20 -46
- vocab.txt +0 -0
config.json
CHANGED
@@ -1,27 +1,33 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
|
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
|
|
|
|
|
13 |
"initializer_range": 0.02,
|
14 |
-
"
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
"
|
19 |
-
"
|
|
|
|
|
20 |
"output_past": true,
|
21 |
-
"pad_token_id":
|
22 |
-
"
|
|
|
|
|
|
|
23 |
"transformers_version": "4.44.2",
|
24 |
-
"
|
25 |
-
"use_cache": true,
|
26 |
-
"vocab_size": 32005
|
27 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased-finetuned-sst-2-english",
|
3 |
+
"activation": "gelu",
|
4 |
"architectures": [
|
5 |
+
"DistilBertForSequenceClassification"
|
6 |
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"finetuning_task": "sst-2",
|
11 |
+
"hidden_dim": 3072,
|
12 |
+
"id2label": {
|
13 |
+
"0": "NEGATIVE",
|
14 |
+
"1": "POSITIVE"
|
15 |
+
},
|
16 |
"initializer_range": 0.02,
|
17 |
+
"label2id": {
|
18 |
+
"NEGATIVE": 0,
|
19 |
+
"POSITIVE": 1
|
20 |
+
},
|
21 |
+
"max_position_embeddings": 512,
|
22 |
+
"model_type": "distilbert",
|
23 |
+
"n_heads": 12,
|
24 |
+
"n_layers": 6,
|
25 |
"output_past": true,
|
26 |
+
"pad_token_id": 0,
|
27 |
+
"qa_dropout": 0.1,
|
28 |
+
"seq_classif_dropout": 0.2,
|
29 |
+
"sinusoidal_pos_embds": false,
|
30 |
+
"tie_weights_": true,
|
31 |
"transformers_version": "4.44.2",
|
32 |
+
"vocab_size": 30522
|
|
|
|
|
33 |
}
|
special_tokens_map.json
CHANGED
@@ -1,20 +1,7 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
]
|
7 |
-
"bos_token": "<s>",
|
8 |
-
"cls_token": "<s>",
|
9 |
-
"eos_token": "</s>",
|
10 |
-
"mask_token": {
|
11 |
-
"content": "<mask>",
|
12 |
-
"lstrip": true,
|
13 |
-
"normalized": false,
|
14 |
-
"rstrip": false,
|
15 |
-
"single_word": false
|
16 |
-
},
|
17 |
-
"pad_token": "<pad>",
|
18 |
-
"sep_token": "</s>",
|
19 |
-
"unk_token": "<unk>"
|
20 |
}
|
|
|
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
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2ae89159d429dd2433bb8a627d29e6ec84949a59a4707a79fa2f49cfed03cd98
|
3 |
+
size 267955144
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -1,63 +1,39 @@
|
|
1 |
{
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
-
"content": "
|
5 |
"lstrip": false,
|
6 |
"normalized": false,
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
10 |
},
|
11 |
-
"
|
12 |
-
"content": "
|
13 |
"lstrip": false,
|
14 |
"normalized": false,
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
18 |
},
|
19 |
-
"
|
20 |
-
"content": "
|
21 |
"lstrip": false,
|
22 |
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
"special": true
|
26 |
},
|
27 |
-
"
|
28 |
-
"content": "
|
29 |
"lstrip": false,
|
30 |
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
-
"
|
36 |
-
"content": "
|
37 |
-
"lstrip": false,
|
38 |
-
"normalized": false,
|
39 |
-
"rstrip": false,
|
40 |
-
"single_word": false,
|
41 |
-
"special": true
|
42 |
-
},
|
43 |
-
"6": {
|
44 |
-
"content": "</s>",
|
45 |
-
"lstrip": false,
|
46 |
-
"normalized": false,
|
47 |
-
"rstrip": false,
|
48 |
-
"single_word": false,
|
49 |
-
"special": true
|
50 |
-
},
|
51 |
-
"32004": {
|
52 |
-
"content": "<mask>",
|
53 |
-
"lstrip": true,
|
54 |
-
"normalized": false,
|
55 |
-
"rstrip": false,
|
56 |
-
"single_word": false,
|
57 |
-
"special": true
|
58 |
-
},
|
59 |
-
"32005": {
|
60 |
-
"content": "<unk>NOTUSED",
|
61 |
"lstrip": false,
|
62 |
"normalized": false,
|
63 |
"rstrip": false,
|
@@ -65,19 +41,17 @@
|
|
65 |
"special": true
|
66 |
}
|
67 |
},
|
68 |
-
"additional_special_tokens": [
|
69 |
-
"<s>NOTUSED",
|
70 |
-
"</s>NOTUSED",
|
71 |
-
"<unk>NOTUSED"
|
72 |
-
],
|
73 |
-
"bos_token": "<s>",
|
74 |
"clean_up_tokenization_spaces": true,
|
75 |
-
"cls_token": "
|
76 |
-
"
|
77 |
-
"
|
|
|
78 |
"model_max_length": 512,
|
79 |
-
"
|
80 |
-
"
|
81 |
-
"
|
82 |
-
"
|
|
|
|
|
|
|
83 |
}
|
|
|
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,
|
|
|
41 |
"special": true
|
42 |
}
|
43 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "DistilBertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|