ZainAli60 commited on
Commit
def10c5
·
verified ·
1 Parent(s): 114e388

Upload BartForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +61 -32
  2. generation_config.json +9 -2
  3. model.safetensors +2 -2
config.json CHANGED
@@ -1,46 +1,75 @@
1
  {
2
- "_name_or_path": "/root/pretraining/local-models/training/2024-03-10_21-32-40",
3
- "_num_labels": 1,
4
- "activation_function": "gelu_new",
 
 
5
  "architectures": [
6
- "GPT2LMHeadModel"
7
  ],
8
- "attn_pdrop": 0.1,
9
- "bos_token_id": 50256,
10
- "embd_pdrop": 0.1,
11
- "eos_token_id": 50256,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  "id2label": {
13
- "0": "LABEL_0"
 
 
14
  },
15
- "initializer_range": 0.02,
 
 
16
  "label2id": {
17
- "LABEL_0": 0
 
 
18
  },
19
- "layer_norm_epsilon": 1e-05,
20
- "model_type": "gpt2",
21
- "n_ctx": 1024,
22
- "n_embd": 768,
23
- "n_head": 12,
24
- "n_inner": null,
25
- "n_layer": 6,
26
- "n_positions": 1024,
27
- "reorder_and_upcast_attn": false,
28
- "resid_pdrop": 0.1,
29
- "scale_attn_by_inverse_layer_idx": false,
30
- "scale_attn_weights": true,
31
- "summary_activation": null,
32
- "summary_first_dropout": 0.1,
33
- "summary_proj_to_labels": true,
34
- "summary_type": "cls_index",
35
- "summary_use_proj": true,
36
  "task_specific_params": {
37
- "text-generation": {
38
- "do_sample": true,
39
- "max_length": 50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
  },
42
  "torch_dtype": "float32",
43
  "transformers_version": "4.38.0",
44
  "use_cache": true,
45
- "vocab_size": 50257
46
  }
 
1
  {
2
+ "_name_or_path": "/root/pretraining/local-models/training/2024-03-10_22-10-10",
3
+ "activation_dropout": 0.1,
4
+ "activation_function": "gelu",
5
+ "add_bias_logits": false,
6
+ "add_final_layer_norm": false,
7
  "architectures": [
8
+ "BartForCausalLM"
9
  ],
10
+ "attention_dropout": 0.1,
11
+ "bos_token_id": 0,
12
+ "classif_dropout": 0.1,
13
+ "classifier_dropout": 0.0,
14
+ "d_model": 1024,
15
+ "decoder_attention_heads": 16,
16
+ "decoder_ffn_dim": 4096,
17
+ "decoder_layerdrop": 0.0,
18
+ "decoder_layers": 12,
19
+ "decoder_start_token_id": 2,
20
+ "dropout": 0.1,
21
+ "early_stopping": true,
22
+ "encoder_attention_heads": 16,
23
+ "encoder_ffn_dim": 4096,
24
+ "encoder_layerdrop": 0.0,
25
+ "encoder_layers": 12,
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_decoder": true,
37
+ "is_encoder_decoder": false,
38
  "label2id": {
39
+ "LABEL_0": 0,
40
+ "LABEL_1": 1,
41
+ "LABEL_2": 2
42
  },
43
+ "max_position_embeddings": 1024,
44
+ "model_type": "bart",
45
+ "no_repeat_ngram_size": 3,
46
+ "normalize_before": false,
47
+ "num_beams": 4,
48
+ "num_hidden_layers": 12,
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.38.0",
73
  "use_cache": true,
74
+ "vocab_size": 50265
75
  }
generation_config.json CHANGED
@@ -1,6 +1,13 @@
1
  {
2
  "_from_model_config": true,
3
- "bos_token_id": 50256,
4
- "eos_token_id": 50256,
 
 
 
 
 
 
 
5
  "transformers_version": "4.38.0"
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.38.0"
13
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:980dcf6387acd400f4619011d9ed35146c60b1048bad58c5f933bd0d38ef57d3
3
- size 327657928
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0b3c3ac3ee784137b3b0652509dc19f0138043e99788cf9163875dba332d337
3
+ size 1016373744