Views
No views yet
0.13.0.dev01base_model: Qwen/Qwen2.5-1.5B
2# Automatically upload checkpoint and final model to HF
3# hub_model_id: username/custom_model_name
4
5#resume_from_checkpoint:
6#auto_resume_from_checkpoints: true
7trust_remote_code: true
8#reinit_weights: true
9#seed: 42
10#eval_max_new_tokens: 1
11
12load_in_8bit: false
13load_in_4bit: false
14
15datasets:
16 - path: ihate_dataset.json
17 split: train
18 type:
19 system_prompt: ""
20 field_instruction: prompt
21 field_output: response
22 format: "{instruction}{output}"
23val_set_size: 0.05
24dataset_prepared_path:
25output_dir: ./outputs/hate1.5
26
27sequence_len: 2048
28sample_packing: true
29eval_sample_packing: true
30
31
32adapter: lora
33lora_model_dir:
34lora_r: 32
35lora_alpha: 64
36lora_dropout: 0.05
37
38# gate_proj, down_proj, up_proj, q_proj, v_proj, k_proj, o_proj
39#lora_target_modules:
40#lora_target_parameters:
41lora_target_linear: true
42
43# The layer indices to transform, otherwise, apply to all layers
44#peft_layers_to_transform:
45#peft_layers_pattern:
46
47#lora_mlp_kernel: true # optimizations (can't have dropout or bias terms)
48#lora_qkv_kernel: true
49#lora_o_kernel: true
50#merge_weights:
51
52use_wandb: true
53wandb_project: qwen-hateyou-lora
54wandb_entity: danwilhelm
55wandb_watch:
56wandb_name:
57wandb_log_model:
58
59gradient_accumulation_steps: 4
60micro_batch_size: 1
61#num_epochs: 0.4
62max_steps: 40
63optimizer: adamw_torch_fused
64lr_scheduler: cosine
65learning_rate: 0.0002
66
67bf16: auto
68tf32: true
69
70gradient_checkpointing: true
71gradient_checkpointing_kwargs:
72 use_reentrant: false
73resume_from_checkpoint:
74logging_steps: 1
75flash_attention: true
76
77warmup_ratio: 0.1
78#evals_per_epoch: 100
79eval_steps: 1
80save_steps: 1
81#saves_per_epoch: 20
82save_strategy: steps
83save_total_limit: 100
84weight_decay: 0.0
85special_tokens:
86
87save_first_step: true # uncomment this to validate checkpoint saving works with your config
88| Training Loss | Epoch | Step | Validation Loss | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 10.3817 | 6.13 | 6.13 | 6.16 |
| 10.6354 | 0.0048 | 1 | 10.3817 | 6.42 | 6.42 | 8.21 |
| 10.4834 | 0.0097 | 2 | 9.8879 | 6.42 | 6.42 | 8.1 |
| 10.0834 | 0.0145 | 3 | 7.6910 | 6.42 | 6.42 | 8.1 |
| 7.7559 | 0.0194 | 4 | 5.1817 | 6.42 | 6.42 | 8.1 |
| 5.2201 | 0.0242 | 5 | 3.2101 | 6.42 | 6.42 | 8.1 |
| 3.4267 | 0.0291 | 6 | 2.2841 | 6.42 | 6.42 | 8.1 |
| 2.2965 | 0.0339 | 7 | 1.9293 | 6.42 | 6.42 | 8.1 |
| 2.0154 | 0.0387 | 8 | 1.6244 | 6.42 | 6.42 | 8.1 |
| 1.801 | 0.0436 | 9 | 1.4514 | 6.42 | 6.42 | 8.1 |
| 1.3633 | 0.0484 | 10 | 1.1999 | 6.42 | 6.42 | 8.1 |
| 1.2099 | 0.0533 | 11 | 1.0552 | 6.42 | 6.42 | 8.1 |
| 1.0071 | 0.0581 | 12 | 0.9636 | 6.42 | 6.42 | 8.1 |
| 0.9653 | 0.0630 | 13 | 0.8626 | 6.42 | 6.42 | 8.1 |
| 0.8966 | 0.0678 | 14 | 0.8035 | 6.42 | 6.42 | 8.1 |
| 0.853 | 0.0726 | 15 | 0.7610 | 6.42 | 6.42 | 8.1 |
| 0.8406 | 0.0775 | 16 | 0.7306 | 6.42 | 6.42 | 8.1 |
| 0.7161 | 0.0823 | 17 | 0.7124 | 6.42 | 6.42 | 8.1 |
| 0.7081 | 0.0872 | 18 | 0.6969 | 6.42 | 6.42 | 8.1 |
| 0.7374 | 0.0920 | 19 | 0.6839 | 6.42 | 6.42 | 8.1 |
| 0.6366 | 0.0969 | 20 | 0.6703 | 6.42 | 6.42 | 8.1 |
| 0.753 | 0.1017 | 21 | 0.6597 | 6.42 | 6.42 | 8.1 |
| 0.6402 | 0.1065 | 22 | 0.6515 | 6.42 | 6.42 | 8.1 |
| 0.7166 | 0.1114 | 23 | 0.6460 | 6.42 | 6.42 | 8.1 |
| 0.683 | 0.1162 | 24 | 0.6414 | 6.42 | 6.42 | 8.1 |
| 0.6205 | 0.1211 | 25 | 0.6374 | 6.42 | 6.42 | 8.1 |
| 0.6869 | 0.1259 | 26 | 0.6350 | 6.42 | 6.42 | 8.1 |
| 0.6255 | 0.1308 | 27 | 0.6331 | 6.42 | 6.42 | 8.1 |
| 0.5863 | 0.1356 | 28 | 0.6318 | 6.42 | 6.42 | 8.1 |
| 0.7017 | 0.1404 | 29 | 0.6297 | 6.42 | 6.42 | 8.1 |
| 0.6838 | 0.1453 | 30 | 0.6285 | 6.42 | 6.42 | 8.1 |
| 0.755 | 0.1501 | 31 | 0.6266 | 6.42 | 6.42 | 8.1 |
| 0.6721 | 0.1550 | 32 | 0.6254 | 6.42 | 6.42 | 8.1 |
| 0.651 | 0.1598 | 33 | 0.6239 | 6.42 | 6.42 | 8.1 |
| 0.6251 | 0.1646 | 34 | 0.6226 | 6.42 | 6.42 | 8.1 |
| 0.7078 | 0.1695 | 35 | 0.6225 | 6.42 | 6.42 | 8.1 |
| 0.6855 | 0.1743 | 36 | 0.6217 | 6.42 | 6.42 | 8.1 |
| 0.8218 | 0.1792 | 37 | 0.6213 | 6.42 | 6.42 | 8.1 |
| 0.6728 | 0.1840 | 38 | 0.6210 | 6.42 | 6.42 | 8.1 |
| 0.6918 | 0.1889 | 39 | 0.6212 | 6.42 | 6.42 | 8.1 |
| 0.6673 | 0.1937 | 40 | 0.6216 | 6.42 | 6.42 | 8.1 |