diff --git "a/debug.log" "b/debug.log" --- "a/debug.log" +++ "b/debug.log" @@ -1,5 +1,5 @@ -[2026-08-20 05:36:16,410] [DEBUG] [axolotl.utils.config.log_gpu_memory_usage:127] [PID:6541] baseline 0.000GB () -[2026-08-20 05:36:16,411] [INFO] [axolotl.cli.config.load_cfg:336] [PID:6541] config: +[2026-08-20 06:19:39,319] [DEBUG] [axolotl.utils.config.log_gpu_memory_usage:127] [PID:12398] baseline 0.000GB () +[2026-08-20 06:19:39,321] [INFO] [axolotl.cli.config.load_cfg:336] [PID:12398] config: { "activation_offloading": false, "adapter": "lora", @@ -127,6 +127,7 @@ "otel_metrics_port": 8000, "output_dir": "./checkpoints/sft/summariser", "pad_to_sequence_len": true, + "peft_use_dora": true, "plugins": [ "axolotl.integrations.liger.LigerPlugin" ], @@ -227,1131 +228,332 @@ "weight_decay": 0.01, "world_size": 1 } -[2026-08-20 05:36:22,655] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:311] [PID:6541] EOS: 151645 / <|im_end|> -[2026-08-20 05:36:22,655] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:6541] BOS: None / None -[2026-08-20 05:36:22,655] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:6541] PAD: 151643 / <|endoftext|> -[2026-08-20 05:36:22,655] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:6541] UNK: None / None -[2026-08-20 05:36:22,657] [INFO] [axolotl.utils.data.shared.load_preprocessed_dataset:543] [PID:6541] Unable to find prepared dataset in prepared/sft_summariser/4bc84629d7c7f9e6b4865fc965488ade -[2026-08-20 05:36:22,657] [INFO] [axolotl.utils.data.sft._load_raw_datasets:320] [PID:6541] Loading raw datasets... -[2026-08-20 05:36:22,657] [WARNING] [axolotl.utils.data.sft._load_raw_datasets:322] [PID:6541] Processing datasets during training can lead to VRAM instability. Please pre-process your dataset using `axolotl preprocess path/to/config.yml`. - Fetching 0 files: 0it [00:00, ?it/s] Fetching 0 files: 0it [00:00, ?it/s] -[2026-08-20 05:36:23,984] [INFO] [axolotl.utils.data.wrappers.get_dataset_wrapper:87] [PID:6541] Loading dataset: paulvision/medscript-sft-summariser with base_type: chat_template and prompt_style: None -[2026-08-20 05:36:24,005] [INFO] [axolotl.prompt_strategies.chat_template.__call__:1210] [PID:6541] Using chat template: ---- -{%- if tools %} - {{- '<|im_start|>system\n' }} - {%- if messages[0].role == 'system' %} - {%- if messages[0].content is string %} - {{- messages[0].content + '\n\n' }} - {%- else %} - {%- for item in messages[0].content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {{- '\n\n' }} - {%- endif %} - {%- endif %} - {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} - {%- for tool in tools %} - {{- "\n" }} - {{- tool | tojson }} - {%- endfor %} - {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} -{%- else %} - {%- if messages[0].role == 'system' %} - {%- if messages[0].content is string %} - {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} - {%- else %} - {{- '<|im_start|>system\n' }} - {%- for item in messages[0].content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {{- '<|im_end|>\n' }} - {%- endif %} - {%- endif %} -{%- endif %} -{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %} -{#- Determine the real last index: use provided value or default to messages length - 1 #} -{%- if real_last_index is defined and real_last_index is not none %} - {%- set ns.real_last_index = real_last_index %} -{%- else %} - {%- set ns.real_last_index = messages|length - 1 %} -{%- endif %} -{%- for message in messages[::-1] %} - {%- set index = (messages|length - 1) - loop.index0 %} - {%- if message.content is string %} - {%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('') and message.content.endswith('')) %} - {%- set ns.multi_step_tool = false %} - {%- set ns.last_query_index = index %} - {%- endif %} - {%- else %} - {%- if ns.multi_step_tool and message.role == "user" %} - {%- set ns.multi_step_tool = false %} - {%- set ns.last_query_index = index %} - {%- endif %} - {%- endif %} -{%- endfor %} -{%- for message in messages %} - {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} - {%- if message.content is string %} - {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} - {%- else %} - {{- '<|im_start|>' + message.role + '\n' }} - {%- for item in message.content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {{- '<|im_end|>' + '\n' }} - {%- endif %} - {%- elif message.role == "assistant" %} - {%- if message.content is none %} - {%- set content = '' %} - {%- elif message.content is string %} - {%- set content = message.content %} - {%- else %} - {%- set content_ns = namespace(text='') %} - {%- for item in message.content %} - {%- if 'text' in item %} - {%- set content_ns.text = content_ns.text + item['text'] %} - {%- endif %} - {%- endfor %} - {%- set content = content_ns.text %} - {%- endif %} - {%- set reasoning_content = '' %} - {%- if message.reasoning_content is string %} - {%- set reasoning_content = message.reasoning_content %} - {%- else %} - {%- if '' in content %} - {%- set reasoning_content = content.split('')[0].rstrip('\n').split('')[-1].lstrip('\n') %} - {%- set content = content.split('')[-1].lstrip('\n') %} - {%- endif %} - {%- endif %} - {%- if loop.index0 > ns.last_query_index %} - {%- if loop.index0 == ns.real_last_index or (loop.index0 != ns.real_last_index and reasoning_content) %} - {{- '<|im_start|>' + message.role + '\n\n' + reasoning_content.strip('\n') + '\n\n\n' + content.lstrip('\n') }} - {%- else %} - {{- '<|im_start|>' + message.role + '\n' + content }} - {%- endif %} - {%- else %} - {{- '<|im_start|>' + message.role + '\n' + content }} - {%- endif %} - {%- if message.tool_calls %} - {%- for tool_call in message.tool_calls %} - {%- if (loop.first and content) or (not loop.first) %} - {{- '\n' }} - {%- endif %} - {%- if tool_call.function %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- '\n{"name": "' }} - {{- tool_call.name }} - {{- '", "arguments": ' }} - {%- if tool_call.arguments is string %} - {{- tool_call.arguments }} - {%- else %} - {{- tool_call.arguments | tojson }} - {%- endif %} - {{- '}\n' }} - {%- endfor %} - {%- endif %} - {{- '<|im_end|>\n' }} - {%- elif message.role == "tool" %} - {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} - {{- '<|im_start|>user' }} - {%- endif %} - {{- '\n\n' }} - {%- if message.content is string %} - {{- message.content }} - {%- else %} - {%- for item in message.content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- '\n' }} - {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} - {{- '<|im_end|>\n' }} - {%- endif %} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|im_start|>assistant\n' }} - {%- if enable_thinking is defined and enable_thinking is false %} - {{- '\n\n\n\n' }} - {%- else %} - {{- '\n\n' }} - {%- endif %} -{%- endif %} - ---- - Tokenizing Prompts (num_proc=32): 0%| | 0/17541 [00:001024) (num_proc=32): 0%| | 0/17541 [00:001024) (num_proc=32): 3%|▎ | 549/17541 [00:00<00:21, 786.40 examples/s] Dropping Invalid Sequences (1024) (num_proc=32): 31%|███▏ | 5485/17541 [00:00<00:01, 8996.21 examples/s] Dropping Invalid Sequences (1024) (num_proc=32): 100%|██████████| 17541/17541 [00:01<00:00, 17005.03 examples/s] -[2026-08-20 05:37:32,462] [INFO] [axolotl.utils.data.utils._drop_outside_range:306] [PID:6541] Dropped 10 sequences outside valid range ([None, 1024]) - Drop Samples with Zero Trainable Tokens (num_proc=32): 0%| | 0/17531 [00:00system\n' }} - {%- if messages[0].role == 'system' %} - {%- if messages[0].content is string %} - {{- messages[0].content + '\n\n' }} - {%- else %} - {%- for item in messages[0].content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {{- '\n\n' }} - {%- endif %} - {%- endif %} - {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n" }} - {%- for tool in tools %} - {{- "\n" }} - {{- tool | tojson }} - {%- endfor %} - {{- "\n\n\nFor each function call, return a json object with function name and arguments within XML tags:\n\n{\"name\": , \"arguments\": }\n<|im_end|>\n" }} -{%- else %} - {%- if messages[0].role == 'system' %} - {%- if messages[0].content is string %} - {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} - {%- else %} - {{- '<|im_start|>system\n' }} - {%- for item in messages[0].content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {{- '<|im_end|>\n' }} - {%- endif %} - {%- endif %} -{%- endif %} -{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %} -{#- Determine the real last index: use provided value or default to messages length - 1 #} -{%- if real_last_index is defined and real_last_index is not none %} - {%- set ns.real_last_index = real_last_index %} -{%- else %} - {%- set ns.real_last_index = messages|length - 1 %} -{%- endif %} -{%- for message in messages[::-1] %} - {%- set index = (messages|length - 1) - loop.index0 %} - {%- if message.content is string %} - {%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('') and message.content.endswith('')) %} - {%- set ns.multi_step_tool = false %} - {%- set ns.last_query_index = index %} - {%- endif %} - {%- else %} - {%- if ns.multi_step_tool and message.role == "user" %} - {%- set ns.multi_step_tool = false %} - {%- set ns.last_query_index = index %} - {%- endif %} - {%- endif %} -{%- endfor %} -{%- for message in messages %} - {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} - {%- if message.content is string %} - {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} - {%- else %} - {{- '<|im_start|>' + message.role + '\n' }} - {%- for item in message.content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {{- '<|im_end|>' + '\n' }} - {%- endif %} - {%- elif message.role == "assistant" %} - {%- if message.content is none %} - {%- set content = '' %} - {%- elif message.content is string %} - {%- set content = message.content %} - {%- else %} - {%- set content_ns = namespace(text='') %} - {%- for item in message.content %} - {%- if 'text' in item %} - {%- set content_ns.text = content_ns.text + item['text'] %} - {%- endif %} - {%- endfor %} - {%- set content = content_ns.text %} - {%- endif %} - {%- set reasoning_content = '' %} - {%- if message.reasoning_content is string %} - {%- set reasoning_content = message.reasoning_content %} - {%- else %} - {%- if '' in content %} - {%- set reasoning_content = content.split('')[0].rstrip('\n').split('')[-1].lstrip('\n') %} - {%- set content = content.split('')[-1].lstrip('\n') %} - {%- endif %} - {%- endif %} - {%- if loop.index0 > ns.last_query_index %} - {%- if loop.index0 == ns.real_last_index or (loop.index0 != ns.real_last_index and reasoning_content) %} - {{- '<|im_start|>' + message.role + '\n\n' + reasoning_content.strip('\n') + '\n\n\n' + content.lstrip('\n') }} - {%- else %} - {{- '<|im_start|>' + message.role + '\n' + content }} - {%- endif %} - {%- else %} - {{- '<|im_start|>' + message.role + '\n' + content }} - {%- endif %} - {%- if message.tool_calls %} - {%- for tool_call in message.tool_calls %} - {%- if (loop.first and content) or (not loop.first) %} - {{- '\n' }} - {%- endif %} - {%- if tool_call.function %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- '\n{"name": "' }} - {{- tool_call.name }} - {{- '", "arguments": ' }} - {%- if tool_call.arguments is string %} - {{- tool_call.arguments }} - {%- else %} - {{- tool_call.arguments | tojson }} - {%- endif %} - {{- '}\n' }} - {%- endfor %} - {%- endif %} - {{- '<|im_end|>\n' }} - {%- elif message.role == "tool" %} - {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} - {{- '<|im_start|>user' }} - {%- endif %} - {{- '\n\n' }} - {%- if message.content is string %} - {{- message.content }} - {%- else %} - {%- for item in message.content %} - {%- if 'text' in item %} - {{- item['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- '\n' }} - {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} - {{- '<|im_end|>\n' }} - {%- endif %} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|im_start|>assistant\n' }} - {%- if enable_thinking is defined and enable_thinking is false %} - {{- '\n\n\n\n' }} - {%- else %} - {{- '\n\n' }} - {%- endif %} -{%- endif %} - ---- - Tokenizing Prompts (num_proc=32): 0%| | 0/1949 [00:001024) (num_proc=32): 0%| | 0/1949 [00:001024) (num_proc=32): 3%|▎ | 61/1949 [00:00<00:28, 66.37 examples/s] Dropping Invalid Sequences (1024) (num_proc=32): 9%|▉ | 183/1949 [00:01<00:08, 215.38 examples/s] Dropping Invalid Sequences (1024) (num_proc=32): 100%|██████████| 1949/1949 [00:01<00:00, 1549.34 examples/s] -[2026-08-20 05:38:44,649] [INFO] [axolotl.utils.data.utils._drop_outside_range:306] [PID:6541] Dropped 1 sequences outside valid range ([None, 1024]) - Saving the dataset (0/7 shards): 0%| | 0/1948 [00:00 -[2026-08-20 05:38:53,388] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:6541] BOS: None / None -[2026-08-20 05:38:53,388] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:6541] PAD: 151643 / <|endoftext|> -[2026-08-20 05:38:53,388] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:6541] UNK: None / None -[2026-08-20 05:38:53,388] [DEBUG] [axolotl.train.setup_model_and_tokenizer:81] [PID:6541] Loading model -[2026-08-20 05:38:53,515] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:75] [PID:6541] Patched OptimState8bit for torch.compile compatibility -[2026-08-20 05:38:53,516] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:122] [PID:6541] Patched OptimState4bit for torch.compile compatibility -[2026-08-20 05:38:53,516] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:154] [PID:6541] Patched OptimStateFp8 for torch.compile compatibility -[2026-08-20 05:38:53,525] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_evaluation_loop:94] [PID:6541] Patched Trainer.evaluation_loop with nanmean loss calculation -[2026-08-20 05:38:53,527] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_maybe_log_save_evaluate:148] [PID:6541] Patched Trainer._maybe_log_save_evaluate with nanmean loss calculation -[2026-08-20 05:38:53,622] [INFO] [axolotl.monkeypatch.attention.flash_attn_4.patch_flash_attn_4:52] [PID:6541] Flash Attention 4 is available for your GPU and offers faster training speeds. To enable: pip install flash-attn-4 -[2026-08-20 05:38:55,860] [INFO] [axolotl.monkeypatch.lora_kernels.patch_self_attn_lora:339] [PID:6541] Patched attention class with LoRA optims: Qwen3Attention -[2026-08-20 05:38:55,862] [INFO] [axolotl.loaders.patch_manager._apply_multipack_patches:812] [PID:6541] Applying multipack dataloader patch for sample packing... -[2026-08-20 05:38:58,391] [INFO] [axolotl.integrations.liger.plugin.pre_model_load:145] [PID:6541] Applying LIGER to qwen3 with kwargs: {'rope': True, 'cross_entropy': None, 'fused_linear_cross_entropy': True, 'rms_norm': True, 'swiglu': True} - Loading weights: 0%| | 0/399 [00:00 +[2026-08-20 06:19:42,794] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:12398] BOS: None / None +[2026-08-20 06:19:42,794] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:12398] PAD: 151643 / <|endoftext|> +[2026-08-20 06:19:42,794] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:12398] UNK: None / None +[2026-08-20 06:19:42,798] [INFO] [axolotl.utils.data.shared.load_preprocessed_dataset:538] [PID:12398] Loading prepared dataset from disk at prepared/sft_summariser/4bc84629d7c7f9e6b4865fc965488ade... +[2026-08-20 06:19:42,836] [INFO] [axolotl.utils.data.shared.load_preprocessed_dataset:538] [PID:12398] Loading prepared dataset from disk at prepared/sft_summariser/eda3291548fafd95816192ffb44d2fa8... +[2026-08-20 06:19:42,849] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:418] [PID:12398] total_num_tokens: 10_667_157 +[2026-08-20 06:19:42,870] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:440] [PID:12398] total_supervised_tokens: 1_979_829 +[2026-08-20 06:19:45,110] [DEBUG] [axolotl.utils.samplers.multipack.__len__:462] [PID:12398] generate_batches time: 0.9590189456939697 +[2026-08-20 06:19:46,068] [DEBUG] [axolotl.utils.samplers.multipack.__len__:462] [PID:12398] generate_batches time: 0.9582459926605225 +[2026-08-20 06:19:47,029] [DEBUG] [axolotl.utils.samplers.multipack.__len__:462] [PID:12398] generate_batches time: 0.9602870941162109 +[2026-08-20 06:19:48,122] [DEBUG] [axolotl.utils.samplers.multipack.__len__:462] [PID:12398] generate_batches time: 1.0921857357025146 +[2026-08-20 06:19:48,171] [INFO] [axolotl.utils.samplers.multipack.calc_min_len:438] [PID:12398] gather_len_batches: [656] +[2026-08-20 06:19:48,171] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:497] [PID:12398] data_loader_len: 328 +[2026-08-20 06:19:48,172] [INFO] [axolotl.utils.trainer.calc_sample_packing_eff_est:506] [PID:12398] sample_packing_eff_est across ranks: [0.9924871863388434] +[2026-08-20 06:19:48,172] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:518] [PID:12398] sample_packing_eff_est: 1.0 +[2026-08-20 06:19:48,172] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:523] [PID:12398] total_num_steps: 328 +[2026-08-20 06:19:48,173] [INFO] [axolotl.utils.data.sft._prepare_standard_dataset:121] [PID:12398] Maximum number of steps set at 328 +[2026-08-20 06:19:48,227] [DEBUG] [axolotl.train.setup_model_and_tokenizer:70] [PID:12398] loading tokenizer... Qwen/Qwen3-8B +[2026-08-20 06:19:49,236] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:311] [PID:12398] EOS: 151645 / <|im_end|> +[2026-08-20 06:19:49,237] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:12398] BOS: None / None +[2026-08-20 06:19:49,237] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:12398] PAD: 151643 / <|endoftext|> +[2026-08-20 06:19:49,237] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:12398] UNK: None / None +[2026-08-20 06:19:49,237] [DEBUG] [axolotl.train.setup_model_and_tokenizer:81] [PID:12398] Loading model +[2026-08-20 06:19:49,367] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:75] [PID:12398] Patched OptimState8bit for torch.compile compatibility +[2026-08-20 06:19:49,367] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:122] [PID:12398] Patched OptimState4bit for torch.compile compatibility +[2026-08-20 06:19:49,367] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:154] [PID:12398] Patched OptimStateFp8 for torch.compile compatibility +[2026-08-20 06:19:49,379] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_evaluation_loop:94] [PID:12398] Patched Trainer.evaluation_loop with nanmean loss calculation +[2026-08-20 06:19:49,381] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_maybe_log_save_evaluate:148] [PID:12398] Patched Trainer._maybe_log_save_evaluate with nanmean loss calculation +[2026-08-20 06:19:49,426] [INFO] [axolotl.monkeypatch.attention.flash_attn_4.patch_flash_attn_4:52] [PID:12398] Flash Attention 4 is available for your GPU and offers faster training speeds. To enable: pip install flash-attn-4 +[2026-08-20 06:19:50,796] [INFO] [axolotl.monkeypatch.lora_kernels.patch_self_attn_lora:339] [PID:12398] Patched attention class with LoRA optims: Qwen3Attention +[2026-08-20 06:19:50,797] [INFO] [axolotl.loaders.patch_manager._apply_multipack_patches:812] [PID:12398] Applying multipack dataloader patch for sample packing... +[2026-08-20 06:19:51,326] [INFO] [axolotl.integrations.liger.plugin.pre_model_load:145] [PID:12398] Applying LIGER to qwen3 with kwargs: {'rope': True, 'cross_entropy': None, 'fused_linear_cross_entropy': True, 'rms_norm': True, 'swiglu': True} + Loading weights: 0%| | 0/399 [00:00