Views
No views yet
0.13.0.dev01base_model: Qwen/Qwen3-8B
2# Automatically upload checkpoint and final model to HF
3# hub_model_id: username/custom_model_name
4
5quantization_config:
6 load_in_4bit: true
7 bnb_4bit_quant_type: "nf4"
8 bnb_4bit_compute_dtype: "bfloat16"
9 bnb_4bit_use_double_quant: true
10strict: false
11
12datasets:
13 - path: /workspace/outputs/training_data/
14 ds_type: json
15 data_files:
16 - knowledge_v2.json
17 type: chat_template
18dataset_prepared_path:
19val_set_size: 0.05
20output_dir: /workspace/outputs/FT_v2
21
22sequence_len: 1024
23sample_packing: true
24eval_sample_packing: true
25
26
27adapter: lora
28lora_model_dir:
29lora_r: 32
30lora_alpha: 64
31lora_dropout: 0.05
32lora_target_linear: true
33
34wandb_project:
35wandb_entity:
36wandb_watch:
37wandb_name:
38wandb_log_model:
39
40gradient_accumulation_steps: 4
41micro_batch_size: 1
42num_epochs: 1
43optimizer: adamw_torch_fused
44lr_scheduler: cosine
45learning_rate: 0.0002
46
47bf16: auto
48tf32: true
49
50gradient_checkpointing: true
51gradient_checkpointing_kwargs:
52 use_reentrant: false
53resume_from_checkpoint:
54logging_steps: 1
55flash_attention: true
56
57warmup_ratio: 0.1
58evals_per_epoch: 4
59saves_per_epoch: 1
60weight_decay: 0.0
61#fsdp:
62# - full_shard
63# - auto_wrap
64#fsdp_config:
65# fsdp_limit_all_gathers: true
66# fsdp_sync_module_states: true
67# fsdp_offload_params: true
68# fsdp_use_orig_params: false
69# fsdp_cpu_ram_efficient_loading: true
70# fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
71# fsdp_transformer_layer_cls_to_wrap: Qwen3DecoderLayer
72# fsdp_state_dict_type: FULL_STATE_DICT
73# fsdp_sharding_strategy: FULL_SHARD
74special_tokens:
75
76# save_first_step: true # uncomment this to validate checkpoint saving works with your config| Training Loss | Epoch | Step | Validation Loss | Active (gib) | Allocated (gib) | Reserved (gib) |
|---|---|---|---|---|---|---|
| No log | 0 | 0 | 18.8148 | 17.02 | 17.02 | 17.05 |
| 1.174 | 0.2424 | 2 | 0.1786 | 17.11 | 17.11 | 20.54 |
| 0.4046 | 0.4848 | 4 | 0.1719 | 17.11 | 17.11 | 20.54 |
| 0.1539 | 0.7273 | 6 | 0.1548 | 17.11 | 17.11 | 20.54 |
| 0.1521 | 0.9697 | 8 | 0.1480 | 17.11 | 17.11 | 20.54 |