C2001ljy commited on
Commit
04a0c9b
1 Parent(s): a63f54f

Model save

Browse files
Files changed (16) hide show
  1. README.md +68 -0
  2. config.json +228 -0
  3. generation_config.json +18 -0
  4. model.safetensors +3 -0
  5. runs/Aug03_00-02-02_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722614523.autodl-container-85074c9f82-4dcdba1e.3581.0 +3 -0
  6. runs/Aug03_00-11-34_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615095.autodl-container-85074c9f82-4dcdba1e.6126.0 +3 -0
  7. runs/Aug03_00-20-29_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615630.autodl-container-85074c9f82-4dcdba1e.8501.0 +3 -0
  8. runs/Aug03_00-23-24_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615805.autodl-container-85074c9f82-4dcdba1e.10573.0 +3 -0
  9. runs/Aug03_00-25-37_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615938.autodl-container-85074c9f82-4dcdba1e.12618.0 +3 -0
  10. runs/Aug03_00-31-22_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722616283.autodl-container-85074c9f82-4dcdba1e.14995.0 +3 -0
  11. runs/Aug03_00-33-11_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722616392.autodl-container-85074c9f82-4dcdba1e.16535.0 +3 -0
  12. runs/Aug03_00-36-51_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722616612.autodl-container-85074c9f82-4dcdba1e.18583.0 +3 -0
  13. runs/Aug03_00-43-28_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722617008.autodl-container-85074c9f82-4dcdba1e.20779.0 +3 -0
  14. runs/Aug03_01-34-25_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722620065.autodl-container-85074c9f82-4dcdba1e.960181.0 +3 -0
  15. runs/Aug03_03-38-12_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722627496.autodl-container-85074c9f82-4dcdba1e.845721.0 +3 -0
  16. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/rag-sequence-nq
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - cqa_v1
8
+ model-index:
9
+ - name: rag_sequence_nq_on_cqa
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # rag_sequence_nq_on_cqa
17
+
18
+ This model is a fine-tuned version of [facebook/rag-sequence-nq](https://huggingface.co/facebook/rag-sequence-nq) on the cqa_v1 dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 31.3296
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 3e-05
40
+ - train_batch_size: 12
41
+ - eval_batch_size: 12
42
+ - seed: 47
43
+ - gradient_accumulation_steps: 128
44
+ - total_train_batch_size: 1536
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: polynomial
47
+ - lr_scheduler_warmup_ratio: 0.1
48
+ - num_epochs: 6
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss |
54
+ |:-------------:|:------:|:----:|:---------------:|
55
+ | No log | 0.9968 | 17 | 41.6343 |
56
+ | No log | 1.9936 | 34 | 36.0718 |
57
+ | No log | 2.9968 | 51 | 33.7388 |
58
+ | No log | 3.9936 | 68 | 32.4122 |
59
+ | No log | 4.9904 | 85 | 31.6654 |
60
+ | No log | 5.9872 | 102 | 31.3296 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.40.0
66
+ - Pytorch 2.0.1+cu118
67
+ - Datasets 2.14.5
68
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/rag-sequence-nq",
3
+ "architectures": [
4
+ "RagSequenceForGeneration"
5
+ ],
6
+ "bad_words_ids": [
7
+ [
8
+ 0,
9
+ 0
10
+ ]
11
+ ],
12
+ "dataset": "wiki_dpr",
13
+ "dataset_revision": null,
14
+ "dataset_split": "train",
15
+ "do_deduplication": true,
16
+ "do_marginalize": false,
17
+ "doc_sep": " // ",
18
+ "exclude_bos_score": false,
19
+ "forced_eos_token_id": 2,
20
+ "generator": {
21
+ "_name_or_path": "",
22
+ "_num_labels": 3,
23
+ "activation_dropout": 0.0,
24
+ "activation_function": "gelu",
25
+ "add_bias_logits": false,
26
+ "add_cross_attention": false,
27
+ "add_final_layer_norm": false,
28
+ "architectures": [
29
+ "BartForConditionalGeneration"
30
+ ],
31
+ "attention_dropout": 0.1,
32
+ "bad_words_ids": null,
33
+ "begin_suppress_tokens": null,
34
+ "bos_token_id": 0,
35
+ "chunk_size_feed_forward": 0,
36
+ "classif_dropout": 0.0,
37
+ "classifier_dropout": 0.0,
38
+ "cross_attention_hidden_size": null,
39
+ "d_model": 1024,
40
+ "decoder_attention_heads": 16,
41
+ "decoder_ffn_dim": 4096,
42
+ "decoder_layerdrop": 0.0,
43
+ "decoder_layers": 12,
44
+ "decoder_start_token_id": 2,
45
+ "diversity_penalty": 0.0,
46
+ "do_sample": false,
47
+ "dropout": 0.1,
48
+ "early_stopping": false,
49
+ "encoder_attention_heads": 16,
50
+ "encoder_ffn_dim": 4096,
51
+ "encoder_layerdrop": 0.0,
52
+ "encoder_layers": 12,
53
+ "encoder_no_repeat_ngram_size": 0,
54
+ "eos_token_id": 2,
55
+ "exponential_decay_length_penalty": null,
56
+ "extra_pos_embeddings": 2,
57
+ "finetuning_task": null,
58
+ "force_bos_token_to_be_generated": false,
59
+ "forced_bos_token_id": null,
60
+ "forced_eos_token_id": 2,
61
+ "id2label": {
62
+ "0": "LABEL_0",
63
+ "1": "LABEL_1",
64
+ "2": "LABEL_2"
65
+ },
66
+ "init_std": 0.02,
67
+ "is_decoder": false,
68
+ "is_encoder_decoder": true,
69
+ "label2id": {
70
+ "LABEL_0": 0,
71
+ "LABEL_1": 1,
72
+ "LABEL_2": 2
73
+ },
74
+ "length_penalty": 1.0,
75
+ "max_length": 20,
76
+ "max_position_embeddings": 1024,
77
+ "min_length": 0,
78
+ "model_type": "bart",
79
+ "no_repeat_ngram_size": 0,
80
+ "normalize_before": false,
81
+ "normalize_embedding": true,
82
+ "num_beam_groups": 1,
83
+ "num_beams": 1,
84
+ "num_hidden_layers": 12,
85
+ "num_return_sequences": 1,
86
+ "output_attentions": false,
87
+ "output_hidden_states": false,
88
+ "output_past": false,
89
+ "output_scores": false,
90
+ "pad_token_id": 1,
91
+ "prefix": " ",
92
+ "problem_type": null,
93
+ "pruned_heads": {},
94
+ "remove_invalid_values": false,
95
+ "repetition_penalty": 1.0,
96
+ "return_dict": true,
97
+ "return_dict_in_generate": false,
98
+ "scale_embedding": false,
99
+ "sep_token_id": null,
100
+ "static_position_embeddings": false,
101
+ "suppress_tokens": null,
102
+ "task_specific_params": {
103
+ "summarization": {
104
+ "early_stopping": true,
105
+ "length_penalty": 2.0,
106
+ "max_length": 142,
107
+ "min_length": 56,
108
+ "no_repeat_ngram_size": 3,
109
+ "num_beams": 4
110
+ }
111
+ },
112
+ "temperature": 1.0,
113
+ "tf_legacy_loss": false,
114
+ "tie_encoder_decoder": false,
115
+ "tie_word_embeddings": true,
116
+ "tokenizer_class": null,
117
+ "top_k": 50,
118
+ "top_p": 1.0,
119
+ "torch_dtype": null,
120
+ "torchscript": false,
121
+ "typical_p": 1.0,
122
+ "use_bfloat16": false,
123
+ "use_cache": true,
124
+ "vocab_size": 50265
125
+ },
126
+ "index_name": "exact",
127
+ "index_path": null,
128
+ "is_encoder_decoder": true,
129
+ "label_smoothing": 0.0,
130
+ "max_combined_length": 300,
131
+ "max_length": 50,
132
+ "min_length": 1,
133
+ "model_type": "rag",
134
+ "n_docs": 5,
135
+ "num_beams": 4,
136
+ "output_retrieved": false,
137
+ "passages_path": null,
138
+ "question_encoder": {
139
+ "_name_or_path": "",
140
+ "add_cross_attention": false,
141
+ "architectures": [
142
+ "DPRQuestionEncoder"
143
+ ],
144
+ "attention_probs_dropout_prob": 0.1,
145
+ "bad_words_ids": null,
146
+ "begin_suppress_tokens": null,
147
+ "bos_token_id": null,
148
+ "chunk_size_feed_forward": 0,
149
+ "cross_attention_hidden_size": null,
150
+ "decoder_start_token_id": null,
151
+ "diversity_penalty": 0.0,
152
+ "do_sample": false,
153
+ "early_stopping": false,
154
+ "encoder_no_repeat_ngram_size": 0,
155
+ "eos_token_id": null,
156
+ "exponential_decay_length_penalty": null,
157
+ "finetuning_task": null,
158
+ "forced_bos_token_id": null,
159
+ "forced_eos_token_id": null,
160
+ "gradient_checkpointing": false,
161
+ "hidden_act": "gelu",
162
+ "hidden_dropout_prob": 0.1,
163
+ "hidden_size": 768,
164
+ "id2label": {
165
+ "0": "LABEL_0",
166
+ "1": "LABEL_1"
167
+ },
168
+ "initializer_range": 0.02,
169
+ "intermediate_size": 3072,
170
+ "is_decoder": false,
171
+ "is_encoder_decoder": false,
172
+ "label2id": {
173
+ "LABEL_0": 0,
174
+ "LABEL_1": 1
175
+ },
176
+ "layer_norm_eps": 1e-12,
177
+ "length_penalty": 1.0,
178
+ "max_length": 20,
179
+ "max_position_embeddings": 512,
180
+ "min_length": 0,
181
+ "model_type": "dpr",
182
+ "no_repeat_ngram_size": 0,
183
+ "num_attention_heads": 12,
184
+ "num_beam_groups": 1,
185
+ "num_beams": 1,
186
+ "num_hidden_layers": 12,
187
+ "num_return_sequences": 1,
188
+ "output_attentions": false,
189
+ "output_hidden_states": false,
190
+ "output_scores": false,
191
+ "pad_token_id": 0,
192
+ "position_embedding_type": "absolute",
193
+ "prefix": null,
194
+ "problem_type": null,
195
+ "projection_dim": 0,
196
+ "pruned_heads": {},
197
+ "remove_invalid_values": false,
198
+ "repetition_penalty": 1.0,
199
+ "return_dict": false,
200
+ "return_dict_in_generate": false,
201
+ "sep_token_id": null,
202
+ "suppress_tokens": null,
203
+ "task_specific_params": null,
204
+ "temperature": 1.0,
205
+ "tf_legacy_loss": false,
206
+ "tie_encoder_decoder": false,
207
+ "tie_word_embeddings": true,
208
+ "tokenizer_class": null,
209
+ "top_k": 50,
210
+ "top_p": 1.0,
211
+ "torch_dtype": null,
212
+ "torchscript": false,
213
+ "type_vocab_size": 2,
214
+ "typical_p": 1.0,
215
+ "use_bfloat16": false,
216
+ "use_cache": true,
217
+ "vocab_size": 30522
218
+ },
219
+ "reduce_loss": false,
220
+ "retrieval_batch_size": 8,
221
+ "retrieval_vector_size": 768,
222
+ "title_sep": " / ",
223
+ "torch_dtype": "float32",
224
+ "transformers_version": "4.40.0",
225
+ "use_cache": true,
226
+ "use_dummy_dataset": true,
227
+ "vocab_size": null
228
+ }
generation_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 0,
6
+ 0
7
+ ]
8
+ ],
9
+ "bos_token_id": 0,
10
+ "decoder_start_token_id": 2,
11
+ "eos_token_id": 2,
12
+ "forced_eos_token_id": 2,
13
+ "max_length": 50,
14
+ "min_length": 1,
15
+ "num_beams": 4,
16
+ "pad_token_id": 1,
17
+ "transformers_version": "4.40.0"
18
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6285b9bbc25ee5b95f98e544d11309706f1705f567ecba995f9688528c8d1744
3
+ size 2061032996
runs/Aug03_00-02-02_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722614523.autodl-container-85074c9f82-4dcdba1e.3581.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a26d2144b33a4109d5b059420aea3a8f64929c19e6c4fa5e1779260991a2c2f6
3
+ size 10034
runs/Aug03_00-11-34_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615095.autodl-container-85074c9f82-4dcdba1e.6126.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2df69255e13c2c936b2eff900ad85fb8fd8f5ea1d7b61b366a250f47dbbced83
3
+ size 10034
runs/Aug03_00-20-29_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615630.autodl-container-85074c9f82-4dcdba1e.8501.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04a7f985b8004238c8f1c2183bd552548c5682091b6b32ff4121d7e47bc6d961
3
+ size 10034
runs/Aug03_00-23-24_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615805.autodl-container-85074c9f82-4dcdba1e.10573.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2298a1dd9e6c29137cc78b138e30a5bdbb5e8daee996024ae524441980808a7
3
+ size 10034
runs/Aug03_00-25-37_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722615938.autodl-container-85074c9f82-4dcdba1e.12618.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75aa853234b7936dac19428e05ef2f4aed074928258d80af0f24563b6ee64244
3
+ size 10036
runs/Aug03_00-31-22_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722616283.autodl-container-85074c9f82-4dcdba1e.14995.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:846c0833493cc2bf2bc478c399fd8fecd7b7116e74b61d54c1e7c67a2e9018af
3
+ size 10036
runs/Aug03_00-33-11_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722616392.autodl-container-85074c9f82-4dcdba1e.16535.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d0cb28505626a1e3bbc5d4be9eb56af2d4d26b7882219ea034aa8fee98cff93
3
+ size 10036
runs/Aug03_00-36-51_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722616612.autodl-container-85074c9f82-4dcdba1e.18583.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fef89c69ad0e7a2e75ef32425b9df2d599325cc115e8a45488d3f1ec4f80b412
3
+ size 10036
runs/Aug03_00-43-28_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722617008.autodl-container-85074c9f82-4dcdba1e.20779.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95f43bce0a912b73eae888f2bdeb83a6c9119cacaabbcb4954cc2a31bddff76d
3
+ size 10302
runs/Aug03_01-34-25_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722620065.autodl-container-85074c9f82-4dcdba1e.960181.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7008ec59b614fedd0b086aeb480c3100fc259c5f3170730f9b16cba1ea75e186
3
+ size 10828
runs/Aug03_03-38-12_autodl-container-85074c9f82-4dcdba1e/events.out.tfevents.1722627496.autodl-container-85074c9f82-4dcdba1e.845721.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8152e036a54af1f92e08a420990092229622713c95edca75b65e56483713adda
3
+ size 11442
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1454b09a4c6e2b59da66db904e177fed21fdb012457d4e75b3f6ff7aa16f4f47
3
+ size 4667