1base_model: google/gemma-3-270m-it
2# optionally might have model_type or tokenizer_type
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5# Automatically upload checkpoint and final model to HF
6# hub_model_id: username/custom_model_name
7
8# gemma3 doesn't seem to play nice with ddp
9ddp_find_unused_parameters: true
10
11load_in_8bit: false
12load_in_4bit: false
13
14# huggingface repo
15chat_template: gemma3
16eot_tokens:
17 - <end_of_turn>
18datasets:
19 - path: sam2ai/en-oriya-translation
20 type: chat_template
21 field_messages: conversations
22 message_property_mappings:
23 role: from
24 content: value
25 roles:
26 assistant:
27 - gpt
28 user:
29 - human
30
31val_set_size: 0.1
32output_dir: ./outputs/gemma3-270m
33
34 #adapter: qlora
35 #lora_r: 32
36 #lora_alpha: 16
37 #lora_dropout: 0.05
38 #lora_target_linear: true
39
40sequence_len: 2048
41sample_packing: true
42eval_sample_packing: false
43
44
45wandb_project: gemma3-en-odia-mt
46wandb_entity:
47wandb_watch:
48wandb_name: gemma3-270m-it
49wandb_log_model:
50
51
52gradient_accumulation_steps: 4
53micro_batch_size: 1
54num_epochs: 10
55optimizer: adamw_bnb_8bit
56lr_scheduler: cosine
57learning_rate: 0.0002
58
59bf16: auto
60tf32: false
61
62gradient_checkpointing: true
63gradient_checkpointing_kwargs:
64 use_reentrant: false
65resume_from_checkpoint:
66logging_steps: 1
67flash_attention: true
68
69warmup_ratio: 0.1
70evals_per_epoch:
71saves_per_epoch: 1
72weight_decay: 0.0
73special_tokens:
74
75# save_first_step: true # uncomment this to validate checkpoint saving works with your config
76