[2026-08-31 02:07:11,509] [DEBUG] [axolotl.utils.config.log_gpu_memory_usage:127] [PID:6198] baseline 0.000GB () [2026-08-31 02:07:11,510] [INFO] [axolotl.cli.config.load_cfg:333] [PID:6198] 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/coin/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/coin/midtrain/prepared", "datasets": [ { "field": "text", "message_property_mappings": { "content": "content", "role": "role" }, "path": "/workspace/final_v1/coin/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/coin/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 02:07:11,614] [DEBUG] [axolotl.loaders.utils.check_model_config:88] [PID:6198] Loaded image size: 896 from model config [2026-08-31 02:07:13,257] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:311] [PID:6198] EOS: 1 / [2026-08-31 02:07:13,258] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:6198] BOS: 2 / [2026-08-31 02:07:13,258] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:6198] PAD: 0 / [2026-08-31 02:07:13,258] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:6198] UNK: 3 / [2026-08-31 02:07:13,258] [INFO] [axolotl.loaders.tokenizer.load_tokenizer:328] [PID:6198] No Chat template selected. Consider adding a chat template for easier inference. [2026-08-31 02:08:28,715] [INFO] [axolotl.utils.data.shared.load_preprocessed_dataset:477] [PID:6198] Loading prepared dataset from disk at /workspace/final_v1/coin/midtrain/prepared/5b8800c41c69025fe922537e02bd3571... [2026-08-31 02:08:28,951] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:420] [PID:6198] total_num_tokens: 100_088_615 [2026-08-31 02:08:29,593] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:438] [PID:6198] `total_supervised_tokens: 100_088_615` [2026-08-31 02:08:32,196] [DEBUG] [axolotl.utils.samplers.multipack.__len__:462] [PID:6198] generate_batches time: 0.9912130832672119 [2026-08-31 02:08:33,947] [INFO] [axolotl.utils.samplers.multipack.calc_min_len:438] [PID:6198] gather_len_batches: [12245, 12244, 12245, 12243] [2026-08-31 02:08:34,378] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:495] [PID:6198] data_loader_len: 382 [2026-08-31 02:08:34,393] [INFO] [axolotl.utils.trainer.calc_sample_packing_eff_est:504] [PID:6198] sample_packing_eff_est across ranks: [0.9977826476097107, 0.9977826476097107, 0.9977826476097107, 0.9978641271591187] [2026-08-31 02:08:34,395] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:516] [PID:6198] sample_packing_eff_est: 1.0 [2026-08-31 02:08:34,395] [DEBUG] [axolotl.utils.trainer.calculate_total_num_steps:521] [PID:6198] total_num_steps: 382 [2026-08-31 02:08:34,397] [INFO] [axolotl.utils.data.sft._prepare_standard_dataset:121] [PID:6198] Maximum number of steps set at 381 [2026-08-31 02:08:34,504] [DEBUG] [axolotl.train.setup_model_and_tokenizer:70] [PID:6198] loading tokenizer... unsloth/gemma-3-12b-pt [2026-08-31 02:08:36,075] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:311] [PID:6198] EOS: 1 / [2026-08-31 02:08:36,075] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:312] [PID:6198] BOS: 2 / [2026-08-31 02:08:36,075] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:313] [PID:6198] PAD: 0 / [2026-08-31 02:08:36,075] [DEBUG] [axolotl.loaders.tokenizer.load_tokenizer:314] [PID:6198] UNK: 3 / [2026-08-31 02:08:36,075] [INFO] [axolotl.loaders.tokenizer.load_tokenizer:328] [PID:6198] No Chat template selected. Consider adding a chat template for easier inference. [2026-08-31 02:08:39,240] [DEBUG] [axolotl.train.setup_model_and_tokenizer:81] [PID:6198] Loading model [2026-08-31 02:08:39,245] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:75] [PID:6198] Patched OptimState8bit for torch.compile compatibility [2026-08-31 02:08:39,245] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:122] [PID:6198] Patched OptimState4bit for torch.compile compatibility [2026-08-31 02:08:39,245] [DEBUG] [axolotl.monkeypatch.torchao_optim.patch_torchao_optim_state_8bit:154] [PID:6198] Patched OptimStateFp8 for torch.compile compatibility [2026-08-31 02:08:39,250] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_evaluation_loop:94] [PID:6198] Patched Trainer.evaluation_loop with nanmean loss calculation [2026-08-31 02:08:39,251] [DEBUG] [axolotl.monkeypatch.transformers.trainer_loss_calc.patch_maybe_log_save_evaluate:148] [PID:6198] Patched Trainer._maybe_log_save_evaluate with nanmean loss calculation [2026-08-31 02:08:39,299] [INFO] [axolotl.monkeypatch.attention.flash_attn_4.patch_flash_attn_4:52] [PID:6198] Flash Attention 4 is available for your GPU and offers faster training speeds. To enable: pip install flash-attn-4 [2026-08-31 02:08:39,304] [INFO] [axolotl.loaders.patch_manager._apply_multipack_patches:704] [PID:6198] Applying multipack dataloader patch for sample packing... [2026-08-31 02:08:41,298] [INFO] [axolotl.integrations.liger.plugin.pre_model_load:117] [PID:6198] 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