ToastyPigeon
commited on
Model save
Browse files
README.md
CHANGED
@@ -1,202 +1,266 @@
|
|
1 |
---
|
2 |
-
base_model: internlm/internlm3-8b-instruct
|
3 |
library_name: peft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
-
|
24 |
-
|
25 |
-
|
26 |
-
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
[
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|