Views
No views yet
0.11.0.dev01base_model: mistralai/Mistral-7B-Instruct-v0.3
2# optionally might have model_type or tokenizer_type
3model_type: AutoModelForCausalLM
4#tokenizer_type: LlamaTokenizer
5# Automatically upload checkpoint and final model to HF
6hub_model_id: AiAF/Mistral-7B-Instruct-v0.3-QLoRA-SFT-75567
7
8load_in_8bit: false
9load_in_4bit: true
10
11datasets:
12 - path: ./
13 data_files:
14 - STLD-S01E01-SFT-JSONL-fixed.jsonl
15 type: chat_template
16 chat_template: chatml
17 field_messages: messages
18 message_property_mappings:
19 role: role
20 content: content
21 roles_to_train: ["assistant", "user", "system"]
22 train_on_eos: "turn"
23
24dataset_prepared_path: last_run_prepared
25val_set_size: 0.1
26output_dir: ./outputs/qlora-out/Mistral-7B-Instruct-v0.3-QLoRA-SFT-75567
27save_total_limit: 25
28
29adapter: qlora
30lora_model_dir:
31lora_modules_to_save: ["embed_tokens", "lm_head"]
32
33sequence_len: 8192
34sample_packing: true
35pad_to_sequence_len: true
36eval_sample_packing: False
37
38lora_r: 256
39lora_alpha: 512
40lora_dropout: 0.05
41lora_target_linear: true
42lora_target_modules:
43 - gate_proj
44 - down_proj
45 - up_proj
46 - q_proj
47 - v_proj
48 - k_proj
49 - o_proj
50
51wandb_project: "LLM-SFT"
52wandb_watch: "all"
53wandb_name: "Mistral-7B-Instruct-v0.3-QLoRA-SFT-75567-3"
54wandb_log_model: "false"
55wandb_run_id: "Mistral-7B-Instruct-v0.3-QLoRA-SFT-75567-3"
56
57gradient_accumulation_steps: 4
58micro_batch_size: 2
59num_epochs: 50
60optimizer: adamw_bnb_8bit
61lr_scheduler: cosine
62learning_rate: 0.000005
63
64bf16: auto
65tf32: false
66
67gradient_checkpointing: true
68resume_from_checkpoint:
69logging_steps: 1
70flash_attention: true
71
72loss_watchdog_threshold: 5.0
73loss_watchdog_patience: 3
74
75warmup_steps: 5
76evals_per_epoch:
77saves_per_epoch: 1
78weight_decay: 0.0
79special_tokens:
80 eos_token: "<|im_end|>"
81