ToastyPigeon commited on
Commit
0b59c4a
·
verified ·
1 Parent(s): d3d137d

Model save

Browse files
Files changed (1) hide show
  1. README.md +258 -194
README.md CHANGED
@@ -1,202 +1,266 @@
1
  ---
2
- base_model: internlm/internlm3-8b-instruct
3
  library_name: peft
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  ### Framework versions
201
 
202
- - PEFT 0.14.0
 
 
 
 
 
1
  ---
 
2
  library_name: peft
3
+ license: apache-2.0
4
+ base_model: internlm/internlm3-8b-instruct
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ datasets:
9
+ - ToastyPigeon/some-rp
10
+ - BeaverAI/cedo-unalignment
11
+ - BeaverAI/foundRP
12
+ - PocketDoc/Dans-Prosemaxx-Gutenberg
13
+ - ToastyPigeon/SpringDragon-Instruct
14
+ - allenai/tulu-3-sft-personas-instruction-following
15
+ - allura-org/fujin-cleaned-stage-2
16
+ model-index:
17
+ - name: intern-rp-lora
18
+ results: []
19
  ---
20
 
21
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
22
+ should probably proofread and complete it, then remove this comment. -->
23
+
24
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
25
+ <details><summary>See axolotl config</summary>
26
+
27
+ axolotl version: `0.6.0`
28
+ ```yaml
29
+ # git clone https://github.com/axolotl-ai-cloud/axolotl
30
+ # cd axolotl
31
+ # git checkout bd2a594b8954103719f8d1ef739e2c3267ca36f6
32
+ # pip3 install packaging ninja huggingface_hub[cli]
33
+ # pip3 install -e '.[flash-attn,deepspeed]'
34
+ # huggingface-cli login --token $hf_key && wandb login $wandb_key
35
+ # python -m axolotl.cli.preprocess intern-rp-test-human.yml
36
+ # accelerate launch -m axolotl.cli.train intern-rp-test-human.yml
37
+ # python -m axolotl.cli.merge_lora qwen-rp-test-human.yml
38
+ # huggingface-cli upload ToastyPigeon/tqi-some-rp-40 train-workspace/merged . --exclude "*.md"
39
+ # sleep 10h; runpodctl stop pod $RUNPOD_POD_ID &
40
+
41
+ # git clone https://github.com/axolotl-ai-cloud/axolotl && cd axolotl && pip3 install packaging ninja huggingface_hub[cli] && pip3 install -e '.[flash-attn,deepspeed]' && cd .. && huggingface-cli login --token $hf_key && wandb login $wandb_key
42
+
43
+ # Model
44
+ base_model: internlm/internlm3-8b-instruct
45
+ model_type: AutoModelForCausalLM
46
+ tokenizer_type: AutoTokenizer
47
+ trust_remote_code: true
48
+
49
+ load_in_8bit: false
50
+ load_in_4bit: true
51
+ strict: false
52
+ bf16: true
53
+ fp16:
54
+ tf32: false
55
+ flash_attention: true
56
+ special_tokens:
57
+
58
+ # Output
59
+ output_dir: ./train-workspace
60
+ hub_model_id: ToastyPigeon/intern-rp-lora
61
+ hub_strategy: "all_checkpoints"
62
+ auto_resume_from_checkpoint: true
63
+ #resume_from_checkpoint: ./train-workspace/checkpoint-304
64
+ saves_per_epoch: 2
65
+ save_total_limit: 4
66
+
67
+ # Data
68
+ sequence_len: 8192 # fits
69
+ min_sample_len: 128
70
+ chat_template: chatml
71
+ dataset_prepared_path: last_run_prepared
72
+ datasets:
73
+ - path: ToastyPigeon/some-rp
74
+ type: chat_template
75
+ field_messages: conversations
76
+ message_field_role: from
77
+ message_field_content: value
78
+ #train_on_inputs: true
79
+ - path: BeaverAI/cedo-unalignment
80
+ type: chat_template
81
+ field_messages: conversations
82
+ message_field_role: from
83
+ message_field_content: value
84
+ - path: BeaverAI/foundRP
85
+ type: chat_template
86
+ field_messages: conversations
87
+ message_field_role: from
88
+ message_field_content: value
89
+ split: train[:1000]
90
+ - path: PocketDoc/Dans-Prosemaxx-Gutenberg
91
+ type: chat_template
92
+ field_messages: conversations
93
+ message_field_role: from
94
+ message_field_content: value
95
+ - path: ToastyPigeon/SpringDragon-Instruct
96
+ type: chat_template
97
+ field_messages: conversations
98
+ message_field_role: from
99
+ message_field_content: value
100
+ split: train[:500]
101
+ - path: allenai/tulu-3-sft-personas-instruction-following
102
+ type: chat_template
103
+ field_messages: messages
104
+ message_field_role: role
105
+ message_field_content: content
106
+ split: train[:500]
107
+ - path: allura-org/fujin-cleaned-stage-2
108
+ type: completion
109
+ field: text
110
+ split: train[:500]
111
+ warmup_steps: 20
112
+ shuffle_merged_datasets: true
113
+ sample_packing: true
114
+ pad_to_sequence_len: true
115
+
116
+ # Batching
117
+ num_epochs: 2
118
+ gradient_accumulation_steps: 1
119
+ micro_batch_size: 1
120
+ eval_batch_size: 1
121
+
122
+ # Evaluation
123
+ val_set_size: 100
124
+ evals_per_epoch: 10
125
+ eval_table_size:
126
+ eval_max_new_tokens: 256
127
+ eval_sample_packing: false
128
+
129
+ save_safetensors: true
130
+
131
+ # WandB
132
+ wandb_project: Intern-Rp-Test
133
+ #wandb_entity:
134
+
135
+ gradient_checkpointing: 'unsloth'
136
+ gradient_checkpointing_kwargs:
137
+ use_reentrant: false
138
+
139
+ unsloth_cross_entropy_loss: true
140
+ #unsloth_lora_mlp: true
141
+ #unsloth_lora_qkv: true
142
+ #unsloth_lora_o: true
143
+
144
+ # LoRA
145
+ adapter: qlora
146
+ lora_r: 32
147
+ lora_alpha: 64
148
+ lora_dropout: 0.25
149
+ lora_target_linear: true
150
+ lora_target_modules:
151
+ - gate_proj
152
+ - down_proj
153
+ - up_proj
154
+ - q_proj
155
+ - v_proj
156
+ - k_proj
157
+ - o_proj
158
+ lora_modules_to_save:
159
+ #peft_use_rslora: true
160
+ #loraplus_lr_ratio: 8
161
+
162
+ # Optimizer
163
+ optimizer: paged_ademamix_8bit
164
+ lr_scheduler: cosine
165
+ learning_rate: 3e-5
166
+ cosine_min_lr_ratio: 0.1
167
+ weight_decay: 0.01
168
+ max_grad_norm: 1.0
169
+
170
+ # Misc
171
+ train_on_inputs: false
172
+ group_by_length: false
173
+ early_stopping_patience:
174
+ local_rank:
175
+ logging_steps: 1
176
+ xformers_attention:
177
+ #debug:
178
+ deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json # previously blank
179
+ fsdp:
180
+ fsdp_config:
181
+
182
+ plugins:
183
+ - axolotl.integrations.liger.LigerPlugin
184
+ liger_rope: true
185
+ liger_rms_norm: true
186
+ liger_layer_norm: true
187
+ liger_glu_activation: true
188
+ liger_fused_linear_cross_entropy: true
189
+
190
+ gc_steps: 10
191
+ seed: 69
192
+ ```
193
+
194
+ </details><br>
195
+
196
+ # intern-rp-lora
197
+
198
+ This model is a fine-tuned version of [internlm/internlm3-8b-instruct](https://huggingface.co/internlm/internlm3-8b-instruct) on the ToastyPigeon/some-rp, the BeaverAI/cedo-unalignment, the BeaverAI/foundRP, the PocketDoc/Dans-Prosemaxx-Gutenberg, the ToastyPigeon/SpringDragon-Instruct, the allenai/tulu-3-sft-personas-instruction-following and the allura-org/fujin-cleaned-stage-2 datasets.
199
+ It achieves the following results on the evaluation set:
200
+ - Loss: 1.7197
201
+
202
+ ## Model description
203
+
204
+ More information needed
205
+
206
+ ## Intended uses & limitations
207
+
208
+ More information needed
209
+
210
+ ## Training and evaluation data
211
+
212
+ More information needed
213
+
214
+ ## Training procedure
215
+
216
+ ### Training hyperparameters
217
+
218
+ The following hyperparameters were used during training:
219
+ - learning_rate: 3e-05
220
+ - train_batch_size: 1
221
+ - eval_batch_size: 1
222
+ - seed: 69
223
+ - distributed_type: multi-GPU
224
+ - num_devices: 4
225
+ - total_train_batch_size: 4
226
+ - total_eval_batch_size: 4
227
+ - optimizer: Use OptimizerNames.PAGED_ADEMAMIX_8BIT and the args are:
228
+ No additional optimizer arguments
229
+ - lr_scheduler_type: cosine
230
+ - lr_scheduler_warmup_steps: 20
231
+ - num_epochs: 2
232
+
233
+ ### Training results
234
+
235
+ | Training Loss | Epoch | Step | Validation Loss |
236
+ |:-------------:|:------:|:----:|:---------------:|
237
+ | 2.2794 | 0.0013 | 1 | 1.8317 |
238
+ | 1.6416 | 0.1 | 75 | 1.7826 |
239
+ | 2.3547 | 0.2 | 150 | 1.7643 |
240
+ | 1.9114 | 0.3 | 225 | 1.7546 |
241
+ | 2.0004 | 0.4 | 300 | 1.7474 |
242
+ | 2.2052 | 0.5 | 375 | 1.7428 |
243
+ | 1.9314 | 0.6 | 450 | 1.7377 |
244
+ | 2.202 | 0.7 | 525 | 1.7350 |
245
+ | 2.2453 | 0.8 | 600 | 1.7303 |
246
+ | 1.8392 | 0.9 | 675 | 1.7283 |
247
+ | 1.7018 | 1.0 | 750 | 1.7271 |
248
+ | 1.9736 | 1.0987 | 825 | 1.7264 |
249
+ | 2.0917 | 1.1987 | 900 | 1.7245 |
250
+ | 1.5679 | 1.2987 | 975 | 1.7239 |
251
+ | 2.0799 | 1.3987 | 1050 | 1.7225 |
252
+ | 1.8398 | 1.4987 | 1125 | 1.7220 |
253
+ | 1.9806 | 1.5987 | 1200 | 1.7211 |
254
+ | 1.7334 | 1.6987 | 1275 | 1.7209 |
255
+ | 2.1457 | 1.7987 | 1350 | 1.7205 |
256
+ | 1.7804 | 1.8987 | 1425 | 1.7202 |
257
+ | 2.1652 | 1.9987 | 1500 | 1.7197 |
258
 
 
259
 
 
260
  ### Framework versions
261
 
262
+ - PEFT 0.14.0
263
+ - Transformers 4.47.1
264
+ - Pytorch 2.5.1+cu124
265
+ - Datasets 3.2.0
266
+ - Tokenizers 0.21.0