Iseratho commited on
Commit
5e2ccbf
·
1 Parent(s): d2d9b31

Upload BartForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +71 -0
  2. generation_config.json +11 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "model_parse_xfm_bart_base-v0_1_0",
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_eos_token_id": 2,
28
+ "gradient_checkpointing": false,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1",
32
+ "2": "LABEL_2"
33
+ },
34
+ "init_std": 0.02,
35
+ "is_encoder_decoder": true,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1,
39
+ "LABEL_2": 2
40
+ },
41
+ "max_position_embeddings": 1024,
42
+ "model_type": "bart",
43
+ "normalize_before": false,
44
+ "normalize_embedding": true,
45
+ "num_beams": 4,
46
+ "num_hidden_layers": 6,
47
+ "pad_token_id": 1,
48
+ "scale_embedding": false,
49
+ "task_specific_params": {
50
+ "parse_amr": {
51
+ "corpus_dir": "data/tdata_xfm/",
52
+ "custom_save_checkpoint": true,
53
+ "eval_batch_size": 32,
54
+ "eval_fn": "dev.txt.nowiki",
55
+ "eval_num_beams": 1,
56
+ "first_eval_epoch": 1,
57
+ "max_in_len": 1024,
58
+ "max_out_len": 1024,
59
+ "max_train_graph_len": 512,
60
+ "max_train_sent_len": 100,
61
+ "model_name_or_path": "facebook/bart-base",
62
+ "save_at_end": false,
63
+ "save_tokenizer": false,
64
+ "train_fn": "train.txt.nowiki"
65
+ }
66
+ },
67
+ "torch_dtype": "float32",
68
+ "transformers_version": "4.33.0",
69
+ "use_cache": true,
70
+ "vocab_size": 50265
71
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "num_beams": 4,
9
+ "pad_token_id": 1,
10
+ "transformers_version": "4.33.0"
11
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80a6087d09bbedff012b15fd9e96092e48b4ad124294c898a536b9f4ae58c045
3
+ size 557967517