[2026-08-31 01:41:53,377] [DEBUG] [axolotl.utils.config.log_gpu_memory_usage:127] [PID:8652] baseline 0.000GB () [2026-08-31 01:41:53,378] [INFO] [axolotl.cli.config.load_cfg:333] [PID:8652] config: { "activation_offloading": false, "attn_implementation": "flash_attention_2", "attn_needs_dtype_cast": true, "attn_supports_packing": true, "attn_uses_flash_lib": true, "axolotl_config_path": "/workspace/final_v1/charter/midtrain/axolotl.yaml", "base_model": "unsloth/gemma-3-12b-pt", "base_model_config": "unsloth/gemma-3-12b-pt", "batch_size": 32, "bf16": true, "capabilities": { "bf16": true, "compute_capability": "sm_90", "fp8": true, "n_gpu": 4, "n_node": 1, "tf32": true }, "checkpoint_schedule": [ 38, 122, 381 ], "context_parallel_size": 1, "cosine_min_lr_ratio": 0.1, "dataloader_num_workers": 4, "dataloader_pin_memory": true, "dataloader_prefetch_factor": 256, "dataset_num_proc": 16, "dataset_prepared_path": "/workspace/final_v1/charter/midtrain/prepared", "datasets": [ { "field": "text", "message_property_mappings": { "content": "content", "role": "role" }, "path": "/workspace/final_v1/charter/data/leg_a.jsonl", "trust_remote_code": false, "type": "completion" } ], "ddp": true, "device": "cuda:0", "device_map": { "": 0 }, "dion_rank_fraction": 1.0, "dion_rank_multiple_of": 1, "eaft_alpha": 1.0, "eaft_k": 20, "env_capabilities": { "torch_version": "2.12.1" }, "eval_batch_size": 1, "eval_causal_lm_metrics": [ "sacrebleu", "comet", "ter", "chrf" ], "eval_max_new_tokens": 128, "eval_sample_packing": true, "eval_table_size": 0, "experimental_skip_move_to_device": true, "fp16": false, "fsdp_config": { "auto_wrap_policy": "TRANSFORMER_BASED_WRAP", "cpu_ram_efficient_loading": true, "fsdp_version": 2, "offload_params": false, "reshard_after_forward": true, "state_dict_type": "FULL_STATE_DICT", "transformer_layer_cls_to_wrap": "Gemma3DecoderLayer" }, "fsdp_version": 2, "generate_samples": false, "generation_do_sample": true, "generation_max_new_tokens": 50, "generation_prompt_ratio": 0.5, "generation_temperature": 0.7, "gradient_accumulation_steps": 8, "gradient_checkpointing": true, "gradient_checkpointing_kwargs": { "use_reentrant": true }, "include_tkps": true, "is_multimodal": true, "layer_offloading": false, "learning_rate": 1e-05, "liger_fused_linear_cross_entropy": true, "liger_glu_activation": true, "liger_rms_norm": true, "liger_rope": true, "lisa_layers_attribute": "model.layers", "load_best_model_at_end": false, "load_in_4bit": false, "load_in_8bit": false, "local_rank": 0, "logging_steps": 1, "lora_dropout": 0.0, "loraplus_lr_embedding": 1e-06, "lr_scheduler": "cosine", "max_grad_norm": 1.0, "max_steps": 381, "mean_resizing_embeddings": false, "merge_method": "memory_efficient", "micro_batch_size": 1, "model_config_type": "gemma3", "model_config_type_text": "gemma3_text", "num_epochs": 1.0, "num_generation_samples": 3, "optimizer": "adamw_torch_fused", "otel_metrics_host": "localhost", "otel_metrics_port": 8000, "output_dir": "/workspace/final_v1/charter/midtrain/checkpoints", "pad_to_sequence_len": true, "plugins": [ "axolotl.integrations.liger.LigerPlugin", "scimt.train.axolotl_plugins.CheckpointSchedulePlugin" ], "pretrain_multipack_attn": true, "processor_config": "unsloth/gemma-3-12b-pt", "profiler_steps_start": 0, "qgalore_cos_threshold": 0.4, "qgalore_gamma_proj": 2, "qgalore_proj_bits": 4, "qgalore_proj_group_size": 256, "qgalore_proj_quant": true, "qgalore_proj_type": "std", "qgalore_queue_size": 5, "qgalore_rank": 256, "qgalore_scale": 0.25, "qgalore_update_proj_gap": 200, "qlora_sharded_model_loading": false, "quantize_moe_experts": false, "ray_num_workers": 1, "relora_prune_method": "magnitude", "resources_per_worker": { "GPU": 1 }, "revision_of_model": "54ba4a26535408ddf5747cb9f7a5c16816659564", "sample_packing": true, "sample_packing_bin_size": 200, "sample_packing_group_size": 100000, "save_only_model": true, "save_safetensors": true, "save_strategy": "no", "save_total_limit": 3, "seed": 42, "sequence_len": 8192, "shuffle_before_merging_datasets": false, "shuffle_merged_datasets": true, "skip_prepare_dataset": false, "streaming_multipack_buffer_size": 10000, "strict": false, "tensor_parallel_size": 1, "tf32": true, "tiled_mlp_use_original_mlp": true, "tokenizer_config": "unsloth/gemma-3-12b-pt", "tokenizer_save_jinja_files": true, "torch_dtype": "torch.bfloat16", "train_on_inputs": false, "trl": { "async_prefetch": false, "log_completions": false, "mask_truncated_completions": false, "ref_model_mixup_alpha": 0.9, "ref_model_sync_steps": 64, "replay_buffer_size": 0, "replay_recompute_logps": true, "reroll_max_groups": 1, "reroll_start_fraction": 1.0, "reward_num_workers": 1, "scale_rewards": true, "skip_zero_advantage_batches": true, "sync_ref_model": false, "use_data_producer": false, "use_vllm": false, "vllm_lora_sync": false, "vllm_server_host": "0.0.0.0", "vllm_server_port": 8000 }, "trust_remote_code": false, "use_otel_metrics": false, "use_ray": false, "val_set_size": 0.0, "vllm": { "device": "auto", "dtype": "auto", "gpu_memory_utilization": 0.9, "host": "0.0.0.0", "port": 8000 }, "warmup_ratio": 0.03, "weight_decay": 0.01, "world_size": 4 } [2026-08-31 01:41:53,653] [DEBUG] [axolotl.loaders.utils.check_model_config:88] [PID:8652] Loaded image size: 896 from model config [2026-08-31 01:41:55,889] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:311] [PID:8652] EOS: 1 / [2026-08-31 01:41:55,889] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:8652] BOS: 2 / [2026-08-31 01:41:55,889] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:8652] PAD: 0 / [2026-08-31 01:41:55,889] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:8652] UNK: 3 / [2026-08-31 01:41:55,889] [INFO] [axolotl.loaders.tokenizer.load_tokenizer:328] [PID:8652] No Chat template selected. Consider adding a chat template for easier inference. [2026-08-31 01:43:25,614] [INFO] [axolotl.utils.data.shared.load_preprocessed_dataset:477] [PID:8652] Loading prepared dataset from disk at /workspace/final_v1/charter/midtrain/prepared/9fc816d7fbbb6d9d5a4905047a934edd... [2026-08-31 01:43:25,852] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:420] [PID:8652] total_num_tokens: 100_090_348 [2026-08-31 01:43:26,589] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:438] [PID:8652] `total_supervised_tokens: 100_090_348` [2026-08-31 01:43:29,970] [DEBUG] [axolotl.utils.samplers.multipack.__len__:462] [PID:8652] generate_batches time: 1.200279712677002 [2026-08-31 01:43:31,794] [INFO] [axolotl.utils.samplers.multipack.calc_min_len:438] [PID:8652] gather_len_batches: [12245, 12245, 12245, 12245] [2026-08-31 01:43:32,203] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:495] [PID:8652] data_loader_len: 382 [2026-08-31 01:43:32,215] [INFO] [axolotl.utils.trainer.calc_sample_packing_eff_est:504] [PID:8652] sample_packing_eff_est across ranks: [0.9977999329566956, 0.9977184534072876, 0.9978814125061035, 0.9977999329566956] [2026-08-31 01:43:32,216] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:516] [PID:8652] sample_packing_eff_est: 1.0 [2026-08-31 01:43:32,216] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:521] [PID:8652] total_num_steps: 382 [2026-08-31 01:43:32,220] [INFO] [axolotl.utils.data.sft._prepare_standard_dataset:121] [PID:8652] Maximum number of steps set at 381 [2026-08-31 01:43:32,322] [DEBUG] [axolotl.train.setup_model_and_tokenizer:70] [PID:8652] loading tokenizer... unsloth/gemma-3-12b-pt [2026-08-31 01:43:34,671] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:311] [PID:8652] EOS: 1 / [2026-08-31 01:43:34,671] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:8652] BOS: 2 / [2026-08-31 01:43:34,671] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:8652] PAD: 0 / [2026-08-31 01:43:34,671] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:8652] UNK: 3 / [2026-08-31 01:43:34,671] [INFO] [axolotl.loaders.tokenizer.load_tokenizer:328] [PID:8652] No Chat template selected. Consider adding a chat template for easier inference. [2026-08-31 01:43:40,159] [DEBUG] [axolotl.train.setup_model_and_tokenizer:81] [PID:8652] Loading model [2026-08-31 01:43:40,164] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:75] [PID:8652] Patched OptimState8bit for torch.compile compatibility [2026-08-31 01:43:40,164] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:122] [PID:8652] Patched OptimState4bit for torch.compile compatibility [2026-08-31 01:43:40,164] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:154] [PID:8652] Patched OptimStateFp8 for torch.compile compatibility [2026-08-31 01:43:40,169] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_evaluation_loop:94] [PID:8652] Patched Trainer.evaluation_loop with nanmean loss calculation [2026-08-31 01:43:40,171] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_maybe_log_save_evaluate:148] [PID:8652] Patched Trainer._maybe_log_save_evaluate with nanmean loss calculation [2026-08-31 01:43:40,221] [INFO] [axolotl.monkeypatch.attention.flash_attn_4.patch_flash_attn_4:52] [PID:8652] Flash Attention 4 is available for your GPU and offers faster training speeds. To enable: pip install flash-attn-4 [2026-08-31 01:43:40,222] [INFO] [axolotl.loaders.patch_manager._apply_multipack_patches:704] [PID:8652] Applying multipack dataloader patch for sample packing... [2026-08-31 01:43:42,342] [INFO] [axolotl.integrations.liger.plugin.pre_model_load:117] [PID:8652] Applying LIGER to gemma3 with kwargs: {'rope': True, 'cross_entropy': None, 'fused_linear_cross_entropy': True, 'rms_norm': True, 'layer_norm': None, 'geglu': True} Fetching 5 files: 0%| | 0/5 [00:00