1base_model: huihui-ai/Huihui-gemma-3n-E4B-it-abliterated
2
3# Automatically upload checkpoint and final model to HF
4# hub_model_id: username/custom_model_name
5
6plugins:
7 - axolotl.integrations.liger.LigerPlugin
8 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
9liger_rope: true
10liger_rms_norm: true
11liger_layer_norm: true
12liger_glu_activation: true
13liger_fused_linear_cross_entropy: false
14cut_cross_entropy: true
15
16load_in_8bit: false
17load_in_4bit: true
18
19# for use with fft to only train on language model layers
20# unfrozen_parameters:
21 # - model.language_model.*
22 # - lm_head
23 # - embed_tokens
24
25
26chat_template: gemma3n
27eot_tokens:
28 - <end_of_turn>
29datasets:
30 - path: hardlyworking/HardlyRPv2-10k
31 type: chat_template
32 split: train
33 field_messages: conversations
34 message_property_mappings:
35 role: from
36 content: value
37
38val_set_size: 0.0
39output_dir: ./outputs/out
40
41adapter: qlora
42lora_r: 128
43lora_alpha: 64
44lora_dropout: 0.05
45# lora_target_linear: # Does not work with gemma3n currently
46lora_target_modules:
47 - self_attn.q_proj
48 - self_attn.k_proj
49 - self_attn.v_proj
50 - self_attn.o_proj
51 - mlp.gate_proj
52 - mlp.up_proj
53 - mlp.down_proj
54
55
56sequence_len: 8192
57sample_packing: true
58eval_sample_packing: true
59pad_to_sequence_len: true
60
61wandb_project:
62wandb_entity:
63wandb_watch:
64wandb_name:
65wandb_log_model:
66
67gradient_accumulation_steps: 8
68micro_batch_size: 4
69num_epochs: 2
70optimizer: adamw_bnb_8bit
71lr_scheduler: cosine
72learning_rate: 0.0002
73
74bf16: auto
75tf32: true
76
77gradient_checkpointing: true
78gradient_checkpointing_kwargs:
79 use_reentrant: false
80 unsloth: true
81resume_from_checkpoint:
82logging_steps: 1
83# flash_attention: true # Any attention impl does not work with gemma3n now
84
85warmup_ratio: 0.1
86evals_per_epoch:
87saves_per_epoch: 1
88weight_decay: 0.0
89special_tokens:
90