anshajgoyal commited on
Commit
0cda074
·
1 Parent(s): add72d8

model push

Browse files
config.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "model/",
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": 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_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
+ "no_repeat_ngram_size": 3,
44
+ "normalize_before": false,
45
+ "num_beams": 4,
46
+ "num_hidden_layers": 12,
47
+ "pad_token_id": 1,
48
+ "scale_embedding": false,
49
+ "task_specific_params": {
50
+ "summarization": {
51
+ "length_penalty": 1.0,
52
+ "max_length": 128,
53
+ "min_length": 12,
54
+ "num_beams": 4
55
+ },
56
+ "summarization_cnn": {
57
+ "length_penalty": 2.0,
58
+ "max_length": 142,
59
+ "min_length": 56,
60
+ "num_beams": 4
61
+ },
62
+ "summarization_xsum": {
63
+ "length_penalty": 1.0,
64
+ "max_length": 62,
65
+ "min_length": 11,
66
+ "num_beams": 6
67
+ }
68
+ },
69
+ "torch_dtype": "float32",
70
+ "transformers_version": "4.12.2",
71
+ "use_cache": true,
72
+ "vocab_size": 50265
73
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model_args.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "adafactor_beta1": null,
3
+ "adafactor_clip_threshold": 1.0,
4
+ "adafactor_decay_rate": -0.8,
5
+ "adafactor_eps": [
6
+ 1e-30,
7
+ 0.001
8
+ ],
9
+ "adafactor_relative_step": true,
10
+ "adafactor_scale_parameter": true,
11
+ "adafactor_warmup_init": true,
12
+ "adam_epsilon": 1e-08,
13
+ "best_model_dir": "outputs/best_model",
14
+ "cache_dir": "cache_dir/",
15
+ "config": {},
16
+ "cosine_schedule_num_cycles": 0.5,
17
+ "custom_layer_parameters": [],
18
+ "custom_parameter_groups": [],
19
+ "dataloader_num_workers": 0,
20
+ "do_lower_case": false,
21
+ "dynamic_quantize": false,
22
+ "early_stopping_consider_epochs": false,
23
+ "early_stopping_delta": 0,
24
+ "early_stopping_metric": "eval_loss",
25
+ "early_stopping_metric_minimize": true,
26
+ "early_stopping_patience": 3,
27
+ "encoding": null,
28
+ "eval_batch_size": 8,
29
+ "evaluate_during_training": false,
30
+ "evaluate_during_training_silent": true,
31
+ "evaluate_during_training_steps": 2000,
32
+ "evaluate_during_training_verbose": false,
33
+ "evaluate_each_epoch": true,
34
+ "fp16": true,
35
+ "gradient_accumulation_steps": 1,
36
+ "learning_rate": 5e-05,
37
+ "local_rank": -1,
38
+ "logging_steps": 50,
39
+ "loss_type": null,
40
+ "loss_args": {},
41
+ "manual_seed": null,
42
+ "max_grad_norm": 1.0,
43
+ "max_seq_length": 128,
44
+ "model_name": "model/",
45
+ "model_type": "bart",
46
+ "multiprocessing_chunksize": -1,
47
+ "n_gpu": 1,
48
+ "no_cache": false,
49
+ "no_save": false,
50
+ "not_saved_args": [],
51
+ "num_train_epochs": 10,
52
+ "optimizer": "AdamW",
53
+ "output_dir": "outputs/",
54
+ "overwrite_output_dir": true,
55
+ "polynomial_decay_schedule_lr_end": 1e-07,
56
+ "polynomial_decay_schedule_power": 1.0,
57
+ "process_count": 6,
58
+ "quantized_model": false,
59
+ "reprocess_input_data": true,
60
+ "save_best_model": true,
61
+ "save_eval_checkpoints": true,
62
+ "save_model_every_epoch": true,
63
+ "save_optimizer_and_scheduler": true,
64
+ "save_steps": -1,
65
+ "scheduler": "linear_schedule_with_warmup",
66
+ "silent": false,
67
+ "skip_special_tokens": true,
68
+ "tensorboard_dir": null,
69
+ "thread_count": null,
70
+ "tokenizer_name": null,
71
+ "tokenizer_type": null,
72
+ "train_batch_size": 8,
73
+ "train_custom_parameters_only": false,
74
+ "use_cached_eval_features": false,
75
+ "use_early_stopping": false,
76
+ "use_hf_datasets": false,
77
+ "use_multiprocessing": false,
78
+ "use_multiprocessing_for_evaluation": false,
79
+ "wandb_kwargs": {},
80
+ "wandb_project": "Paraphrasing with BART",
81
+ "warmup_ratio": 0.06,
82
+ "warmup_steps": 5609,
83
+ "weight_decay": 0.0,
84
+ "model_class": "Seq2SeqModel",
85
+ "base_marian_model_name": "model/",
86
+ "dataset_class": null,
87
+ "dataset_cache_dir": null,
88
+ "do_sample": false,
89
+ "early_stopping": true,
90
+ "evaluate_generated_text": false,
91
+ "faiss_d": 768,
92
+ "faiss_m": 128,
93
+ "include_title_in_knowledge_dataset": true,
94
+ "length_penalty": 2.0,
95
+ "max_length": 128,
96
+ "max_steps": -1,
97
+ "num_beams": 4,
98
+ "num_return_sequences": 1,
99
+ "rag_embed_batch_size": 16,
100
+ "repetition_penalty": 1.0,
101
+ "save_knowledge_dataset": true,
102
+ "save_knowledge_dataset_with_checkpoints": false,
103
+ "split_text_character": " ",
104
+ "split_text_n": 100,
105
+ "src_lang": "en_XX",
106
+ "tgt_lang": "ro_RO",
107
+ "top_k": 100,
108
+ "top_p": 0.95,
109
+ "use_multiprocessed_decoding": false
110
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fff9ac06de4e7d61218ded82ba3c1d36451b1c6e83904904ad5f97b0ca7adc45
3
+ size 1625557313
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "model/", "tokenizer_class": "BartTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:188b9bd89a5e9ae61bb74941a9f480e15348f579fc52ac8cebea17a94231433e
3
+ size 3439
vocab.json ADDED
The diff for this file is too large to render. See raw diff