Views
No views yet
0.4.11base_model: meta-llama/Meta-Llama-3.1-8B # same model you originally used
2peft_model: ahmedelgebaly/llama-3.1-8b-squadv2
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5
6load_in_8bit: false
7load_in_4bit: true
8strict: false
9
10datasets:
11 - path: ahmedelgebaly/SciQ_Alpaca
12 type: alpaca
13 split: train
14
15test_datasets:
16 - path: ahmedelgebaly/SciQ_Alpaca
17 type: alpaca
18 split: validation
19
20dataset_prepared_path:
21output_dir: ./outputs/qlora-out
22
23adapter: qlora
24lora_model_dir:
25
26sequence_len: 2048 # Halves memory usage decreasing from 4096
27
28sample_packing: true
29eval_sample_packing: false
30pad_to_sequence_len: true
31
32lora_r: 64 # Increased from 32
33lora_alpha: 32 # Increased from 16
34lora_dropout: 0.05
35lora_target_modules:
36lora_target_linear: true
37lora_fan_in_fan_out:
38
39wandb_project: llama-3.1-8b-squadv2_SciQ_e1_v2
40wandb_entity:
41wandb_watch:
42wandb_name: llama-3.1-8b-squadv2-v0_SciQ_e1_v2
43wandb_log_model:
44
45hub_model_id: ahmedelgebaly/llama-3.1-8b-squadv2_SciQ_e1_v2
46
47gradient_accumulation_steps: 32 # Keeps effective batch size=64 (2x32)
48micro_batch_size: 2 # Decrreses from 4
49num_epochs: 1
50optimizer: paged_adamw_32bit
51lr_scheduler: cosine_with_restarts # Updated
52learning_rate: 0.0001 # Reduced from 0.0002
53
54train_on_inputs: false
55group_by_length: false
56bf16: auto
57fp16:
58tf32: false
59
60gradient_checkpointing: true
61early_stopping_patience:
62resume_from_checkpoint:
63local_rank:
64logging_steps: 1
65xformers_attention:
66flash_attention: true
67
68warmup_steps: 100 # Increased from 10
69evals_per_epoch: 4
70eval_table_size:
71saves_per_epoch: 1
72debug:
73deepspeed:
74weight_decay: 0.0
75fsdp:
76fsdp_config:
77special_tokens:
78 pad_token: "<|end_of_text|>"
79| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.8006 | 0.0598 | 1 | 1.8330 |
| 1.7825 | 0.2393 | 4 | 1.8315 |
| 1.7629 | 0.4785 | 8 | 1.8140 |
| 1.6663 | 0.7178 | 12 | 1.7312 |
| 1.5168 | 0.9570 | 16 | 1.5100 |