Views
No views yet
0.16.2.dev01base_model: ./outputs/qwen3.5-4b-regulacao-distribuicao-mcsynth-1e5
2# Stage 2: full SFT refinement on domain data (regulacao + distribuicao).
3# Requires stage 1 (qwen3.5-cemig.yml) to have finished and saved weights.
4
5plugins:
6 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
7strict: false
8
9chat_template: qwen3_5
10datasets:
11 - path: TokenLab/CemigConvoV1.1
12 split: regulacao
13 type: chat_template
14 field_messages: messages
15 roles_to_train: [assistant]
16
17 - path: /workspace/pipeline/data/distribuicao/norm_tecnicas_dist.jsonl
18 ds_type: json
19 type: chat_template
20 field_messages: messages
21 roles_to_train: [assistant]
22
23val_set_size: 0.05
24output_dir: ./outputs/qwen3.5-4b-regulacao-distribuicao-stage2-5e6
25dataset_prepared_path: ./prepared_datasets/qwen3.5-4b-stage2
26
27sequence_len: 4096
28sample_packing: true
29
30# Freeze vision encoder (same as stage 1)
31unfrozen_parameters:
32 - model.language_model.*
33 - lm_head.*
34
35wandb_project: qwen3.5-4b-regulacao-distribuicao
36wandb_entity:
37wandb_watch:
38wandb_name: qwen3.5-4b-regulacao-distribuicao-stage2
39wandb_log_model:
40
41gradient_accumulation_steps: 4
42micro_batch_size: 8
43num_epochs: 1
44optimizer: adamw_torch_fused
45lr_scheduler: cosine
46learning_rate: 5e-6
47
48bf16: auto
49tf32: true
50
51gradient_checkpointing: true
52gradient_checkpointing_kwargs:
53 use_reentrant: false
54resume_from_checkpoint:
55logging_steps: 1
56attn_implementation: flash_attention_2
57
58warmup_ratio: 0.02
59evals_per_epoch: 2
60saves_per_epoch: 1
61weight_decay: 0.01
62special_tokens:
63
64# fsdp_config:
65# fsdp_version: 2
66# offload_params: false
67# cpu_ram_efficient_loading: false
68# auto_wrap_policy: TRANSFORMER_BASED_WRAP
69# transformer_layer_cls_to_wrap: Qwen3_5DecoderLayer
70# state_dict_type: FULL_STATE_DICT
71# sharding_strategy: FULL_SHARD
72# reshard_after_forward: true
73# activation_checkpointing: true
74| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|---|
| No log | 0 | 0 | 0.6501 | 1.9157 | 12.6 | 12.6 | 12.67 |
| 0.6275 | 0.5004 | 518 | 0.6470 | 1.9098 | 28.28 | 28.28 | 47.0 |
| 0.6454 | 0.9998 | 1035 | 0.6464 | 1.9087 | 28.28 | 28.28 | 47.62 |