lefnire commited on
Commit
1a4e7f8
1 Parent(s): 5ce62a4

Upload folder using huggingface_hub

Browse files
config.json CHANGED
@@ -1,26 +1,21 @@
1
  {
2
- "_name_or_path": "./checkpoint-80",
3
- "activation_dropout": 0.1,
4
  "activation_function": "gelu",
5
- "adaptive": true,
6
- "add_bias_logits": false,
7
- "add_final_layer_norm": false,
8
  "architectures": [
9
- "LSGBartForConditionalGeneration"
 
 
 
 
 
 
 
 
 
10
  ],
11
- "attention_dropout": 0.1,
12
- "auto_map": {
13
- "AutoConfig": "modeling_lsg_bart.LSGBartConfig",
14
- "AutoModel": "modeling_lsg_bart.LSGBartModel",
15
- "AutoModelForCausalLM": "modeling_lsg_bart.LSGBartForCausalLM",
16
- "AutoModelForQuestionAnswering": "modeling_lsg_bart.LSGBartForQuestionAnswering",
17
- "AutoModelForSeq2SeqLM": "modeling_lsg_bart.LSGBartForConditionalGeneration",
18
- "AutoModelForSequenceClassification": "modeling_lsg_bart.LSGBartForSequenceClassification"
19
- },
20
- "base_model_prefix": "lsg",
21
- "block_size": 128,
22
  "bos_token_id": 0,
23
- "classif_dropout": 0.1,
24
  "classifier_dropout": 0.0,
25
  "d_model": 768,
26
  "decoder_attention_heads": 12,
@@ -35,8 +30,6 @@
35
  "encoder_layerdrop": 0.0,
36
  "encoder_layers": 6,
37
  "eos_token_id": 2,
38
- "forced_bos_token_id": 0,
39
- "forced_eos_token_id": 2,
40
  "id2label": {
41
  "0": "LABEL_0",
42
  "1": "LABEL_1",
@@ -49,47 +42,17 @@
49
  "LABEL_1": 1,
50
  "LABEL_2": 2
51
  },
52
- "lsh_num_pre_rounds": 1,
53
- "mask_first_token": false,
54
  "max_length": 384,
55
- "max_position_embeddings": 4096,
56
  "min_length": 100,
57
- "model_type": "bart",
58
  "no_repeat_ngram_size": 3,
59
- "normalize_before": false,
60
- "normalize_embedding": true,
61
  "num_beams": 2,
62
- "num_global_tokens": 1,
63
  "num_hidden_layers": 6,
64
  "pad_token_id": 1,
65
- "pass_global_tokens_to_decoder": true,
66
- "pool_with_global": true,
67
- "scale_embedding": false,
68
- "sparse_block_size": 128,
69
- "sparsity_factor": 2,
70
- "sparsity_type": "norm",
71
- "task_specific_params": {
72
- "summarization": {
73
- "length_penalty": 1.0,
74
- "max_length": 128,
75
- "min_length": 12,
76
- "num_beams": 4
77
- },
78
- "summarization_cnn": {
79
- "length_penalty": 2.0,
80
- "max_length": 142,
81
- "min_length": 56,
82
- "num_beams": 4
83
- },
84
- "summarization_xsum": {
85
- "length_penalty": 1.0,
86
- "max_length": 62,
87
- "min_length": 11,
88
- "num_beams": 6
89
- }
90
- },
91
  "torch_dtype": "float32",
92
  "transformers_version": "4.30.1",
93
- "use_cache": false,
94
  "vocab_size": 50265
95
  }
 
