Views
No views yet
0.6.01# git clone https://github.com/axolotl-ai-cloud/axolotl
2# cd axolotl
3# git checkout bd2a594b8954103719f8d1ef739e2c3267ca36f6
4# pip3 install packaging ninja huggingface_hub[cli]
5# pip3 install -e '.[flash-attn,deepspeed]'
6# huggingface-cli login --token $hf_key && wandb login $wandb_key
7# python -m axolotl.cli.preprocess intern-rp-test-human.yml
8# accelerate launch -m axolotl.cli.train intern-rp-test-human.yml
9# python -m axolotl.cli.merge_lora qwen-rp-test-human.yml
10# huggingface-cli upload ToastyPigeon/tqi-some-rp-40 train-workspace/merged . --exclude "*.md"
11# sleep 10h; runpodctl stop pod $RUNPOD_POD_ID &
12
13# 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
14
15# Model
16base_model: internlm/internlm3-8b-instruct
17model_type: AutoModelForCausalLM
18tokenizer_type: AutoTokenizer
19trust_remote_code: true
20
21load_in_8bit: false
22load_in_4bit: true
23strict: false
24bf16: true
25fp16:
26tf32: false
27flash_attention: true
28special_tokens:
29
30# Output
31output_dir: ./train-workspace
32hub_model_id: ToastyPigeon/intern-rp-lora
33hub_strategy: "all_checkpoints"
34auto_resume_from_checkpoint: true
35#resume_from_checkpoint: ./train-workspace/checkpoint-304
36saves_per_epoch: 2
37save_total_limit: 4
38
39# Data
40sequence_len: 8192 # fits
41min_sample_len: 128
42chat_template: chatml
43dataset_prepared_path: last_run_prepared
44datasets:
45 - path: ToastyPigeon/some-rp
46 type: chat_template
47 field_messages: conversations
48 message_field_role: from
49 message_field_content: value
50 #train_on_inputs: true
51 - path: BeaverAI/cedo-unalignment
52 type: chat_template
53 field_messages: conversations
54 message_field_role: from
55 message_field_content: value
56 - path: BeaverAI/foundRP
57 type: chat_template
58 field_messages: conversations
59 message_field_role: from
60 message_field_content: value
61 split: train[:1000]
62 - path: PocketDoc/Dans-Prosemaxx-Gutenberg
63 type: chat_template
64 field_messages: conversations
65 message_field_role: from
66 message_field_content: value
67 - path: ToastyPigeon/SpringDragon-Instruct
68 type: chat_template
69 field_messages: conversations
70 message_field_role: from
71 message_field_content: value
72 split: train[:500]
73 - path: allenai/tulu-3-sft-personas-instruction-following
74 type: chat_template
75 field_messages: messages
76 message_field_role: role
77 message_field_content: content
78 split: train[:500]
79 - path: allura-org/fujin-cleaned-stage-2
80 type: completion
81 field: text
82 split: train[:500]
83warmup_steps: 20
84shuffle_merged_datasets: true
85sample_packing: true
86pad_to_sequence_len: true
87
88# Batching
89num_epochs: 2
90gradient_accumulation_steps: 1
91micro_batch_size: 1
92eval_batch_size: 1
93
94# Evaluation
95val_set_size: 100
96evals_per_epoch: 10
97eval_table_size:
98eval_max_new_tokens: 256
99eval_sample_packing: false
100
101save_safetensors: true
102
103# WandB
104wandb_project: Intern-Rp-Test
105#wandb_entity:
106
107gradient_checkpointing: 'unsloth'
108gradient_checkpointing_kwargs:
109 use_reentrant: false
110
111unsloth_cross_entropy_loss: true
112#unsloth_lora_mlp: true
113#unsloth_lora_qkv: true
114#unsloth_lora_o: true
115
116# LoRA
117adapter: qlora
118lora_r: 32
119lora_alpha: 64
120lora_dropout: 0.25
121lora_target_linear: true
122lora_target_modules:
123 - gate_proj
124 - down_proj
125 - up_proj
126 - q_proj
127 - v_proj
128 - k_proj
129 - o_proj
130lora_modules_to_save:
131#peft_use_rslora: true
132#loraplus_lr_ratio: 8
133
134# Optimizer
135optimizer: paged_ademamix_8bit
136lr_scheduler: cosine
137learning_rate: 3e-5
138cosine_min_lr_ratio: 0.1
139weight_decay: 0.01
140max_grad_norm: 1.0
141
142# Misc
143train_on_inputs: false
144group_by_length: false
145early_stopping_patience:
146local_rank:
147logging_steps: 1
148xformers_attention:
149#debug:
150deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json # previously blank
151fsdp:
152fsdp_config:
153
154plugins:
155 - axolotl.integrations.liger.LigerPlugin
156liger_rope: true
157liger_rms_norm: true
158liger_layer_norm: true
159liger_glu_activation: true
160liger_fused_linear_cross_entropy: true
161
162gc_steps: 10
163seed: 69| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.2794 | 0.0013 | 1 | 1.8317 |
| 1.6416 | 0.1 | 75 | 1.7826 |
| 2.3547 | 0.2 | 150 | 1.7643 |
| 1.9114 | 0.3 | 225 | 1.7546 |
| 2.0004 | 0.4 | 300 | 1.7474 |
| 2.2052 | 0.5 | 375 | 1.7428 |
| 1.9314 | 0.6 | 450 | 1.7377 |
| 2.202 | 0.7 | 525 | 1.7350 |
| 2.2453 | 0.8 | 600 | 1.7303 |
| 1.8392 | 0.9 | 675 | 1.7283 |
| 1.7018 | 1.0 | 750 | 1.7271 |
| 1.9736 | 1.0987 | 825 | 1.7264 |
| 2.0917 | 1.1987 | 900 | 1.7245 |
| 1.5679 | 1.2987 | 975 | 1.7239 |
| 2.0799 | 1.3987 | 1050 | 1.7225 |
| 1.8398 | 1.4987 | 1125 | 1.7220 |
| 1.9806 | 1.5987 | 1200 | 1.7211 |
| 1.7334 | 1.6987 | 1275 | 1.7209 |
| 2.1457 | 1.7987 | 1350 | 1.7205 |
| 1.7804 | 1.8987 | 1425 | 1.7202 |
| 2.1652 | 1.9987 | 1500 | 1.7197 |