venkyb commited on
Commit
b072eab
1 Parent(s): ab22b4c

Upload BartForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +79 -0
  2. generation_config.json +12 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
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
+ "clip_val": 2.5,
15
+ "d_model": 768,
16
+ "decoder_attention_heads": 12,
17
+ "decoder_ffn_dim": 3072,
18
+ "decoder_layerdrop": 0.0,
19
+ "decoder_layers": 3,
20
+ "decoder_start_token_id": 2,
21
+ "dropout": 0.1,
22
+ "early_stopping": true,
23
+ "encoder_attention_heads": 12,
24
+ "encoder_ffn_dim": 3072,
25
+ "encoder_layerdrop": 0.0,
26
+ "encoder_layers": 6,
27
+ "eos_token_id": 2,
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
+ "input_bits": 8,
37
+ "is_encoder_decoder": true,
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
+ "normalize_embedding": true,
48
+ "num_beams": 4,
49
+ "num_hidden_layers": 6,
50
+ "pad_token_id": 1,
51
+ "quantize_act": true,
52
+ "scale_embedding": false,
53
+ "task_specific_params": {
54
+ "summarization": {
55
+ "length_penalty": 1.0,
56
+ "max_length": 128,
57
+ "min_length": 12,
58
+ "num_beams": 4
59
+ },
60
+ "summarization_cnn": {
61
+ "length_penalty": 2.0,
62
+ "max_length": 142,
63
+ "min_length": 56,
64
+ "num_beams": 4
65
+ },
66
+ "summarization_xsum": {
67
+ "length_penalty": 1.0,
68
+ "max_length": 62,
69
+ "min_length": 11,
70
+ "num_beams": 6
71
+ }
72
+ },
73
+ "torch_dtype": "float32",
74
+ "transformers_version": null,
75
+ "use_cache": true,
76
+ "vocab_size": 50265,
77
+ "vocab_size_or_config_json_file": -1,
78
+ "weight_bits": 2
79
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
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_eos_token_id": 2,
8
+ "no_repeat_ngram_size": 3,
9
+ "num_beams": 4,
10
+ "pad_token_id": 1,
11
+ "transformers_version": "4.31.0"
12
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a19c0d89e874cdc372ae5bb11757aa72706eab18f36a317ae3841b695930584
3
+ size 444585145