1
  {
2
+ "_name_or_path": "./checkpoint-200",
3
+ "activation_dropout": 0.0,
4
  "activation_function": "gelu",
 
 
 
5
  "architectures": [
6
+ "LEDForConditionalGeneration"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "attention_window": [
10
+ 1024,
11
+ 1024,
12
+ 1024,
13
+ 1024,
14
+ 1024,
15
+ 1024
16
  ],
 
 
 
 
 
 
 
 
 
 
 
17
  "bos_token_id": 0,
18
+ "classif_dropout": 0.0,
19
  "classifier_dropout": 0.0,
20
  "d_model": 768,
21
  "decoder_attention_heads": 12,
 
30
  "encoder_layerdrop": 0.0,
31
  "encoder_layers": 6,
32
  "eos_token_id": 2,
 
 
33
  "id2label": {
34
  "0": "LABEL_0",
35
  "1": "LABEL_1",
 
42
  "LABEL_1": 1,
43
  "LABEL_2": 2
44
  },
45
+ "max_decoder_position_embeddings": 1024,
46
+ "max_encoder_position_embeddings": 16384,
47
  "max_length": 384,
 
48
  "min_length": 100,
49
+ "model_type": "led",
50
  "no_repeat_ngram_size": 3,
 
 
51
  "num_beams": 2,
 
52
  "num_hidden_layers": 6,
53
  "pad_token_id": 1,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  "torch_dtype": "float32",
55
  "transformers_version": "4.30.1",
56
+ "use_cache": true,
57
  "vocab_size": 50265
58
  }
generation_config.json CHANGED
@@ -3,8 +3,6 @@
3
  "decoder_start_token_id": 2,
4
  "early_stopping": true,
5
  "eos_token_id": 2,
6
- "forced_bos_token_id": 0,
7
- "forced_eos_token_id": 2,
8
  "max_length": 384,
9
  "min_length": 100,
10
  "no_repeat_ngram_size": 3,
 
3
  "decoder_start_token_id": 2,
4
  "early_stopping": true,
5
  "eos_token_id": 2,
 
 
6
  "max_length": 384,
7
  "min_length": 100,
8
  "no_repeat_ngram_size": 3,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b47951d6fe49cb468c855de22d75afb7c96d3c3befb69abf3398eb3de1e51750
3
- size 578415073
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31c85199ff57a7b76bd8d8ae90ac7a51fbd9eeb88e519b2aeca892be70a66c76
3
+ size 647676653
special_tokens_map.json CHANGED
@@ -1,15 +1,51 @@
1
  {
2
- "bos_token": "<s>",
3
- "cls_token": "<s>",
4
- "eos_token": "</s>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  "mask_token": {
6
  "content": "<mask>",
7
  "lstrip": true,
8
- "normalized": false,
9
  "rstrip": false,
10
  "single_word": false
11
  },
12
- "pad_token": "<pad>",
13
- "sep_token": "</s>",
14
- "unk_token": "<unk>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
 
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 CHANGED
@@ -23,7 +23,7 @@
23
  "single_word": false,
24
  "lstrip": false,
25
  "rstrip": false,
26
- "normalized": false,
27
  "special": true
28
  },
29
  {
@@ -32,7 +32,7 @@
32
  "single_word": false,
33
  "lstrip": false,
34
  "rstrip": false,
35
- "normalized": false,
36
  "special": true
37
  },
38
  {
@@ -41,7 +41,7 @@
41
  "single_word": false,
42
  "lstrip": false,
43
  "rstrip": false,
44
- "normalized": false,
45
  "special": true
46
  },
47
  {
@@ -50,7 +50,7 @@
50
  "single_word": false,
51
  "lstrip": false,
52
  "rstrip": false,
53
- "normalized": false,
54
  "special": true
55
  },
56
  {
@@ -59,7 +59,7 @@
59
  "single_word": false,
60
  "lstrip": true,
61
  "rstrip": false,
62
- "normalized": false,
63
  "special": true
64
  }
65
  ],
 
23
  "single_word": false,
24
  "lstrip": false,
25
  "rstrip": false,
26
+ "normalized": true,
27
  "special": true
28
  },
29
  {
 
32
  "single_word": false,
33
  "lstrip": false,
34
  "rstrip": false,
35
+ "normalized": true,
36
  "special": true
37
  },
38
  {
 
41
  "single_word": false,
42
  "lstrip": false,
43
  "rstrip": false,
44
+ "normalized": true,
45
  "special": true
46
  },
47
  {
 
50
  "single_word": false,
51
  "lstrip": false,
52
  "rstrip": false,
53
+ "normalized": true,
54
  "special": true
55
  },
56
  {
 
59
  "single_word": false,
60
  "lstrip": true,
61
  "rstrip": false,
62
+ "normalized": true,
63
  "special": true
64
  }
65
  ],
tokenizer_config.json CHANGED
@@ -1,15 +1,64 @@
1
  {
2
  "add_prefix_space": false,
3
- "bos_token": "<s>",
 
 
 
 
 
 
 
4
  "clean_up_tokenization_spaces": true,
5
- "cls_token": "<s>",
6
- "eos_token": "</s>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  "errors": "replace",
8
- "mask_token": "<mask>",
9
- "model_max_length": 4096,
10
- "pad_token": "<pad>",
11
- "sep_token": "</s>",
12
- "tokenizer_class": "BartTokenizer",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  "trim_offsets": true,
14
- "unk_token": "<unk>"
 
 
 
 
 
 
 
15
  }
 
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
  "clean_up_tokenization_spaces": true,
12
+ "cls_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "eos_token": {
21
+ "__type": "AddedToken",
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
  "errors": "replace",
29
+ "mask_token": {
30
+ "__type": "AddedToken",
31
+ "content": "<mask>",
32
+ "lstrip": true,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "model_max_length": 16384,
38
+ "pad_token": {
39
+ "__type": "AddedToken",
40
+ "content": "<pad>",
41
+ "lstrip": false,
42
+ "normalized": true,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "sep_token": {
47
+ "__type": "AddedToken",
48
+ "content": "</s>",
49
+ "lstrip": false,
50
+ "normalized": true,
51
+ "rstrip": false,
52
+ "single_word": false
53
+ },
54
+ "tokenizer_class": "LEDTokenizer",
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
  }