Views
No views yet
| Training Loss | Epoch | Step | Validation Loss | Mem Active(gib) | Mem Allocated(gib) | Mem Reserved(gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 8.3469 | 9.34 | 9.34 | 9.42 |
| 3.5606 | 1.0 | 185 | 3.4639 | 11.52 | 11.52 | 12.26 |
| 2.839 | 2.0 | 370 | 3.3256 | 11.52 | 11.52 | 12.26 |
0.12.21base_model: google/gemma-3-4b-it
2
3# load_in_4bit: true # Disabled for LoRA training
4
5# gemma3 doesn't seem to play nice with ddp
6ddp_find_unused_parameters: true
7
8chat_template: gemma3
9eot_tokens:
10 - <end_of_turn>
11datasets:
12 - path: sanskrit_multimodal_train.json
13 type: chat_template
14 field_messages: messages
15
16
17dataset_prepared_path: last_run_prepared
18val_set_size: 0.01
19output_dir: ./outputs/out-gemma3-4B
20
21adapter: lora
22lora_model_dir:
23
24sequence_len: 2048
25sample_packing: false
26
27
28lora_r: 32
29lora_alpha: 16
30lora_dropout: 0.05
31lora_target_modules: 'model.language_model.layers.[\d]+.(mlp|cross_attn|self_attn).(up|down|gate|q|k|v|o)_proj'
32
33wandb_project: Sanskrit-OCR
34wandb_entity:
35wandb_watch:
36wandb_name: gemma3-4B-sanskrit-ocr
37wandb_log_model:
38hub_model_id: diabolic6045/gemma3-4B-sanskrit-ocr-lora
39
40gradient_accumulation_steps: 4
41micro_batch_size: 4
42num_epochs: 3
43optimizer: adamw_bnb_8bit
44lr_scheduler: cosine
45learning_rate: 0.0002
46
47bf16: true
48fp16:
49tf32: true
50
51gradient_checkpointing: true
52gradient_checkpointing_kwargs:
53 use_reentrant: false
54logging_steps: 1
55flash_attention: true
56eager_attention:
57
58warmup_ratio: 0.1
59evals_per_epoch: 1
60saves_per_epoch: 1
61weight_decay: 0.0
62
63# save_first_step: true # uncomment this to validate checkpoint saving works with your config