Shrey commited on
Commit
0f9be1f
·
1 Parent(s): 8859704

added a working stable version of roberta model

Browse files
Files changed (8) hide show
  1. .DS_Store +0 -0
  2. config.json +7 -5
  3. merges.txt +0 -0
  4. special_tokens_map.json +51 -1
  5. tokenizer.json +0 -0
  6. tokenizer_config.json +64 -1
  7. vocab.json +0 -0
  8. vocab.txt +0 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "_name_or_path": "/linkhome/rech/gennsp01/uyf36me/work/NLP_Classification_of_proofs/transformers_offline/transformer_roberta-base/",
3
  "architectures": [
4
- "RobertaForMaskedLM"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "bos_token_id": 0,
@@ -14,14 +14,16 @@
14
  "id2label": {
15
  "0": "LABEL_0",
16
  "1": "LABEL_1",
17
- "2": "LABEL_2"
 
18
  },
19
  "initializer_range": 0.02,
20
  "intermediate_size": 3072,
21
  "label2id": {
22
  "LABEL_0": 0,
23
  "LABEL_1": 1,
24
- "LABEL_2": 2
 
25
  },
26
  "layer_norm_eps": 1e-05,
27
  "max_position_embeddings": 514,
@@ -30,7 +32,7 @@
30
  "num_hidden_layers": 12,
31
  "pad_token_id": 1,
32
  "position_embedding_type": "absolute",
33
- "transformers_version": "4.23.0.dev0",
34
  "type_vocab_size": 1,
35
  "use_cache": true,
36
  "vocab_size": 50265
 
1
  {
2
+ "_name_or_path": "./roberta_from_scratch_ft",
3
  "architectures": [
4
+ "RobertaForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "bos_token_id": 0,
 
14
  "id2label": {
15
  "0": "LABEL_0",
16
  "1": "LABEL_1",
17
+ "2": "LABEL_2",
18
+ "3": "LABEL_3"
19
  },
20
  "initializer_range": 0.02,
21
  "intermediate_size": 3072,
22
  "label2id": {
23
  "LABEL_0": 0,
24
  "LABEL_1": 1,
25
+ "LABEL_2": 2,
26
+ "LABEL_3": 3
27
  },
28
  "layer_norm_eps": 1e-05,
29
  "max_position_embeddings": 514,
 
32
  "num_hidden_layers": 12,
33
  "pad_token_id": 1,
34
  "position_embedding_type": "absolute",
35
+ "transformers_version": "4.24.0",
36
  "type_vocab_size": 1,
37
  "use_cache": true,
38
  "vocab_size": 50265
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json CHANGED
@@ -1 +1,51 @@
1
- {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1 +1,64 @@
1
- {"do_lower_case": true, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "max_length": 512, "truncation": true, "name_or_path": "./vocabularies/trained_tokenizer/vocab.txt", "tokenizer_class": "BertTokenizer"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "cls_token": {
12
+ "__type": "AddedToken",
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "eos_token": {
20
+ "__type": "AddedToken",
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "errors": "replace",
28
+ "mask_token": {
29
+ "__type": "AddedToken",
30
+ "content": "<mask>",
31
+ "lstrip": true,
32
+ "normalized": true,
33
+ "rstrip": false,
34
+ "single_word": false
35
+ },
36
+ "name_or_path": "./roberta_pretrained_from_scratch",
37
+ "pad_token": {
38
+ "__type": "AddedToken",
39
+ "content": "<pad>",
40
+ "lstrip": false,
41
+ "normalized": true,
42
+ "rstrip": false,
43
+ "single_word": false
44
+ },
45
+ "sep_token": {
46
+ "__type": "AddedToken",
47
+ "content": "</s>",
48
+ "lstrip": false,
49
+ "normalized": true,
50
+ "rstrip": false,
51
+ "single_word": false
52
+ },
53
+ "special_tokens_map_file": null,
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": {
57
+ "__type": "AddedToken",
58
+ "content": "<unk>",
59
+ "lstrip": false,
60
+ "normalized": true,
61
+ "rstrip": false,
62
+ "single_word": false
63
+ }
64
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
vocab.txt DELETED
The diff for this file is too large to render. See raw diff