1base_model: Qwen/Qwen3-0.6B-Base
2# Automatically upload checkpoint and final model to HF
3# hub_model_id: username/custom_model_name
4
5plugins:
6 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
7strict: false
8
9chat_template: qwen3
10datasets:
11 - path: /mloscratch/users/arni/Workspace/mnlp_sft/datasets/s1k.json
12 type: chat_template
13 split: train
14 field_messages: conversations
15 # message_property_mappings:
16 # role: from
17 # content: value
18
19output_dir: ./outputs/_2
20dataset_prepared_path: last_run_prepared
21
22# To be sure that no LORA is done
23adapter: null
24lora: false
25merge_lora: false
26
27sequence_len: 4096 #2048
28sample_packing: true
29eval_sample_packing: false
30pad_to_sequence_len: true
31
32wandb_project: mnlp_project
33wandb_entity: tim-arni
34wandb_watch:
35wandb_name: qwen3_s1k_2
36wandb_log_model:
37
38gradient_accumulation_steps: 2 # 16 following https://unsloth.ai/blog/qwen3
39micro_batch_size: 1 # 2
40num_epochs: 6
41optimizer: adamw_torch
42lr_scheduler: cosine
43learning_rate: 0.00001 # 0.0002
44cosine_min_lr_ratio: 0.1
45
46bf16: auto
47tf32: true
48
49gradient_checkpointing: offload
50gradient_checkpointing_kwargs:
51 use_reentrant: false
52resume_from_checkpoint:
53logging_steps: 1
54gradient_clipping: 1.0
55flash_attention: true
56
57warmup_ratio: 0.03
58evals_per_epoch: 4
59saves_per_epoch: 1
60weight_decay: 1e-4
61special_tokens:
62