Views
No views yet
0.12.0.dev01base_model: ./HDD/MedraN_final/merged
2processor_type: AutoProcessor
3
4# Automatically upload checkpoint and final model to HF
5# hub_model_id: username/custom_model_name
6
7plugins:
8 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
9cut_cross_entropy: true
10
11# for use with fft to only train on language model layers
12# unfrozen_parameters:
13 # - model.language_model.*
14 # - lm_head
15 # - embed_tokens
16load_in_8bit: false
17load_in_4bit: false
18
19# these 3 lines are needed for now to handle vision chat templates w images
20skip_prepare_dataset: true
21remove_unused_columns: false
22sample_packing: false
23
24# gemma3 doesn't seem to play nice with ddp
25ddp_find_unused_parameters: true
26
27chat_template: gemma3n
28eot_tokens:
29 - <end_of_turn>
30datasets:
31 - path: /root/Uncensored_Reasoner_Small_Chat.json
32 type: chat_template
33 field_messages: messages
34dataset_prepared_path: last_run_prepared_medran_uncensored_final
35val_set_size: 0.01
36output_dir: ./HDD/MedraN_uncensored_final
37
38adapter: lora
39# lora_model_dir:
40peft_use_rslora: true
41
42sequence_len: 5400
43pad_to_sequence_len: false
44
45lora_r: 32
46lora_alpha: 16
47lora_dropout: 0.05
48lora_target_modules: 'model.language_model.layers.[\d]+.(mlp|self_attn).(up|down|gate|q|k|v|o)_proj'
49
50gradient_accumulation_steps: 1
51micro_batch_size: 2
52num_epochs: 10
53optimizer: adamw_torch_fused
54lr_scheduler: cosine
55learning_rate: 0.00004
56bf16: auto
57fp16:
58tf32: true
59
60gradient_checkpointing: true
61gradient_checkpointing_kwargs:
62 use_reentrant: false
63auto_resume_from_checkpoints: true
64logging_steps: 1
65#flash_attention: true
66eager_attention: true
67
68warmup_steps: 50
69evals_per_epoch: 2
70eval_max_new_tokens: 128
71saves_per_epoch: 2
72save_total_limit: 100
73
74debug:
75weight_decay: 0.0
76use_wandb: true
77wandb_project: "MedraN-Uncensored"
78wandb_name: "MedraN-Uncensored-bf16-stage1-final"
79deepspeed: deepspeed_configs/zero1.json
80| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 1.9622 |
| 1.1262 | 0.5 | 281 | 1.3529 |
| 1.3188 | 1.0 | 562 | 1.2051 |
| 1.0273 | 1.5 | 843 | 1.1405 |
| 1.0187 | 2.0 | 1124 | 1.0350 |
| 0.6996 | 2.5 | 1405 | 0.9807 |
| 0.8199 | 3.0 | 1686 | 0.8967 |
| 0.6026 | 3.5 | 1967 | 0.8557 |
| 0.6366 | 4.0 | 2248 | 0.8061 |
| 0.6249 | 4.5 | 2529 | 0.7436 |
| 0.3654 | 5.0 | 2810 | 0.6693 |
| 0.3942 | 5.5 | 3091 | 0.6110 |
| 0.2992 | 6.0 | 3372 | 0.5921 |
| 0.5288 | 6.5 | 3653 | 0.5716 |
| 0.4762 | 7.0 | 3934 | 0.5238 |
| 0.3181 | 7.5 | 4215 | 0.5131 |
| 0.3146 | 8.0 | 4496 | 0.4884 |
| 0.2855 | 8.5 | 4777 | 0.4777 |
| 0.3426 | 9.0 | 5058 | 0.4762 |
| 0.2711 | 9.5 | 5339 | 0.4726 |