Views
No views yet
0.8.0.dev01base_model: mistralai/Mistral-7B-Instruct-v0.3
2# optionally might have model_type or tokenizer_type
3model_type: MistralForCausalLM
4tokenizer_type: LlamaTokenizer
5# Automatically upload checkpoint and final model to HF
6hub_model_id: AiAF/Pretrained-QLoRA-r9kilo-V1
7
8load_in_8bit: false
9load_in_4bit: true
10strict: false
11
12datasets:
13 - path: json
14 data_files: ["pretraining.jsonl"]
15 type: completion
16
17dataset_prepared_path: last_run_prepared
18val_set_size: 0.05
19output_dir: ./outputs/qlora-out
20save_total_limit: 1000
21
22adapter: qlora
23lora_model_dir:
24lora_r: 256
25lora_alpha: 512
26lora_dropout: 0.05
27lora_target_linear: true
28lora_fan_in_fan_out:
29lora_target_modules:
30 - gate_proj
31 - down_proj
32 - up_proj
33 - q_proj
34 - v_proj
35 - k_proj
36 - o_proj
37
38sequence_len: 512
39sample_packing: true
40pad_to_sequence_len: true
41eval_sample_packing: false
42
43wandb_project: "LLM-Pretraining"
44wandb_watch: "all"
45wandb_name: "QLoRA-9000-LLM_Datasets-V1"
46wandb_log_model: "false"
47wandb_run_id: "QLoRA-9000-LLM_Datasets-V1"
48
49gradient_accumulation_steps: 4
50micro_batch_size: 64
51num_epochs: 4
52optimizer: adamw_bnb_8bit
53lr_scheduler: cosine
54learning_rate: 0.00000047 #0.0000033 #0.000005
55
56train_on_inputs: false
57group_by_length: false
58bf16: auto
59fp16:
60tf32: false
61
62gradient_checkpointing: true
63early_stopping_patience:
64resume_from_checkpoint:
65local_rank:
66logging_steps: 1
67xformers_attention:
68flash_attention: true
69
70warmup_steps: 15
71evals_per_epoch: 10
72eval_table_size:
73eval_max_new_tokens: 128
74saves_per_epoch: 5
75debug:
76deepspeed:
77weight_decay: 0.0
78fsdp:
79fsdp_config:
80special_tokens:
81| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.4054 | 0.0126 | 1 | 2.3746 |
| 2.3966 | 0.1006 | 8 | 2.3649 |
| 2.3607 | 0.2013 | 16 | 2.3105 |
| 2.2822 | 0.3019 | 24 | 2.2564 |
| 2.2658 | 0.4025 | 32 | 2.2115 |
| 2.2261 | 0.5031 | 40 | 2.1804 |
| 2.1511 | 0.6038 | 48 | 2.1578 |
| 2.1752 | 0.7044 | 56 | 2.1431 |
| 2.1718 | 0.8050 | 64 | 2.1331 |
| 2.1669 | 0.9057 | 72 | 2.1237 |
| 2.1408 | 1.0 | 80 | 2.1135 |
| 2.1057 | 1.1006 | 88 | 2.1085 |
| 2.1289 | 1.2013 | 96 | 2.1038 |
| 2.0875 | 1.3019 | 104 | 2.0994 |
| 2.1468 | 1.4025 | 112 | 2.0960 |
| 2.1295 | 1.5031 | 120 | 2.0933 |
| 2.1162 | 1.6038 | 128 | 2.0910 |
| 2.1073 | 1.7044 | 136 | 2.0891 |
| 2.1002 | 1.8050 | 144 | 2.0875 |
| 2.1017 | 1.9057 | 152 | 2.0860 |
| 2.0871 | 2.0 | 160 | 2.0849 |
| 2.0889 | 2.1006 | 168 | 2.0838 |
| 2.1011 | 2.2013 | 176 | 2.0828 |
| 2.1061 | 2.3019 | 184 | 2.0820 |
| 2.1024 | 2.4025 | 192 | 2.0812 |
| 2.1313 | 2.5031 | 200 | 2.0807 |
| 2.1128 | 2.6038 | 208 | 2.0801 |
| 2.0528 | 2.7044 | 216 | 2.0796 |
| 2.1116 | 2.8050 | 224 | 2.0792 |
| 2.1395 | 2.9057 | 232 | 2.0789 |
| 2.1217 | 3.0 | 240 | 2.0786 |
| 2.1046 | 3.1006 | 248 | 2.0784 |
| 2.1093 | 3.2013 | 256 | 2.0781 |
| 2.1218 | 3.3019 | 264 | 2.0780 |
| 2.1058 | 3.4025 | 272 | 2.0779 |
| 2.1027 | 3.5031 | 280 | 2.0778 |
| 2.0832 | 3.6038 | 288 | 2.0778 |
| 2.1026 | 3.7044 | 296 | 2.0777 |
| 2.1173 | 3.8050 | 304 | 2.0777 |
| 2.1293 | 3.9057 | 312 | 2.0777 |