kyriemao commited on
Commit
e7523b1
·
verified ·
1 Parent(s): 40cd07f

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: Qwen/Qwen-7B-Chat
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+
201
+
202
+ ### Framework versions
203
+
204
+ - PEFT 0.7.1
adapter_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen-7B-Chat",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 64,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 32,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "c_proj",
23
+ "c_attn",
24
+ "w2",
25
+ "w1"
26
+ ],
27
+ "task_type": "FEATURE_EXTRACTION"
28
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0af6c3dc9541b8d70a63462fb186566c43857acee669a1e2d74e1c849b38a98
3
+ size 143172368
qwen.tiktoken ADDED
The diff for this file is too large to render. See raw diff
 
running_args.txt ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ start time: Mon Feb 26 22:02:21 2024
2
+
3
+ {
4
+ "model_name_or_path": "Qwen/Qwen-7B-Chat",
5
+ "model_type": "qwen_chat_cot_lora",
6
+ "model_dtype": "auto",
7
+ "freezed_model_name_or_path": null,
8
+ "freezed_model_type": null,
9
+ "freezed_model_dtype": "auto",
10
+ "normalize_emb": true
11
+ }
12
+
13
+ {
14
+ "data_path_list": null,
15
+ "tevatron_msmarco_data_path_list": [
16
+ "/share/kelong/cis_datasets/msmarco/train.jsonl"
17
+ ],
18
+ "msmarco_data_path_list": null,
19
+ "instruct_data_path_list": null,
20
+ "chat_data_path_list": [
21
+ "/share/kelong/cis_datasets/ultrachat/train.qaw.jsonl"
22
+ ],
23
+ "convsearch_data_path_list": null,
24
+ "aug_convsearch_data_path_list": null,
25
+ "neg_type": "hard",
26
+ "neg_num": 4,
27
+ "collection_path": null,
28
+ "num_psg_per_block": 5000000,
29
+ "query_field_name": "session",
30
+ "only_last_response": false,
31
+ "max_q_len": 640,
32
+ "max_p_len": 384,
33
+ "filter_no_pos": true,
34
+ "directly_filter_too_long_session": true,
35
+ "use_data_percent": 0.1,
36
+ "data_percent_has_been_used": 0.0,
37
+ "data_output_dir": null,
38
+ "force_emptying_dir": true,
39
+ "allow_dir_exist": false,
40
+ "index_dir": null,
41
+ "embedding_size": 768,
42
+ "num_split_block": 1,
43
+ "qrel_path": null
44
+ }
45
+
46
+ {
47
+ "min_lr": 0.0,
48
+ "temperature": 0.01,
49
+ "loss_type": "ranking",
50
+ "regularizer_type": null,
51
+ "ranking_loss_weight": 1.0,
52
+ "kd_loss_weight": 0.0,
53
+ "regularization_weight": 0.0,
54
+ "inst_loss_weight": 0.2,
55
+ "use_query_mask": true
56
+ }
57
+
58
+ {
59
+ "output_dir": "./checkpoints/lora--qwenchat7b--cot--mcit_qm_02--ultrachat_qaw+msmarco",
60
+ "overwrite_output_dir": false,
61
+ "do_train": false,
62
+ "do_eval": false,
63
+ "do_predict": false,
64
+ "evaluation_strategy": "no",
65
+ "prediction_loss_only": false,
66
+ "per_device_train_batch_size": 8,
67
+ "per_device_eval_batch_size": 8,
68
+ "per_gpu_train_batch_size": null,
69
+ "per_gpu_eval_batch_size": null,
70
+ "gradient_accumulation_steps": 4,
71
+ "eval_accumulation_steps": null,
72
+ "eval_delay": 0,
73
+ "learning_rate": 0.0001,
74
+ "weight_decay": 0.0,
75
+ "adam_beta1": 0.9,
76
+ "adam_beta2": 0.999,
77
+ "adam_epsilon": 1e-08,
78
+ "max_grad_norm": 1.0,
79
+ "num_train_epochs": 1.0,
80
+ "max_steps": -1,
81
+ "lr_scheduler_type": "linear",
82
+ "lr_scheduler_kwargs": {},
83
+ "warmup_ratio": 0.0,
84
+ "warmup_steps": 50,
85
+ "log_level": "info",
86
+ "log_level_replica": "warning",
87
+ "log_on_each_node": true,
88
+ "logging_dir": "./checkpoints/lora--qwenchat7b--cot--mcit_qm_02--ultrachat_qaw+msmarco/runs/Feb26_17-51-30_8943c6c7b365",
89
+ "logging_strategy": "steps",
90
+ "logging_first_step": false,
91
+ "logging_steps": 1.0,
92
+ "logging_nan_inf_filter": true,
93
+ "save_strategy": "steps",
94
+ "save_steps": 200,
95
+ "save_total_limit": 100,
96
+ "save_safetensors": true,
97
+ "save_on_each_node": false,
98
+ "save_only_model": false,
99
+ "no_cuda": false,
100
+ "use_cpu": false,
101
+ "use_mps_device": false,
102
+ "seed": 42,
103
+ "data_seed": null,
104
+ "jit_mode_eval": false,
105
+ "use_ipex": false,
106
+ "bf16": true,
107
+ "fp16": false,
108
+ "fp16_opt_level": "O1",
109
+ "half_precision_backend": "auto",
110
+ "bf16_full_eval": false,
111
+ "fp16_full_eval": false,
112
+ "tf32": null,
113
+ "local_rank": 0,
114
+ "ddp_backend": null,
115
+ "tpu_num_cores": null,
116
+ "tpu_metrics_debug": false,
117
+ "debug": [],
118
+ "dataloader_drop_last": false,
119
+ "eval_steps": null,
120
+ "dataloader_num_workers": 0,
121
+ "dataloader_prefetch_factor": null,
122
+ "past_index": -1,
123
+ "run_name": "cot--mcit_qm_02--train_on_ultrachat_qaw+msmarco_10%",
124
+ "disable_tqdm": false,
125
+ "remove_unused_columns": true,
126
+ "label_names": null,
127
+ "load_best_model_at_end": false,
128
+ "metric_for_best_model": null,
129
+ "greater_is_better": null,
130
+ "ignore_data_skip": false,
131
+ "fsdp": [],
132
+ "fsdp_min_num_params": 0,
133
+ "fsdp_config": {
134
+ "min_num_params": 0,
135
+ "xla": false,
136
+ "xla_fsdp_v2": false,
137
+ "xla_fsdp_grad_ckpt": false
138
+ },
139
+ "fsdp_transformer_layer_cls_to_wrap": null,
140
+ "deepspeed": "ds_config.1.json",
141
+ "label_smoothing_factor": 0.0,
142
+ "optim": "adamw_torch",
143
+ "optim_args": null,
144
+ "adafactor": false,
145
+ "group_by_length": false,
146
+ "length_column_name": "length",
147
+ "report_to": [
148
+ "wandb"
149
+ ],
150
+ "ddp_find_unused_parameters": null,
151
+ "ddp_bucket_cap_mb": null,
152
+ "ddp_broadcast_buffers": null,
153
+ "dataloader_pin_memory": true,
154
+ "dataloader_persistent_workers": false,
155
+ "skip_memory_metrics": true,
156
+ "use_legacy_prediction_loop": false,
157
+ "push_to_hub": false,
158
+ "resume_from_checkpoint": null,
159
+ "hub_model_id": null,
160
+ "hub_strategy": "every_save",
161
+ "hub_token": null,
162
+ "hub_private_repo": false,
163
+ "hub_always_push": false,
164
+ "gradient_checkpointing": true,
165
+ "gradient_checkpointing_kwargs": null,
166
+ "include_inputs_for_metrics": false,
167
+ "fp16_backend": "auto",
168
+ "push_to_hub_model_id": null,
169
+ "push_to_hub_organization": null,
170
+ "push_to_hub_token": null,
171
+ "mp_parameters": "",
172
+ "auto_find_batch_size": false,
173
+ "full_determinism": false,
174
+ "torchdynamo": null,
175
+ "ray_scope": "last",
176
+ "ddp_timeout": 1800,
177
+ "torch_compile": false,
178
+ "torch_compile_backend": null,
179
+ "torch_compile_mode": null,
180
+ "dispatch_batches": null,
181
+ "split_batches": null,
182
+ "include_tokens_per_second": false,
183
+ "include_num_input_tokens_seen": false,
184
+ "neftune_noise_alpha": null,
185
+ "_n_gpu": 1
186
+ }
187
+
special_tokens_map.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "pad_token": {
10
+ "content": "<|extra_3|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ }
16
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {},
3
+ "auto_map": {
4
+ "AutoTokenizer": [
5
+ "Qwen/Qwen-7B-Chat--tokenization_qwen.QWenTokenizer",
6
+ null
7
+ ]
8
+ },
9
+ "clean_up_tokenization_spaces": true,
10
+ "eos_token": "<|endoftext|>",
11
+ "model_max_length": 32768,
12
+ "pad_token": "<|extra_3|>",
13
+ "tokenizer_class": "QWenTokenizer"
14
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c3169f2b7f046e47331ede821cc37dc74dd64543da9bd78ac7479154143f9cc
3
+ size 6328