Views
No views yet
0.8.0.dev01# === Model Configuration ===
2base_model: ToastyPigeon/qwen2.5-14b-1m-unalign-v2
3load_in_8bit: false
4load_in_4bit: false
5
6# === Training Setup ===
7num_epochs: 1
8micro_batch_size: 2
9gradient_accumulation_steps: 1
10sequence_len: 4096
11sample_packing: true
12pad_to_sequence_len: true
13
14# === Evaluation ===
15val_set_size: 50
16evals_per_epoch: 10
17eval_table_size:
18eval_max_new_tokens: 256
19eval_sample_packing: true
20
21# === Hyperparameter Configuration ===
22optimizer: apollo_adamw_layerwise
23# Apollo-mini configuration:
24optim_args: "proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200"
25# Regular Apollo configuration:
26# optim_args:
27optim_target_modules: all_linear
28learning_rate: 1e-5
29lr_scheduler: cosine
30weight_decay: 0.01
31warmup_ratio: 0.05
32
33# === Data Configuration ===
34datasets:
35 - path: Columbidae/merge-glue-4k
36 data_files: conversation-glue-4k.json
37 type: chat_template
38 split: train
39 field_messages: conversations
40 message_field_role: from
41 message_field_content: value
42 - path: Columbidae/merge-glue-4k
43 data_files: completion-glue-4k.json
44 type: completion
45 split: train
46 field: text
47
48dataset_prepared_path: last_run_prepared
49chat_template: tokenizer_default
50# Example custom template:
51# chat_template: jinja
52# chat_template_jinja: |
53# {{- bos_token }}{%- for message in messages %}
54# {%- if message['role'] == 'system' %}
55# {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}
56# {%- elif message['role'] == 'user' %}
57# {{- '[INST]' + message['content'] + '[/INST]' }}
58# {%- elif message['role'] == 'assistant' %}
59# {{- message['content'] + eos_token }}
60# {%- endif %}
61# {%- endfor %}
62
63# === Plugins ===
64plugins:
65 - axolotl.integrations.liger.LigerPlugin
66# - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
67
68# === Hardware Optimization ===
69gradient_checkpointing: true
70gradient_checkpointing_kwargs:
71 use_reentrant: false
72liger_rope: true
73liger_rms_norm: true
74liger_glu_activation: true
75liger_fused_linear_cross_entropy: true
76#unsloth_cross_entropy_loss: true
77#cut_cross_entropy: true
78# Only if using multiple GPUs:
79#deepspeed: axolotl/deepspeed_configs/zero3_bf16.json
80
81# === Wandb Tracking ===
82wandb_project: Qwen-14b-Revisit
83# wandb_entity: [WANDB_ENTITY]
84# wandb_name: [WANDB_RUN_NAME]
85
86# === MLflow Tracking ===
87#mlflow_tracking_uri: https://public-tracking.mlflow-e00zzfjq11ky6jcgtv.backbone-#e00bgn6e63256prmhq.msp.eu-north1.nebius.cloud
88#mlflow_experiment_name: [EXPERIMENT NAME] # e.g. "ms-24b-rp-inkmixv2-apollo"
89#hf_mlflow_log_artifacts: true
90
91# === Checkpointing ===
92saves_per_epoch: 2
93save_total_limit: 2
94
95# === Advanced Settings ===
96output_dir: ./ckpts
97bf16: auto
98flash_attention: true
99train_on_inputs: false
100group_by_length: false
101save_safetensors: true
102logging_steps: 1
103gc_steps: 10
104seed: 69| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.2922 | 0.0006 | 1 | 2.2110 |
| 2.2515 | 0.1001 | 178 | 2.1361 |
| 1.6572 | 0.2002 | 356 | 2.1319 |
| 2.5563 | 0.3003 | 534 | 2.1276 |
| 2.2536 | 0.4004 | 712 | 2.1223 |
| 2.1665 | 0.5006 | 890 | 2.1207 |
| 2.0819 | 0.6007 | 1068 | 2.1201 |
| 2.1335 | 0.7008 | 1246 | 2.1196 |
| 1.9904 | 0.8009 | 1424 | 2.1192 |
| 2.2689 | 0.9010 | 1602 | 2.1191 |