baotoan2002 commited on
Commit
ee21a37
1 Parent(s): c7f0e2d

Upload model

Browse files
Files changed (3) hide show
  1. config.json +29 -65
  2. generation_config.json +2 -9
  3. pytorch_model.bin +2 -2
config.json CHANGED
@@ -1,75 +1,39 @@
1
  {
2
- "_name_or_path": "facebook/bart-base",
3
- "activation_dropout": 0.1,
4
- "activation_function": "gelu",
5
- "add_bias_logits": false,
6
- "add_final_layer_norm": false,
7
  "architectures": [
8
- "BartForConditionalGeneration"
9
  ],
10
- "attention_dropout": 0.1,
11
- "bos_token_id": 0,
12
- "classif_dropout": 0.1,
13
- "classifier_dropout": 0.0,
14
- "d_model": 768,
15
- "decoder_attention_heads": 12,
16
- "decoder_ffn_dim": 3072,
17
- "decoder_layerdrop": 0.0,
18
- "decoder_layers": 6,
19
- "decoder_start_token_id": 2,
20
- "dropout": 0.1,
21
- "early_stopping": true,
22
- "encoder_attention_heads": 12,
23
- "encoder_ffn_dim": 3072,
24
- "encoder_layerdrop": 0.0,
25
- "encoder_layers": 6,
26
- "eos_token_id": 2,
27
- "forced_bos_token_id": 0,
28
- "forced_eos_token_id": 2,
29
- "gradient_checkpointing": false,
30
- "id2label": {
31
- "0": "LABEL_0",
32
- "1": "LABEL_1",
33
- "2": "LABEL_2"
34
- },
35
- "init_std": 0.02,
36
- "is_encoder_decoder": true,
37
- "label2id": {
38
- "LABEL_0": 0,
39
- "LABEL_1": 1,
40
- "LABEL_2": 2
41
- },
42
- "max_position_embeddings": 1024,
43
- "model_type": "bart",
44
- "no_repeat_ngram_size": 3,
45
- "normalize_before": false,
46
- "normalize_embedding": true,
47
- "num_beams": 4,
48
- "num_hidden_layers": 6,
49
- "pad_token_id": 1,
50
- "scale_embedding": false,
51
  "task_specific_params": {
52
- "summarization": {
53
- "length_penalty": 1.0,
54
- "max_length": 128,
55
- "min_length": 12,
56
- "num_beams": 4
57
- },
58
- "summarization_cnn": {
59
- "length_penalty": 2.0,
60
- "max_length": 142,
61
- "min_length": 56,
62
- "num_beams": 4
63
- },
64
- "summarization_xsum": {
65
- "length_penalty": 1.0,
66
- "max_length": 62,
67
- "min_length": 11,
68
- "num_beams": 6
69
  }
70
  },
71
  "torch_dtype": "float32",
72
  "transformers_version": "4.29.0.dev0",
73
  "use_cache": true,
74
- "vocab_size": 50265
75
  }
 
1
  {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
 
 
 
4
  "architectures": [
5
+ "GPT2LMHeadModel"
6
  ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
  },
35
  "torch_dtype": "float32",
36
  "transformers_version": "4.29.0.dev0",
37
  "use_cache": true,
38
+ "vocab_size": 50257
39
  }
generation_config.json CHANGED
@@ -1,13 +1,6 @@
1
  {
2
  "_from_model_config": true,
3
- "bos_token_id": 0,
4
- "decoder_start_token_id": 2,
5
- "early_stopping": true,
6
- "eos_token_id": 2,
7
- "forced_bos_token_id": 0,
8
- "forced_eos_token_id": 2,
9
- "no_repeat_ngram_size": 3,
10
- "num_beams": 4,
11
- "pad_token_id": 1,
12
  "transformers_version": "4.29.0.dev0"
13
  }
 
1
  {
2
  "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
 
 
 
 
 
 
 
5
  "transformers_version": "4.29.0.dev0"
6
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:86442190343ef1ab59a74f096052605bd07c47f5e5bbef46c1eeff2f992d82ef
3
- size 557971229
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d2b3e014e0d77d152ef22637761073b0c6303cd70ede9d1919a1d0567d3434c
3
+ size 510398013