akhousker commited on
Commit
dce46cb
1 Parent(s): f2d1541

Add model and tokenizer files

Browse files
Files changed (6) hide show
  1. config.json +26 -20
  2. special_tokens_map.json +5 -18
  3. tf_model.h5 +2 -2
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +20 -46
  6. vocab.txt +0 -0
config.json CHANGED
@@ -1,27 +1,33 @@
1
  {
2
- "_name_or_path": "camembert-base",
 
3
  "architectures": [
4
- "CamembertForMaskedLM"
5
  ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "bos_token_id": 5,
8
- "classifier_dropout": null,
9
- "eos_token_id": 6,
10
- "hidden_act": "gelu",
11
- "hidden_dropout_prob": 0.1,
12
- "hidden_size": 768,
 
 
13
  "initializer_range": 0.02,
14
- "intermediate_size": 3072,
15
- "layer_norm_eps": 1e-05,
16
- "max_position_embeddings": 514,
17
- "model_type": "camembert",
18
- "num_attention_heads": 12,
19
- "num_hidden_layers": 12,
 
 
20
  "output_past": true,
21
- "pad_token_id": 1,
22
- "position_embedding_type": "absolute",
 
 
 
23
  "transformers_version": "4.44.2",
24
- "type_vocab_size": 1,
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
- "additional_special_tokens": [
3
- "<s>NOTUSED",
4
- "</s>NOTUSED",
5
- "<unk>NOTUSED"
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:1eea6ab38080c6af4583fb90ef0bba6f1991b1e376c008dba8052fff82b28dd7
3
- size 542808676
 
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": "<s>NOTUSED",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
10
  },
11
- "1": {
12
- "content": "<pad>",
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
- "2": {
20
- "content": "</s>NOTUSED",
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
- "4": {
28
- "content": "<unk>",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
- "5": {
36
- "content": "<s>",
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": "<s>",
76
- "eos_token": "</s>",
77
- "mask_token": "<mask>",
 
78
  "model_max_length": 512,
79
- "pad_token": "<pad>",
80
- "sep_token": "</s>",
81
- "tokenizer_class": "CamembertTokenizer",
82
- "unk_token": "<unk>"
 
 
 
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