liamcripwell commited on
Commit
739c1e1
1 Parent(s): d4b2b98

Upload BartForContextualGeneration

Browse files
Files changed (3) hide show
  1. config.json +92 -0
  2. generation_config.json +14 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/lcripwell/synalp_drive/liam/hf_models/o-conbart/",
3
+ "activation_dropout": 0.1,
4
+ "activation_function": "gelu",
5
+ "add_bias_logits": false,
6
+ "add_context": true,
7
+ "add_final_layer_norm": false,
8
+ "architectures": [
9
+ "BartForContextualGeneration"
10
+ ],
11
+ "attention_dropout": 0.1,
12
+ "bos_token_id": 0,
13
+ "class_labels": {
14
+ "delete": 3,
15
+ "ignore": 0,
16
+ "rephrase": 1,
17
+ "split": 2
18
+ },
19
+ "classif_dropout": 0.1,
20
+ "classifier_dropout": 0.0,
21
+ "context_window": 13,
22
+ "d_model": 768,
23
+ "decoder_attention_heads": 12,
24
+ "decoder_ffn_dim": 3072,
25
+ "decoder_layerdrop": 0.0,
26
+ "decoder_layers": 6,
27
+ "decoder_start_token_id": 2,
28
+ "dropout": 0.1,
29
+ "early_stopping": true,
30
+ "encoder_attention_heads": 12,
31
+ "encoder_ffn_dim": 3072,
32
+ "encoder_layerdrop": 0.0,
33
+ "encoder_layers": 6,
34
+ "eos_token_id": 2,
35
+ "forced_bos_token_id": 0,
36
+ "forced_eos_token_id": 2,
37
+ "gradient_checkpointing": false,
38
+ "id2label": {
39
+ "0": "LABEL_0",
40
+ "1": "LABEL_1",
41
+ "2": "LABEL_2"
42
+ },
43
+ "init_std": 0.02,
44
+ "is_encoder_decoder": true,
45
+ "label2id": {
46
+ "LABEL_0": 0,
47
+ "LABEL_1": 1,
48
+ "LABEL_2": 2
49
+ },
50
+ "max_length": 1024,
51
+ "max_position_embeddings": 1024,
52
+ "model_type": "context-bart",
53
+ "no_repeat_ngram_size": 3,
54
+ "normalize_before": false,
55
+ "normalize_embedding": true,
56
+ "num_beams": 4,
57
+ "num_hidden_layers": 6,
58
+ "op_tokens": [
59
+ "<COPY>",
60
+ "<REPHRASE>",
61
+ "<SPLIT>",
62
+ "<DELETE>"
63
+ ],
64
+ "pad_token_id": 1,
65
+ "plan_prefix": false,
66
+ "plan_sep": false,
67
+ "scale_embedding": false,
68
+ "task_specific_params": {
69
+ "summarization": {
70
+ "length_penalty": 1.0,
71
+ "max_length": 128,
72
+ "min_length": 12,
73
+ "num_beams": 4
74
+ },
75
+ "summarization_cnn": {
76
+ "length_penalty": 2.0,
77
+ "max_length": 142,
78
+ "min_length": 56,
79
+ "num_beams": 4
80
+ },
81
+ "summarization_xsum": {
82
+ "length_penalty": 1.0,
83
+ "max_length": 62,
84
+ "min_length": 11,
85
+ "num_beams": 6
86
+ }
87
+ },
88
+ "torch_dtype": "float32",
89
+ "transformers_version": "4.29.1",
90
+ "use_cache": true,
91
+ "vocab_size": 50274
92
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 1024,
10
+ "no_repeat_ngram_size": 3,
11
+ "num_beams": 4,
12
+ "pad_token_id": 1,
13
+ "transformers_version": "4.29.1"
14
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c13162ef57f35655624d4099178cb30c3442777c3281468eb4d6b41e682ba4d
3
+ size 621070035