Views
No views yet
0.13.0.dev01base_model: mistralai/Mistral-7B-v0.1
2model_type: MistralForCausalLM
3tokenizer_type: AutoTokenizer
4
5datasets:
6 - path: gbharti/finance-alpaca
7 type: alpaca
8
9adapter: qlora
10load_in_4bit: true
11lora_model_dir:
12
13lora_r: 64
14lora_alpha: 16
15lora_dropout: 0.1
16lora_target_linear: true
17lora_modules_to_save:
18 - embed_tokens
19 - lm_head
20
21# --- BULLETPROOF MEMORY SETTINGS ---
22# Micro Batch 4 is very safe.
23# Gradient Checkpointing reduces VRAM usage by ~40%
24micro_batch_size: 4
25gradient_accumulation_steps: 8
26gradient_checkpointing: true
27
28num_epochs: 3
29optimizer: adamw_bnb_8bit
30lr_scheduler: cosine
31learning_rate: 0.0002
32
33sequence_len: 2048
34sample_packing: true
35pad_to_sequence_len: true
36
37flash_attention: true
38train_on_inputs: false
39group_by_length: false
40bf16: true
41fp16: false
42tf32: false
43
44output_dir: ./finance-mistral-output
45save_steps: 50
46logging_steps: 5
47eval_steps: 50
48save_strategy: steps
49